X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fl2%2Fl2_fib.c;fp=src%2Fvnet%2Fl2%2Fl2_fib.c;h=478f6766701ab60655330f71b42f52a8cd09db5b;hb=5a9d2a1758c69b0960e61b9052eb058679955990;hp=4407cb5bc4c53ba223660888b38760bdab0e304f;hpb=2d9ae462ea455a8bd88fe96b31bf51197ecacf71;p=vpp.git diff --git a/src/vnet/l2/l2_fib.c b/src/vnet/l2/l2_fib.c index 4407cb5bc4c..478f6766701 100644 --- a/src/vnet/l2/l2_fib.c +++ b/src/vnet/l2/l2_fib.c @@ -27,18 +27,14 @@ #include #include #include - #include - #include -#include -#define vl_typedefs /* define message structures */ -#include -#undef vl_typedefs +#include +#include -#define vl_endianfun /* define message structures */ -#include +#define vl_endianfun +#include #undef vl_endianfun /** @@ -1078,7 +1074,7 @@ allocate_mac_evt_buf (u32 client, u32 client_index) l2fib_main_t *fm = &l2fib_main; vl_api_l2_macs_event_t *mp = vl_msg_api_alloc (sizeof (*mp) + (fm->max_macs_in_event * sizeof (vl_api_mac_entry_t))); - mp->_vl_msg_id = htons (VL_API_L2_MACS_EVENT); + mp->_vl_msg_id = htons (l2input_main.msg_id_base + VL_API_L2_MACS_EVENT); mp->pid = htonl (client); mp->client_index = client_index; return mp;