svn commit: r280617 - projects/ifnet/sys/net

Gleb Smirnoff glebius at FreeBSD.org
Wed Mar 25 14:20:59 UTC 2015


Author: glebius
Date: Wed Mar 25 14:20:57 2015
New Revision: 280617
URL: https://svnweb.freebsd.org/changeset/base/280617

Log:
  Share etherbroadcastaddr[] with rest of kernel.

Modified:
  projects/ifnet/sys/net/ethernet.h
  projects/ifnet/sys/net/if_ethersubr.c

Modified: projects/ifnet/sys/net/ethernet.h
==============================================================================
--- projects/ifnet/sys/net/ethernet.h	Wed Mar 25 14:18:55 2015	(r280616)
+++ projects/ifnet/sys/net/ethernet.h	Wed Mar 25 14:20:57 2015	(r280617)
@@ -388,6 +388,8 @@ struct route;
 struct sockaddr;
 struct bpf_if;
 
+extern const u_char etherbroadcastaddr[ETHER_ADDR_LEN];
+
 extern	uint32_t ether_crc32_le(const uint8_t *, size_t);
 extern	uint32_t ether_crc32_be(const uint8_t *, size_t);
 extern	void ether_demux(struct ifnet *, struct mbuf *);

Modified: projects/ifnet/sys/net/if_ethersubr.c
==============================================================================
--- projects/ifnet/sys/net/if_ethersubr.c	Wed Mar 25 14:18:55 2015	(r280616)
+++ projects/ifnet/sys/net/if_ethersubr.c	Wed Mar 25 14:20:57 2015	(r280617)
@@ -105,7 +105,7 @@ void	(*bridge_dn_p)(struct mbuf *, struc
 /* if_lagg(4) support */
 struct mbuf *(*lagg_input_p)(struct ifnet *, struct mbuf *); 
 
-static const u_char etherbroadcastaddr[ETHER_ADDR_LEN] =
+const u_char etherbroadcastaddr[ETHER_ADDR_LEN] =
 			{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
 
 static	int ether_resolvemulti(struct ifnet *, struct sockaddr **,


More information about the svn-src-projects mailing list