Bug 211106 - [net][fib][loopback][route] loopback route added only to interface fib, even if net.add_addr_allfibs = 1
Summary: [net][fib][loopback][route] loopback route added only to interface fib, even ...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.3-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-net (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-14 08:26 UTC by Dmitry Wagin
Modified: 2020-10-24 13:14 UTC (History)
2 users (show)

See Also:


Attachments
Draft patch for stable/12 (914 bytes, patch)
2020-10-24 13:14 UTC, Zhenlei Huang
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Wagin 2016-07-14 08:26:16 UTC
# sysctl net.add_addr_allfibs
net.add_addr_allfibs: 1

# ifconfig net0 inet 1.1.1.1/24 fib 1

# setfib 0 netstat -rn
Destination        Gateway            Flags      Netif Expire
1.1.1.0/24         link#1             U          net0

# setfib 1 netstat -rn
Destination        Gateway            Flags      Netif Expire
1.1.1.0/24         link#1             U          net0
1.1.1.1            link#1             UHS         lo0

# setfib 2 netstat -rn
Destination        Gateway            Flags      Netif Expire
1.1.1.0/24         link#1             U          net0
Comment 1 fullermd 2019-09-25 23:04:17 UTC
I just ran into this as well on stable/12.  My best workaround is

${ipfw} add 10 fwd ::1 ip6 from me to me

which does seem to work fine, though it's a little gross.
Comment 2 Zhenlei Huang 2020-10-24 13:11:39 UTC
This can be reproduced on stable/12 .
Comment 3 Zhenlei Huang 2020-10-24 13:14:42 UTC
Created attachment 219036 [details]
Draft patch for stable/12