}
memset (event, 0, sizeof (*event));
+ /* Python API expects events to have no context */
event->_vl_msg_id = ntohs (VL_API_IP4_ARP_EVENT);
event->client_index = mp->client_index;
- event->context = mp->context;
event->address = mp->address;
event->pid = mp->pid;
if (mp->address == 0)
event->_vl_msg_id = ntohs (VL_API_IP6_ND_EVENT);
event->client_index = mp->client_index;
- event->context = mp->context;
clib_memcpy (event->address, mp->address, 16);
event->pid = mp->pid;
if (ip6_address_is_zero ((ip6_address_t *) mp->address))
/** \brief Tell client about an ip4 arp resolution event
@param client_index - opaque cookie to identify the sender
- @param context - sender context, to match reply w/ request
@param address - the exact ip4 address of interest
@param pid - client pid registered to receive notification
@param sw_if_index - interface which received ARP packet
define ip4_arp_event
{
u32 client_index;
- u32 context;
u32 address;
u32 pid;
u32 sw_if_index;
/** \brief Tell client about an ip6 nd resolution or mac/ip event
@param client_index - opaque cookie to identify the sender
- @param context - sender context, to match reply w/ request
@param pid - client pid registered to receive notification
@param sw_if_index - interface which received ARP packet
@param address - the exact ip6 address of interest
define ip6_nd_event
{
u32 client_index;
- u32 context;
u32 pid;
u32 sw_if_index;
u8 address[16];