summaryrefslogtreecommitdiffstats
path: root/sys/sys/domain.h
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2014-11-05 00:58:01 +0000
committermelifaro <melifaro@FreeBSD.org>2014-11-05 00:58:01 +0000
commitc2069a39a4a6756561f0cca8a1c2fa166127cbe7 (patch)
tree271c8fe3b66670b46bf4701adfc916602eb6ddf7 /sys/sys/domain.h
parent744533d61e6ca69ceee84197d1b0af882ad6b2ad (diff)
downloadFreeBSD-src-c2069a39a4a6756561f0cca8a1c2fa166127cbe7.zip
FreeBSD-src-c2069a39a4a6756561f0cca8a1c2fa166127cbe7.tar.gz
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
Diffstat (limited to 'sys/sys/domain.h')
-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 30e4249..46966d3 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 *);
OpenPOWER on IntegriCloud