diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2019-08-26 11:25:52 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-09-12 20:25:10 +0000 |
commit | 3b2db9002c14f9e0742622f2d503c5801d443827 (patch) | |
tree | 298fabfa77400f93ae0d214c47b90da9ee912d60 /src/vnet/devices/af_packet/af_packet_api.c | |
parent | 3c7c613cf18f7825e22190be45ea7f054efafb77 (diff) |
devices: af_packet API cleanup
Use consistent API types.
- fix af_packet_dump dumping deleted interface
Type: fix
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Change-Id: Ie8d138e30c8c51a2306bb2ad9ac0b7a49d5412bf
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/vnet/devices/af_packet/af_packet_api.c')
-rw-r--r-- | src/vnet/devices/af_packet/af_packet_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/devices/af_packet/af_packet_api.c b/src/vnet/devices/af_packet/af_packet_api.c index 48f0588b3a1..dd9697a8a6b 100644 --- a/src/vnet/devices/af_packet/af_packet_api.c +++ b/src/vnet/devices/af_packet/af_packet_api.c @@ -100,7 +100,7 @@ static void vl_api_af_packet_delete_reply_t *rmp; int rv = 0; - rv = af_packet_set_l4_cksum_offload (vm, mp->sw_if_index, mp->set); + rv = af_packet_set_l4_cksum_offload (vm, ntohl (mp->sw_if_index), mp->set); REPLY_MACRO (VL_API_AF_PACKET_SET_L4_CKSUM_OFFLOAD_REPLY); } |