mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 08:10:17 +01:00
platform: fix reading dst-port and src-port-range for vxlan
This was broken since introducing vxlan support.
This commit is contained in:
parent
1a6f4d08ba
commit
59ae981b22
1 changed files with 3 additions and 3 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue