X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fethernet%2Fformat.c;h=1ca1bce8f2a8b18bf7978f19c333a76d852c4575;hb=bdfe5955f;hp=5b58999861a48c67d5d0c916b1f132c4718ba207;hpb=65e845785f21e6b43c026f092e982171eec1f641;p=vpp.git diff --git a/src/vnet/ethernet/format.c b/src/vnet/ethernet/format.c index 5b58999861a..1ca1bce8f2a 100644 --- a/src/vnet/ethernet/format.c +++ b/src/vnet/ethernet/format.c @@ -54,6 +54,12 @@ format_ethernet_address (u8 * s, va_list * args) a[0], a[1], a[2], a[3], a[4], a[5]); } +u8 * +format_mac_address (u8 * s, va_list * args) +{ + return (format_ethernet_address (s, args)); +} + u8 * format_ethernet_type (u8 * s, va_list * args) { @@ -100,7 +106,7 @@ format_ethernet_header_with_length (u8 * s, va_list * args) ethernet_type_t type = clib_net_to_host_u16 (e->type); ethernet_type_t vlan_type[ARRAY_LEN (m->vlan)]; u32 n_vlan = 0, i, header_bytes; - uword indent; + u32 indent; while ((type == ETHERNET_TYPE_VLAN || type == ETHERNET_TYPE_DOT1AD || type == ETHERNET_TYPE_DOT1AH) && n_vlan < ARRAY_LEN (m->vlan)) @@ -231,6 +237,13 @@ unformat_ethernet_address (unformat_input_t * input, va_list * args) || unformat_user (input, unformat_ethernet_address_cisco, result)); } +uword +unformat_mac_address (unformat_input_t * input, va_list * args) +{ + return (unformat_ethernet_address (input, args)); +} + + /* Returns ethernet type as an int in host byte order. */ uword unformat_ethernet_type_host_byte_order (unformat_input_t * input,