Page MenuHomeFreeBSD

filter the duplicated route add
Needs ReviewPublic

Authored by steven_chen3_dell.com on Sep 12 2023, 11:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 18, 7:21 AM
Unknown Object (File)
Fri, Nov 21, 2:46 AM
Unknown Object (File)
Nov 16 2025, 10:51 PM
Unknown Object (File)
Nov 6 2025, 6:36 AM
Unknown Object (File)
Nov 6 2025, 4:53 AM
Unknown Object (File)
Nov 5 2025, 9:37 PM
Unknown Object (File)
Oct 25 2025, 1:29 AM
Unknown Object (File)
Oct 19 2025, 3:51 AM

Details

Reviewers
melifaro
Group Reviewers
network
Summary

If duplicate adding route table, the route nhop entry is set to multipath entry.
I think that is not a good idea, and it's better to add route as single path if the route hasn't more than one real path.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

@steven_chen3_dell.com

I'm not getting you the 'duplicate adding route table'.

What is the behavior you expect?

@zlei
There are two same default route tables in my system , and both default route tables only have "Flags" difference(one is UG, another is UGS).
The kernel self cannot guarantee that routes will not be added repeatedly, maybe dhcp client or other user application add the same route entry.