Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ethernet: add sanity checks to p2p_ethernet_add/del
[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
67e6231
..
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,15
+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);
+ clib_memcpy
_fast (out
, in->bytes, 6);
}
/*
}
/*