git: netinet: Maintain RTF_LOCAL in the kernel

Aaron LI aly at crater.dragonflybsd.org
Fri Nov 13 21:51:13 PST 2026


commit 1bd4d467d347dc2e8c4144109c725c4fbff5b669
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Nov 14 10:14:29 2026 +0800

    netinet: Maintain RTF_LOCAL in the kernel
    
    * Expose in_rtlocalize() for using in route_output_change_callback() to
      correctly set RTF_LOCAL, taking into account of the IFA/IFP changes.
    * Add RTF_LOCAL to PRESERVED_RTF and ignore the RTF_LOCAL flag from
      userspace, making this flag be maintained by the kernel.
    * Clean up arp_rtrequest() to directly check the RTF_LOCAL flag instead
      of comparing the IP addresses.

Summary of changes:
 sys/net/rtsock.c       | 17 ++++++++++++++---
 sys/netinet/if_ether.c |  6 +-----
 sys/netinet/in_rmx.c   |  2 +-
 sys/netinet/in_var.h   |  2 ++
 4 files changed, 18 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1bd4d467d347dc2e8c4144109c725c4fbff5b669


-- 
DragonFly BSD source repository


More information about the Commits mailing list