Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
04575c5
)
api_helper_macro mp->pid is network endian
20/16720/4
author
Ole Troan
<ot@cisco.com>
Mon, 7 Jan 2019 21:17:31 +0000
(22:17 +0100)
committer
Damjan Marion
<dmarion@me.com>
Mon, 14 Jan 2019 16:54:57 +0000
(16:54 +0000)
Change-Id: I7d2385b9e9bf5a62f3e9382ca2627a74a4e30785
Signed-off-by: Ole Troan <ot@cisco.com>
src/vlibapi/api_helper_macros.h
patch
|
blob
|
history
diff --git
a/src/vlibapi/api_helper_macros.h
b/src/vlibapi/api_helper_macros.h
index
e324170
..
3a011da
100644
(file)
--- a/
src/vlibapi/api_helper_macros.h
+++ b/
src/vlibapi/api_helper_macros.h
@@
-183,7
+183,7
@@
static void vl_api_want_##lca##_t_handler ( \
p = hash_get (vam->lca##_registration_hash, mp->client_index); \
if (p) { \
if (mp->enable_disable) { \
-
clib_warning ("pid %d: already enabled...", mp->pid);
\
+
clib_warning ("pid %d: already enabled...", ntohl(mp->pid));
\
rv = VNET_API_ERROR_INVALID_REGISTRATION; \
goto reply; \
} else { \