FreeBSD Bugzilla – Attachment 219036 Details for
Bug 211106
[net][fib][loopback][route] loopback route added only to interface fib, even if net.add_addr_allfibs = 1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Draft patch for stable/12
draft_patch_211106_01.diff (text/plain), 914 bytes, created by
Zhenlei Huang
on 2020-10-24 13:14:42 UTC
(
hide
)
Description:
Draft patch for stable/12
Filename:
MIME Type:
Creator:
Zhenlei Huang
Created:
2020-10-24 13:14:42 UTC
Size:
914 bytes
patch
obsolete
>diff --git a/sys/net/if.c b/sys/net/if.c >index da55e4b64c7..04d4fd2c7ff 100644 >--- a/sys/net/if.c >+++ b/sys/net/if.c >@@ -1908,6 +1908,7 @@ ifa_maintain_loopback_route(int cmd, const char *otype, struct ifaddr *ifa, > struct sockaddr *ia) > { > int error; >+ int fibnum; > struct rt_addrinfo info; > struct sockaddr_dl null_sdl; > struct ifnet *ifp; >@@ -1924,6 +1925,16 @@ ifa_maintain_loopback_route(int cmd, const char *otype, struct ifaddr *ifa, > > error = rtrequest1_fib(cmd, &info, NULL, ifp->if_fib); > >+ // XXX: add loopback route into other fibs >+ if (V_rt_add_addr_allfibs && cmd == RTM_ADD && error == 0) { >+ for (fibnum = 0; fibnum < rt_numfibs; fibnum++) { >+ if (fibnum == ifp->if_fib) >+ continue; >+ >+ (void) rtrequest1_fib(cmd, &info, NULL, fibnum); >+ } >+ } >+ > if (error == 0 || > (cmd == RTM_ADD && error == EEXIST) || > (cmd == RTM_DELETE && (error == ENOENT || error == ESRCH)))
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 211106
: 219036