projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ad4720
)
packets: Make Ethernet broadcast address available as a global object.
author
Ben Pfaff
<blp@nicira.com>
Mon, 14 Jul 2008 20:54:13 +0000
(13:54 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 18 Jul 2008 20:42:37 +0000
(13:42 -0700)
include/packets.h
patch
|
blob
|
history
diff --git
a/include/packets.h
b/include/packets.h
index f1abcae181d7ebfbf7170a18f76a3db6dbac3e78..cd7829521bc70f4fae71e65ea4afdefdaf9ea6d6 100644
(file)
--- a/
include/packets.h
+++ b/
include/packets.h
@@
-35,11
+35,15
@@
#include <stdint.h>
#include <string.h>
+#include "compiler.h"
#include "random.h"
#include "util.h"
#define ETH_ADDR_LEN 6
+static const uint8_t eth_addr_broadcast[ETH_ADDR_LEN] UNUSED
+ = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
+
static inline bool eth_addr_is_broadcast(const uint8_t ea[6])
{
return (ea[0] & ea[1] & ea[2] & ea[3] & ea[4] & ea[5]) == 0xff;