diff options
author | Neale Ranns <nranns@cisco.com> | 2018-08-22 04:27:15 -0700 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2018-08-22 16:03:26 +0000 |
commit | 571ab20d1da227fb66d52ed52cce0cbd4591e1c9 (patch) | |
tree | 2e48450bf4119aef5363e265ef728395430225e8 /src/vnet/ethernet/format.c | |
parent | 828d27ea0edb97280a0164041a286973fa74b5a2 (diff) |
Consolidate the [un]format_mac_address implementations
Change-Id: Ic4c42c5610a827234e6582501f0ddcba47aa34ee
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ethernet/format.c')
-rw-r--r-- | src/vnet/ethernet/format.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/vnet/ethernet/format.c b/src/vnet/ethernet/format.c index 13a209fb684..1ca1bce8f2a 100644 --- a/src/vnet/ethernet/format.c +++ b/src/vnet/ethernet/format.c @@ -55,6 +55,12 @@ format_ethernet_address (u8 * s, va_list * args) } u8 * +format_mac_address (u8 * s, va_list * args) +{ + return (format_ethernet_address (s, args)); +} + +u8 * format_ethernet_type (u8 * s, va_list * args) { ethernet_type_t type = va_arg (*args, u32); @@ -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, |