summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2020-04-01 15:42:06 +0200
committerOle Trøan <otroan@employees.org>2020-04-03 11:26:28 +0000
commit4fce36b8f9922d979ad72d89fb891bff0c4483ad (patch)
treeb5da648c00ce3014ce728445a889966a4063c629 /src/plugins
parentb32436aab9626cb8b7bc4099142135c5c9e19beb (diff)
ip: remove vl_api_address_family_t byte order swap
Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: I8074db3623ee4b37ac70ce8ea0d1912b97e5c059
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/vrrp/vrrp_api.c8
1 files changed, 4 insertions, 4 deletions
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);