platform: fix reading dst-port and src-port-range for vxlan

This was broken since introducing vxlan support.
This commit is contained in:
Thomas Haller
2015-10-16 14:28:09 +02:00
parent 1a6f4d08ba
commit 59ae981b22

View File

@@ -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])