Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix pid field endian in ARP/ND/DHCP event related API messages
[vpp.git]
/
src
/
vpp
/
api
/
api.c
diff --git
a/src/vpp/api/api.c
b/src/vpp/api/api.c
index
7f6a125
..
f169d7f
100644
(file)
--- a/
src/vpp/api/api.c
+++ b/
src/vpp/api/api.c
@@
-2268,7
+2268,7
@@
format_arp_event (u8 * s, va_list * args)
{
vl_api_ip4_arp_event_t *event = va_arg (*args, vl_api_ip4_arp_event_t *);
{
vl_api_ip4_arp_event_t *event = va_arg (*args, vl_api_ip4_arp_event_t *);
- s = format (s, "pid %d: ",
event->pid
);
+ s = format (s, "pid %d: ",
ntohl (event->pid)
);
if (event->mac_ip)
s = format (s, "bd mac/ip4 binding events");
else
if (event->mac_ip)
s = format (s, "bd mac/ip4 binding events");
else
@@
-2281,7
+2281,7
@@
format_nd_event (u8 * s, va_list * args)
{
vl_api_ip6_nd_event_t *event = va_arg (*args, vl_api_ip6_nd_event_t *);
{
vl_api_ip6_nd_event_t *event = va_arg (*args, vl_api_ip6_nd_event_t *);
- s = format (s, "pid %d: ",
event->pid
);
+ s = format (s, "pid %d: ",
ntohl (event->pid)
);
if (event->mac_ip)
s = format (s, "bd mac/ip6 binding events");
else
if (event->mac_ip)
s = format (s, "bd mac/ip6 binding events");
else