]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove old hack abusing domattach from NFS code.
authormelifaro <melifaro@FreeBSD.org>
Wed, 5 Nov 2014 00:58:01 +0000 (00:58 +0000)
committermelifaro <melifaro@FreeBSD.org>
Wed, 5 Nov 2014 00:58:01 +0000 (00:58 +0000)
commitc2069a39a4a6756561f0cca8a1c2fa166127cbe7
tree271c8fe3b66670b46bf4701adfc916602eb6ddf7
parent744533d61e6ca69ceee84197d1b0af882ad6b2ad
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