diff options
author | glebius <glebius@FreeBSD.org> | 2013-10-15 10:19:24 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-10-15 10:19:24 +0000 |
commit | 1c87562bdb8818f73d1face0bb6c8f2d02fb4ce4 (patch) | |
tree | 1532e1c4b17329547e57e8b1a2f1be2c9432e684 /sys/netipx | |
parent | 870799d07ae4a7419826ef3a32e06efdd0b376e9 (diff) | |
download | FreeBSD-src-1c87562bdb8818f73d1face0bb6c8f2d02fb4ce4.zip FreeBSD-src-1c87562bdb8818f73d1face0bb6c8f2d02fb4ce4.tar.gz |
Hide 'struct ifaddr' definition from userland. Two tools left that use it,
namely ipftest(1) and ifmcstat(1). These sniff structure definition using
_WANT_IFADDR define.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/netipx')
-rw-r--r-- | sys/netipx/ipx_if.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netipx/ipx_if.h b/sys/netipx/ipx_if.h index ab5ee79..7725b4a 100644 --- a/sys/netipx/ipx_if.h +++ b/sys/netipx/ipx_if.h @@ -70,7 +70,7 @@ * The ifaddr structure contains the protocol-independent part * of the structure and is assumed to be first. */ - +#ifdef _KERNEL struct ipx_ifaddr { struct ifaddr ia_ifa; /* protocol-independent info */ #define ia_ifp ia_ifa.ifa_ifp @@ -81,6 +81,7 @@ struct ipx_ifaddr { #define ia_broadaddr ia_dstaddr struct sockaddr_ipx ia_netmask; /* space for my network mask */ }; +#endif /* _KERNEL */ struct ipx_aliasreq { char ifra_name[IFNAMSIZ]; /* if name, e.g. "en0" */ |