diff options
-rw-r--r-- | sys/net/if_ethersubr.c | 6 | ||||
-rw-r--r-- | sys/netinet/if_ether.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 69256b50963..39582a53cfa 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.226 2015/09/17 04:53:27 dlg Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.227 2015/09/27 16:50:40 stsp Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -121,8 +121,10 @@ didn't get a copy, you may request one from <license@ipv6.nrl.navy.mil>. #include <netmpls/mpls.h> #endif /* MPLS */ -u_char etherbroadcastaddr[ETHER_ADDR_LEN] = +u_int8_t etherbroadcastaddr[ETHER_ADDR_LEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; +u_int8_t etheranyaddr[ETHER_ADDR_LEN] = + { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #define senderr(e) { error = (e); goto bad;} int diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h index 136e5d0fc5c..9037a8f4085 100644 --- a/sys/netinet/if_ether.h +++ b/sys/netinet/if_ether.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.h,v 1.59 2015/09/13 10:42:32 dlg Exp $ */ +/* $OpenBSD: if_ether.h,v 1.60 2015/09/27 16:50:40 stsp Exp $ */ /* $NetBSD: if_ether.h,v 1.22 1996/05/11 13:00:00 mycroft Exp $ */ /* @@ -186,6 +186,7 @@ struct sockaddr_inarp { #ifdef _KERNEL extern u_int8_t etherbroadcastaddr[ETHER_ADDR_LEN]; +extern u_int8_t etheranyaddr[ETHER_ADDR_LEN]; extern u_int8_t ether_ipmulticast_min[ETHER_ADDR_LEN]; extern u_int8_t ether_ipmulticast_max[ETHER_ADDR_LEN]; extern struct niqueue arpintrq; |