aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2014-11-05 00:58:01 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2014-11-05 00:58:01 +0000
commit9f25cbe45e63a4bb3bf4e76171d8f5786842d128 (patch)
tree271c8fe3b66670b46bf4701adfc916602eb6ddf7 /sys/sys
parent0d265707aa9eba0acfd2e8d2de59c5a9c8dd8736 (diff)
downloadsrc-9f25cbe45e63a4bb3bf4e76171d8f5786842d128.tar.gz
src-9f25cbe45e63a4bb3bf4e76171d8f5786842d128.zip
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
Notes
Notes: svn path=/head/; revision=274118
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/domain.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/sys/domain.h b/sys/sys/domain.h
index 30e42491b15a..46966d3a5702 100644
--- a/sys/sys/domain.h
+++ b/sys/sys/domain.h
@@ -61,12 +61,6 @@ struct domain {
int (*dom_rtdetach) /* clean up routing table */
(void **, int);
int dom_rtoffset; /* an arg to rtattach, in bits */
- /* XXX MRT.
- * rtoffset May be 0 if the domain supplies its own rtattach(),
- * in which case, a 0 indicates it's being called from
- * vfs_export.c (HACK) Only for AF_INET{,6} at this time.
- * Temporary ABI compat hack.. fix post RELENG_7
- */
int dom_maxrtkey; /* for routing layer */
void *(*dom_ifattach)(struct ifnet *);
void (*dom_ifdetach)(struct ifnet *, void *);