git: kernel/nfs: Remove old hack abusing dom_rtattach.

Nuno Antunes nant at crater.dragonflybsd.org
Wed Aug 19 21:51:44 PDT 2015


commit 794500d0beeecab1b79186f008e843ceb42225d0
Author: Nuno Antunes <nuno.antunes at gmail.com>
Date:   Wed Aug 19 12:55:21 2015 +0800

    kernel/nfs: Remove old hack abusing dom_rtattach.
    
    * Mostly obtained from FreeBSD. Here's the relevant part of the
      original commit message.
    
        According to IANA RPC uaddr registry, there are no AFs
        except IPv4 and IPv6, so it's not worth being too abstract here.
    
        Remove ne_rtable[AF_MAX+1] and use explicit per-AF radix tries.
        Use own initialization without relying on domattach code.
    
        While I admit that this was one of the rare places in kernel
        networking code which really was capable of doing multi-AF
        without any AF-depended code, it is not possible anymore to
        rely on dom* code.
    
    * Give netexports their own mask radix tree.
    
    Reviewed-by: sephe, dillon
    Tested-by: dillon

Summary of changes:
 sys/kern/vfs_subr.c    | 104 ++++++++++++++++++++++++++++++++++++-------------
 sys/netinet/in_rmx.c   |   3 --
 sys/netinet6/in6_rmx.c |   3 --
 sys/sys/mount.h        |   6 ++-
 4 files changed, 81 insertions(+), 35 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/794500d0beeecab1b79186f008e843ceb42225d0


-- 
DragonFly BSD source repository



More information about the Commits mailing list