kernel/nfs: Remove old hack abusing dom_rtattach.
authorNuno Antunes <nuno.antunes@gmail.com>
Wed, 19 Aug 2015 04:55:21 +0000 (12:55 +0800)
committerNuno Antunes <nuno.antunes@gmail.com>
Thu, 20 Aug 2015 04:44:16 +0000 (12:44 +0800)
commit794500d0beeecab1b79186f008e843ceb42225d0
tree48b6cc5abbcde5f5543fafd03aa3f066e74ec94d
parent0a0afd089f2588e0305c404909234ec59bac85ce
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
sys/kern/vfs_subr.c
sys/netinet/in_rmx.c
sys/netinet6/in6_rmx.c
sys/sys/mount.h