]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove old hack abusing domattach from NFS code.
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Wed, 5 Nov 2014 00:58:01 +0000 (00:58 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Wed, 5 Nov 2014 00:58:01 +0000 (00:58 +0000)
commit9f25cbe45e63a4bb3bf4e76171d8f5786842d128
tree271c8fe3b66670b46bf4701adfc916602eb6ddf7
parent0d265707aa9eba0acfd2e8d2de59c5a9c8dd8736
Remove old hack abusing domattach from NFS code.

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.

While here, change terrifying "Invalid radix node head, rn:" message,
to different non-understandable "netcred already exists for given addr/mask",
but less terrifying. Since we know that rn_addaddr() returns NULL if
the same record already exists, we should provide more friendly error.

MFC after: 1 month
sys/kern/vfs_export.c
sys/netinet/in_rmx.c
sys/netinet6/in6_rmx.c
sys/sys/domain.h