FreeBSD Bugzilla – Attachment 187334 Details for
Bug 223129
Addition of an IP address to an interface (SIOCAIFADDR) fails when there is conflicting dynamic route
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed fix
pin.diff (text/plain), 994 bytes, created by
Eugene Grosbein
on 2017-10-20 20:42:23 UTC
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2017-10-20 20:42:23 UTC
Size:
994 bytes
patch
obsolete
>Index: sys/net/if.c >=================================================================== >--- sys/net/if.c (revision 324512) >+++ sys/net/if.c (working copy) >@@ -1698,27 +1698,27 @@ static int > ifa_maintain_loopback_route(int cmd, const char *otype, struct ifaddr *ifa, > struct sockaddr *ia) > { > int error; > struct rt_addrinfo info; > struct sockaddr_dl null_sdl; > struct ifnet *ifp; > > ifp = ifa->ifa_ifp; > > bzero(&info, sizeof(info)); > if (cmd != RTM_DELETE) > info.rti_ifp = V_loif; >- info.rti_flags = ifa->ifa_flags | RTF_HOST | RTF_STATIC; >+ info.rti_flags = ifa->ifa_flags | RTF_HOST | RTF_STATIC | RTF_PINNED; > info.rti_info[RTAX_DST] = ia; > info.rti_info[RTAX_GATEWAY] = (struct sockaddr *)&null_sdl; > link_init_sdl(ifp, (struct sockaddr *)&null_sdl, ifp->if_type); > > error = rtrequest1_fib(cmd, &info, NULL, ifp->if_fib); > > if (error != 0) > log(LOG_DEBUG, "%s: %s failed for interface %s: %u\n", > __func__, otype, if_name(ifp), error); > > return (error); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 223129
: 187334