summaryrefslogtreecommitdiffstats
path: root/sys/netinet/if_ether.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-01-31 08:55:21 +0000
committerglebius <glebius@FreeBSD.org>2013-01-31 08:55:21 +0000
commit7f832c3059b3b2f864f0b1f3fac0c4ed8e268b27 (patch)
treee3ea2bc458475248ba21882d2e6ebd842532550e /sys/netinet/if_ether.h
parente33dc79d8ee6e651f229bdeddaa7109185cb20db (diff)
downloadFreeBSD-src-7f832c3059b3b2f864f0b1f3fac0c4ed8e268b27.zip
FreeBSD-src-7f832c3059b3b2f864f0b1f3fac0c4ed8e268b27.tar.gz
Retire struct sockaddr_inarp.
Since ARP and routing are separated, "proxy only" entries don't have any meaning, thus we don't need additional field in sockaddr to pass SIN_PROXY flag. New kernel is binary compatible with old tools, since sizes of sockaddr_inarp and sockaddr_in match, and sa_family are filled with same value. The structure declaration is left for compatibility with third party software, but in tree code no longer use it. Reviewed by: ru, andre, net@
Diffstat (limited to 'sys/netinet/if_ether.h')
-rw-r--r--sys/netinet/if_ether.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h
index 23828f2..6b47912 100644
--- a/sys/netinet/if_ether.h
+++ b/sys/netinet/if_ether.h
@@ -89,6 +89,7 @@ struct ether_arp {
#define arp_pln ea_hdr.ar_pln
#define arp_op ea_hdr.ar_op
+#ifndef BURN_BRIDGES /* Can be used by third party software. */
struct sockaddr_inarp {
u_char sin_len;
u_char sin_family;
@@ -99,6 +100,8 @@ struct sockaddr_inarp {
u_short sin_other;
#define SIN_PROXY 1
};
+#endif /* !BURN_BRIDGES */
+
/*
* IP and ethernet specific routing flags
*/
OpenPOWER on IntegriCloud