From 59ae981b22dadc99313dfc0814b18450b4115531 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 16 Oct 2015 14:28:09 +0200 Subject: [PATCH] platform: fix reading dst-port and src-port-range for vxlan This was broken since introducing vxlan support. --- src/platform/nm-linux-platform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index ed8918be61..ace3321c83 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -3779,12 +3779,12 @@ vxlan_info_data_parser (struct nlattr *info_data, gpointer parser_data) props->ttl = nla_get_u8 (tb[IFLA_VXLAN_TTL]); if (tb[IFLA_VXLAN_PORT]) - props->dst_port = nla_get_u16 (tb[IFLA_VXLAN_PORT]); + props->dst_port = ntohs (nla_get_u16 (tb[IFLA_VXLAN_PORT])); if (tb[IFLA_VXLAN_PORT_RANGE]) { range = nla_data (tb[IFLA_VXLAN_PORT_RANGE]); - props->src_port_min = range->low; - props->src_port_max = range->high; + props->src_port_min = ntohs (range->low); + props->src_port_max = ntohs (range->high); } if (tb[IFLA_VXLAN_LEARNING])