FD.io VPP  v19.01.1-17-ge106252
Vector Packet Processing
mac_address.h File Reference
+ Include dependency graph for mac_address.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mac_address_t_
 

Typedefs

typedef struct mac_address_t_ mac_address_t
 

Functions

 STATIC_ASSERT ((sizeof(mac_address_t)==6),"MAC address must represent the on wire format")
 
static_always_inline void mac_address_from_bytes (mac_address_t *mac, const u8 *bytes)
 
static_always_inline void mac_address_to_bytes (const mac_address_t *mac, u8 *bytes)
 
static_always_inline int mac_address_is_zero (const mac_address_t *mac)
 
static_always_inline u64 mac_address_as_u64 (const mac_address_t *mac)
 
static_always_inline void mac_address_from_u64 (u64 u, mac_address_t *mac)
 
static_always_inline void mac_address_copy (mac_address_t *dst, const mac_address_t *src)
 
uword unformat_mac_address_t (unformat_input_t *input, va_list *args)
 
u8format_mac_address_t (u8 *s, va_list *args)
 

Variables

const mac_address_t ZERO_MAC_ADDRESS
 

Typedef Documentation

typedef struct mac_address_t_ mac_address_t

Function Documentation

u8* format_mac_address_t ( u8 s,
va_list *  args 
)

Definition at line 27 of file mac_address.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u64 mac_address_as_u64 ( const mac_address_t mac)

Definition at line 60 of file mac_address.h.

+ Here is the caller graph for this function:

static_always_inline void mac_address_copy ( mac_address_t dst,
const mac_address_t src 
)

Definition at line 76 of file mac_address.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void mac_address_from_bytes ( mac_address_t mac,
const u8 bytes 
)

Definition at line 40 of file mac_address.h.

+ Here is the caller graph for this function:

static_always_inline void mac_address_from_u64 ( u64  u,
mac_address_t mac 
)

Definition at line 70 of file mac_address.h.

+ Here is the caller graph for this function:

static_always_inline int mac_address_is_zero ( const mac_address_t mac)

Definition at line 54 of file mac_address.h.

+ Here is the caller graph for this function:

static_always_inline void mac_address_to_bytes ( const mac_address_t mac,
u8 bytes 
)

Definition at line 47 of file mac_address.h.

+ Here is the caller graph for this function:

STATIC_ASSERT ( (sizeof(mac_address_t)==6)  ,
"MAC address must represent the on wire format  
)
uword unformat_mac_address_t ( unformat_input_t input,
va_list *  args 
)

Definition at line 37 of file mac_address.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const mac_address_t ZERO_MAC_ADDRESS

Definition at line 19 of file mac_address.c.