Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VPP-1508 python3 tests: raw_input
[vpp.git]
/
src
/
vnet
/
ethernet
/
format.c
diff --git
a/src/vnet/ethernet/format.c
b/src/vnet/ethernet/format.c
index
13a209f
..
1ca1bce
100644
(file)
--- 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]);
}
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)
{
u8 *
format_ethernet_type (u8 * s, va_list * args)
{
@@
-231,6
+237,13
@@
unformat_ethernet_address (unformat_input_t * input, va_list * args)
|| unformat_user (input, unformat_ethernet_address_cisco, result));
}
|| 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,
/* Returns ethernet type as an int in host byte order. */
uword
unformat_ethernet_type_host_byte_order (unformat_input_t * input,