Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vpp: Fix node APIs
[vpp.git]
/
src
/
vpp
/
api
/
api.c
diff --git
a/src/vpp/api/api.c
b/src/vpp/api/api.c
index
c3380be
..
99e9eb5
100644
(file)
--- a/
src/vpp/api/api.c
+++ b/
src/vpp/api/api.c
@@
-342,7
+342,7
@@
vl_api_get_node_index_t_handler (vl_api_get_node_index_t * mp)
/* *INDENT-OFF* */
REPLY_MACRO2(VL_API_GET_NODE_INDEX_REPLY,
({
/* *INDENT-OFF* */
REPLY_MACRO2(VL_API_GET_NODE_INDEX_REPLY,
({
- rmp->node_index =
ntoh
l(node_index);
+ rmp->node_index =
hton
l(node_index);
}));
/* *INDENT-ON* */
}
}));
/* *INDENT-ON* */
}
@@
-389,7
+389,7
@@
out:
/* *INDENT-OFF* */
REPLY_MACRO2(VL_API_GET_NEXT_INDEX_REPLY,
({
/* *INDENT-OFF* */
REPLY_MACRO2(VL_API_GET_NEXT_INDEX_REPLY,
({
- rmp->next_index =
ntoh
l(next_index);
+ rmp->next_index =
hton
l(next_index);
}));
/* *INDENT-ON* */
}
}));
/* *INDENT-ON* */
}
@@
-420,9
+420,9
@@
vl_api_add_node_next_t_handler (vl_api_add_node_next_t * mp)
out:
/* *INDENT-OFF* */
out:
/* *INDENT-OFF* */
- REPLY_MACRO2(VL_API_
GET_NODE_INDEX
_REPLY,
+ REPLY_MACRO2(VL_API_
ADD_NODE_NEXT
_REPLY,
({
({
- rmp->next_index =
ntoh
l(next_index);
+ rmp->next_index =
hton
l(next_index);
}));
/* *INDENT-ON* */
}
}));
/* *INDENT-ON* */
}