Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tcp: explicit use of timer wheel in timer apis
[vpp.git]
/
src
/
vnet
/
ethernet
/
ethernet_types_api.c
diff --git
a/src/vnet/ethernet/ethernet_types_api.c
b/src/vnet/ethernet/ethernet_types_api.c
index
9b2e99a
..
145cf6c
100644
(file)
--- a/
src/vnet/ethernet/ethernet_types_api.c
+++ b/
src/vnet/ethernet/ethernet_types_api.c
@@
-13,6
+13,7
@@
* limitations under the License.
*/
* limitations under the License.
*/
+#include <vlibapi/api_types.h>
#include <vnet/ethernet/ethernet_types_api.h>
#define vl_typedefs /* define message structures */
#include <vnet/ethernet/ethernet_types_api.h>
#define vl_typedefs /* define message structures */
@@
-30,23
+31,15
@@
#undef vl_printfun
void
#undef vl_printfun
void
-mac_address_decode (const
vl_api_mac_address_t
* in, mac_address_t * out)
+mac_address_decode (const
u8
* in, mac_address_t * out)
{
{
- mac_address_from_bytes (out, in
->bytes
);
+ mac_address_from_bytes (out, in);
}
void
}
void
-mac_address_encode (const mac_address_t * in,
vl_api_mac_address_t
* out)
+mac_address_encode (const mac_address_t * in,
u8
* out)
{
{
- clib_memcpy (out->bytes, in->bytes, 6);
-}
-
-extern u8 *
-format_vl_api_mac_address (u8 * s, va_list * args)
-{
- vl_api_mac_address_t *mac = va_arg (*args, vl_api_mac_address_t *);
-
- return (format (s, "%U", format_mac_address, mac->bytes));
+ clib_memcpy_fast (out, in->bytes, 6);
}
/*
}
/*