diff options
Diffstat (limited to 'vnet/vnet/lisp-cp/lisp_types.h')
-rw-r--r-- | vnet/vnet/lisp-cp/lisp_types.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vnet/vnet/lisp-cp/lisp_types.h b/vnet/vnet/lisp-cp/lisp_types.h index 2587fce526b..d0ca6e0bf5d 100644 --- a/vnet/vnet/lisp-cp/lisp_types.h +++ b/vnet/vnet/lisp-cp/lisp_types.h @@ -231,7 +231,11 @@ void _n ## _copy (void * dst , void * src); foreach_gid_address_type_fcns #undef _ -#define MAC_BIT_MASK (((u64)1 << 48) - 1) +always_inline u64 +mac_to_u64(u8 *m) +{ + return (*((u64 *)m) & 0xffffffffffff); +} typedef struct { @@ -286,7 +290,7 @@ typedef struct locator_pair ip_address_t lcl_loc; ip_address_t rmt_loc; - u8 priority; + u8 priority; /* TODO remove */ u8 weight; } locator_pair_t; |