40 #ifndef included_ethernet_packet_h 41 #define included_ethernet_packet_h 44 #define ethernet_type(n,s) ETHERNET_TYPE_##s = n, 58 #define ETHERNET_ADDRESS_UNICAST 0 59 #define ETHERNET_ADDRESS_MULTICAST 1 64 {
return (a[0] >> 0) & 1; }
68 {
return (a[0] >> 1) & 1; }
79 #define ETHERNET_N_VLAN (1 << 12)
always_inline uword ethernet_address_cast(u8 *a)
always_inline uword ethernet_address_is_locally_administered(u8 *a)
always_inline void ethernet_address_set_locally_administered(u8 *a)