git: netinet: Move loopback route maintain functions to in.c

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


commit 979b9b19eed04a2231368f6563b2ef9ca99787fd
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Nov 14 08:51:05 2026 +0800

    netinet: Move loopback route maintain functions to in.c
    
    The ifa_{add,del}_loopback_route() functions are only used in
    netinet/in.c, so just move them to there and make them static.
    Meanwhile, rename them to in_{add,del}_loopback_route() for consistency.

Summary of changes:
 sys/net/if.c         | 77 -------------------------------------------------
 sys/net/if_var.h     |  3 --
 sys/netinet/in.c     | 81 +++++++++++++++++++++++++++++++++++++++++++++++++---
 sys/netinet/in_rmx.c |  2 +-
 4 files changed, 78 insertions(+), 85 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/979b9b19eed04a2231368f6563b2ef9ca99787fd


-- 
DragonFly BSD source repository


More information about the Commits mailing list