Hi all,
I got a serious mistake when using vapi that 'recv msg->name' has nothing
to do with 'send msg-id'.
The currently installed RPMS were compiled yesterday,and i do some change to
src/*.
Should I compile my example after making pkg-rpm && installing all rpms again?
The code like :
vapi_msg_sw_interface_set_l2_bridge *msg =
vapi_alloc_sw_interface_set_l2_bridge(ctx);
msg->payload.rx_sw_if_index = rx_sw_if_index;
msg->payload.bd_id = bd_id;
msg->payload.shg = shg;
msg->payload.shg = shg;
msg->payload.bvi = bvi;
msg->payload.enable = enable;
vapi_msg_sw_interface_set_l2_bridge_hton (msg);
vapi_error_e rv = vapi_send (ctx, msg);
vapi_msg_sw_interface_set_l2_bridge_reply *resp;
size_t size;
rv = vapi_recv (ctx, (void *) &resp, &size, 0, 0);
vapi_msg_sw_interface_set_l2_bridge_reply_hton(resp);
printf("recv msg[%d] %s\n", resp->header._vl_msg_id,
vapi_get_msg_name(resp->header._vl_msg_id) );
----------------------------------------------------
recv msg[166] ip6nd_proxy_details
recv msg[23] sw_interface_tag_add_del
[email protected]
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10811): https://lists.fd.io/g/vpp-dev/message/10811
Mute This Topic: https://lists.fd.io/mt/27309659/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-