diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2020-03-19 08:03:55 +0100 |
---|---|---|
committer | Jakub Grajciar <jgrajcia@cisco.com> | 2020-03-19 12:49:55 +0100 |
commit | 7dd63e5cc1b48adc4f912778ba79d67c71f94b83 (patch) | |
tree | 8d923e3337cb7dc5666c135b4898ad6c5f7adced /src/vnet/udp/udp_api.c | |
parent | f14578972a21fe10cd3ff72aaaaea43da4d74d20 (diff) |
ip: change ip API enums address_family and ip_proto size to u8
Type: fix
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Change-Id: I73d27520726543d6375caad76a841339f68c3533
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/vnet/udp/udp_api.c')
-rw-r--r-- | src/vnet/udp/udp_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/udp/udp_api.c b/src/vnet/udp/udp_api.c index 522b0a804ca..566acbcf35c 100644 --- a/src/vnet/udp/udp_api.c +++ b/src/vnet/udp/udp_api.c @@ -61,8 +61,8 @@ send_udp_encap_details (const udp_encap_t * ue, vl_api_registration_t * reg, &ue->ue_hdrs.ip4.ue_ip4.src_address, 4); clib_memcpy (&mp->udp_encap.dst_ip.un.ip4, &ue->ue_hdrs.ip4.ue_ip4.dst_address, 4); - mp->udp_encap.dst_ip.af = clib_host_to_net_u32 (ADDRESS_IP4); - mp->udp_encap.src_ip.af = clib_host_to_net_u32 (ADDRESS_IP4); + mp->udp_encap.dst_ip.af = ip_address_family_encode (AF_IP4); + mp->udp_encap.src_ip.af = ip_address_family_encode (AF_IP4); /* ports aren't byte swapped because they are stored in network * byte order */ @@ -75,8 +75,8 @@ send_udp_encap_details (const udp_encap_t * ue, vl_api_registration_t * reg, &ue->ue_hdrs.ip6.ue_ip6.src_address, 16); clib_memcpy (&mp->udp_encap.dst_ip.un.ip6, &ue->ue_hdrs.ip6.ue_ip6.dst_address, 16); - mp->udp_encap.dst_ip.af = clib_host_to_net_u32 (ADDRESS_IP6); - mp->udp_encap.src_ip.af = clib_host_to_net_u32 (ADDRESS_IP6); + mp->udp_encap.dst_ip.af = ip_address_family_encode (AF_IP6); + mp->udp_encap.src_ip.af = ip_address_family_encode (AF_IP6); /* ports aren't byte swapped because they are stored in network * byte order */ |