summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ef789f1)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
nla_put_u32(msg, IFLA_VXLAN_ID, vxlan_tunnel_id(vt));
nla_put(msg, IFLA_VXLAN_LOCAL6, sizeof(struct in6_addr), &local->local_addr);
nla_put(msg, IFLA_VXLAN_GROUP6, sizeof(struct in6_addr), &group_addr);
nla_put_u32(msg, IFLA_VXLAN_ID, vxlan_tunnel_id(vt));
nla_put(msg, IFLA_VXLAN_LOCAL6, sizeof(struct in6_addr), &local->local_addr);
nla_put(msg, IFLA_VXLAN_GROUP6, sizeof(struct in6_addr), &group_addr);
- nla_put_u16(msg, IFLA_VXLAN_PORT, vt->port);
+ nla_put_u16(msg, IFLA_VXLAN_PORT, htons(vt->port));
nla_put_u8(msg, IFLA_VXLAN_LEARNING, 1);
nla_put_u32(msg, IFLA_VXLAN_LINK, vt->net->ifindex);
nla_nest_end(msg, data);
nla_put_u8(msg, IFLA_VXLAN_LEARNING, 1);
nla_put_u32(msg, IFLA_VXLAN_LINK, vt->net->ifindex);
nla_nest_end(msg, data);