16 #ifndef __MAC_ADDRESS_H__ 17 #define __MAC_ADDRESS_H__ 35 "MAC address must represent the on wire format");
56 return (0 == mac->
u.first_4 && 0 == mac->
u.last_2);
STATIC_ASSERT((sizeof(mac_address_t)==6), "MAC address must represent the on wire format")
struct mac_address_t_::@121::@123 u
static_always_inline void mac_address_copy(mac_address_t *dst, const mac_address_t *src)
static_always_inline int mac_address_is_zero(const mac_address_t *mac)
#define clib_memcpy(d, s, n)
const mac_address_t ZERO_MAC_ADDRESS
#define static_always_inline
static_always_inline void mac_address_to_bytes(const mac_address_t *mac, u8 *bytes)
static_always_inline void mac_address_from_bytes(mac_address_t *mac, const u8 *bytes)
static_always_inline void mac_address_from_u64(u64 u, mac_address_t *mac)
struct mac_address_t_ mac_address_t
static_always_inline u64 mac_address_as_u64(const mac_address_t *mac)
u8 * format_mac_address_t(u8 *s, va_list *args)
uword unformat_mac_address_t(unformat_input_t *input, va_list *args)