git: inet6: Introduce nd6_resolve, the mirror of arpresolve

Roy Marples roy at crater.dragonflybsd.org
Wed Sep 11 06:23:14 PDT 2019


commit 38ed05d22caae94658f7141094446809bde6ebbe
Author: Roy Marples <roy at marples.name>
Date:   Wed Sep 11 14:01:08 2019 +0100

    inet6: Introduce nd6_resolve, the mirror of arpresolve
    
    nd6_output now just sends the packet, nd6_resolve handles the NUD
    that nd6_output used to. nd6_resolve also returns sensible errors,
    but we mask out EWOULDBLOCK in the callers.
    
    There is no longer a need for nd6_storelladdr and this makes the
    code a lot easier to follow.
    
    Heavily inspired by FreeBSD/Git 49332534.

Summary of changes:
 sys/net/if_ethersubr.c |   5 +-
 sys/netinet6/nd6.c     | 229 +++++++++++++++----------------------------------
 sys/netinet6/nd6.h     |   2 -
 3 files changed, 74 insertions(+), 162 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/38ed05d22caae94658f7141094446809bde6ebbe


-- 
DragonFly BSD source repository


More information about the Commits mailing list