aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2020-09-03 12:45:20 +0200
committerDamjan Marion <dmarion@me.com>2020-09-04 12:14:51 +0000
commit5cd626eb1e19e9906ee780cbf86cb54abda226e2 (patch)
tree82ba04241a11186542c01c845b88ef3e8c82c907 /src
parent942b9803f842fc520e9c7518ff2fcffbb5d0f14e (diff)
vpp: Fix node APIs
Type: fix Change-Id: Ic6e2b7e05b50945a8e2222019c2942a6ee52e465 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp/api/api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vpp/api/api.c b/src/vpp/api/api.c
index c3380be0b80..99e9eb5df56 100644
--- 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,
({
- rmp->node_index = ntohl(node_index);
+ rmp->node_index = htonl(node_index);
}));
/* *INDENT-ON* */
}
@@ -389,7 +389,7 @@ out:
/* *INDENT-OFF* */
REPLY_MACRO2(VL_API_GET_NEXT_INDEX_REPLY,
({
- rmp->next_index = ntohl(next_index);
+ rmp->next_index = htonl(next_index);
}));
/* *INDENT-ON* */
}
@@ -420,9 +420,9 @@ vl_api_add_node_next_t_handler (vl_api_add_node_next_t * mp)
out:
/* *INDENT-OFF* */
- REPLY_MACRO2(VL_API_GET_NODE_INDEX_REPLY,
+ REPLY_MACRO2(VL_API_ADD_NODE_NEXT_REPLY,
({
- rmp->next_index = ntohl(next_index);
+ rmp->next_index = htonl(next_index);
}));
/* *INDENT-ON* */
}