[Bug 278654] The -ifa modifier to route(8) is ineffective
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 278654] The -ifa modifier to route(8) is ineffective"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Aug 2025 16:37:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278654 --- Comment #5 from Alexandre Snarskii <snar@snar.spb.ru> --- Created attachment 262723 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=262723&action=edit patch Looks like it was not that hard to fix. Proposed patch attached, based on 15-current, cleanly applies and shall work on 14 (not tested). Notes: - when address provided with -ifa is not present in system, behavior is the same as without netlink: this parameter is ignored. - no attempts have been made to fix multipath routes: as far as I understand route(8) sources it can't emit these anyway. - used not NL_RTA_SRC but rather NL_RTA_PREFSRC netlink attribute. -- You are receiving this mail because: You are the assignee for the bug.