git: net: Normalize IPv4 /32 route to a host route (RTF_HOST)

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


commit 9ac2060abb0e8b1db2c7275351cafd084c853569
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Nov 14 12:51:28 2026 +0800

    net: Normalize IPv4 /32 route to a host route (RTF_HOST)
    
    An IPv4 /32 route denotes a host route (RTF_HOST).  Add the
    rt_hostroute_normalize() helper to normalize such routes by setting the
    RTF_HOST flag.  Use the helper in both rtrequest1() and
    rtsearch_msghandler() so that this normalization applies to RTM_ADD,
    RTM_GET, RTM_CHANGE and RTM_LOCK.

Summary of changes:
 sys/net/route.c | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9ac2060abb0e8b1db2c7275351cafd084c853569


-- 
DragonFly BSD source repository


More information about the Commits mailing list