Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
tapv2: multiple improvements
[vpp.git]
/
src
/
vnet
/
ethernet
/
ethernet.h
diff --git
a/src/vnet/ethernet/ethernet.h
b/src/vnet/ethernet/ethernet.h
index
2a3383a
..
9a97817
100644
(file)
--- a/
src/vnet/ethernet/ethernet.h
+++ b/
src/vnet/ethernet/ethernet.h
@@
-61,6
+61,12
@@
ethernet_mac_address_is_multicast_u64 (u64 a)
return (a & (1ULL << (5 * 8))) != 0;
}
+static inline int
+ethernet_mac_address_is_zero (u8 * mac)
+{
+ return ((*((u32 *) mac) == 0) && (*((u16 *) (mac + 4)) == 0));
+}
+
static_always_inline int
ethernet_frame_is_tagged (u16 type)
{