summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-09-27 16:50:41 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-09-27 16:50:41 +0000
commitd229c4c4503acd6c442fa5684bcb65a59a5f8001 (patch)
tree91d59076fedc130a1696d81d02dcdbcb664607c8 /sys/net
parentf63ab67e3567461588a69698df0c1794287833d7 (diff)
Welcome etheranyaddr, cousin of etherbroadcastaddr.
Can be used to check if a MAC address is all zeros. Will be used by iwm(4) soon. ok kettenis@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_ethersubr.c6
1 files changed, 4 insertions, 2 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