From 4fce36b8f9922d979ad72d89fb891bff0c4483ad Mon Sep 17 00:00:00 2001 From: Jakub Grajciar Date: Wed, 1 Apr 2020 15:42:06 +0200 Subject: ip: remove vl_api_address_family_t byte order swap Type: fix Signed-off-by: Jakub Grajciar Change-Id: I8074db3623ee4b37ac70ce8ea0d1912b97e5c059 --- src/plugins/vrrp/vrrp_api.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/vrrp') diff --git a/src/plugins/vrrp/vrrp_api.c b/src/plugins/vrrp/vrrp_api.c index 9ef90203f32..500569ef1b8 100644 --- a/src/plugins/vrrp/vrrp_api.c +++ b/src/plugins/vrrp/vrrp_api.c @@ -186,14 +186,14 @@ send_vrrp_vr_details (vrrp_vr_t * vr, vl_api_registration_t * reg, if (vrrp_vr_is_ipv6 (vr)) { - api_addr->af = htonl (ADDRESS_IP6); + api_addr->af = ADDRESS_IP6; dst = &api_addr->un.ip6; src = &addr->ip6; len = sizeof (addr->ip6); } else { - api_addr->af = htonl (ADDRESS_IP4); + api_addr->af = ADDRESS_IP4; dst = &api_addr->un.ip4; src = &addr->ip4; len = sizeof (addr->ip4); @@ -317,14 +317,14 @@ send_vrrp_vr_peer_details (vrrp_vr_t * vr, vl_api_registration_t * reg, if (vrrp_vr_is_ipv6 (vr)) { - api_addr->af = htonl (ADDRESS_IP6); + api_addr->af = ADDRESS_IP6; dst = &api_addr->un.ip6; src = &addr->ip6; len = sizeof (addr->ip6); } else { - api_addr->af = htonl (ADDRESS_IP4); + api_addr->af = ADDRESS_IP4; dst = &api_addr->un.ip4; src = &addr->ip4; len = sizeof (addr->ip4); -- cgit 1.2.3-korg