diff options
author | Gabriel Ganne <gabriel.ganne@enea.com> | 2018-01-11 15:09:38 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-01-15 16:37:38 +0000 |
commit | 149a1433b0e6301a34989f5e8c7ebed3fa5bf74e (patch) | |
tree | fa7d5b289ecbed3083f863f051b85efe81d70ef1 /src/plugins/ioam/udp-ping/udp_ping_api.c | |
parent | 92cdd72058a80d0b8b28c00495b3051a0390d545 (diff) |
fix udp_ping api naming error
Error messages:
ERROR:VAPI CPP GEN:Cannot find reply to message `udp_ping_add_del_req'
ERROR:VAPI CPP GEN:Cannot find reply to message `udp_ping_export_req'
ERROR:VAPI C GEN:Cannot find reply to message `udp_ping_add_del_req'
ERROR:VAPI C GEN:Cannot find reply to message `udp_ping_export_req'
Api was *_req/*_resp, but when explicitely declared, the reply should
then have been *_req_reply.
Both api response are empty, so I propose to remove them, and use
autoreply
API changes:
rename udp_ping_add_del_req -> udp_ping_add_del
rename udp_ping_export_req -> udp_ping_export
delete udp_ping_add_del_reply (empty response)
delete udp_ping_export_reply (empty response)
vl_api_version 1.0.0 ->2.0.0
Change-Id: Id3456c8101a7689fbc56dc2d9076625c2b3af0ad
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
Diffstat (limited to 'src/plugins/ioam/udp-ping/udp_ping_api.c')
-rw-r--r-- | src/plugins/ioam/udp-ping/udp_ping_api.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/ioam/udp-ping/udp_ping_api.c b/src/plugins/ioam/udp-ping/udp_ping_api.c index 52190097f1a..b66c1696010 100644 --- a/src/plugins/ioam/udp-ping/udp_ping_api.c +++ b/src/plugins/ioam/udp-ping/udp_ping_api.c @@ -56,11 +56,11 @@ /* List of message types that this module understands */ #define foreach_udp_ping_api_msg \ - _(UDP_PING_ADD_DEL_REQ, udp_ping_add_del_req) \ - _(UDP_PING_EXPORT_REQ, udp_ping_export_req) \ + _(UDP_PING_ADD_DEL, udp_ping_add_del) \ + _(UDP_PING_EXPORT, udp_ping_export) \ -static void vl_api_udp_ping_add_del_req_t_handler - (vl_api_udp_ping_add_del_req_t * mp) +static void +vl_api_udp_ping_add_del_t_handler (vl_api_udp_ping_add_del_t * mp) { ip46_address_t dst, src; int rv = 0; @@ -90,8 +90,8 @@ ERROROUT: REPLY_MACRO (VL_API_UDP_PING_ADD_DEL_REPLY); } -static void vl_api_udp_ping_export_req_t_handler - (vl_api_udp_ping_export_req_t * mp) +static void +vl_api_udp_ping_export_t_handler (vl_api_udp_ping_export_t * mp) { udp_ping_main_t *sm = &udp_ping_main; int rv = 0; |