fou: Fix typo in returning flags in netlink
Subsystems (3)
PATCH 1/1 fou: Fix typo in returning flags in netlink
When filling netlink info, dport is being returned as flags. Fix instances to return correct value.
Signed-off-by Tom Herbert <[email protected]>
--- net/ipv4/ip_gre.c | 2 +- net/ipv4/ipip.c | 2 +- net/ipv6/sit.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
net/ipv4/ip_gre.c +1 -1
@@ -789,7 +789,7 @@ static int ipgre_fill_info(struct sk_buff *skb, const struct net_device *dev)nla_put_u16 (skb,IFLA_GRE_ENCAP_DPORT , t->encap.dport) ||nla_put_u16 (skb,IFLA_GRE_ENCAP_FLAGS , - t->encap.dport)) + t->encap.flags)) goto nla_put_failure;return 0 ;
net/ipv4/ipip.c +1 -1
@@ -465,7 +465,7 @@ static int ipip_fill_info(struct sk_buff *skb, const struct net_device *dev)nla_put_u16 (skb,IFLA_IPTUN_ENCAP_DPORT , tunnel->encap.dport) ||nla_put_u16 (skb,IFLA_IPTUN_ENCAP_FLAGS , - tunnel->encap.dport)) + tunnel->encap.flags)) goto nla_put_failure;return 0 ;
net/ipv6/sit.c +1 -1
@@ -1714,7 +1714,7 @@ static int ipip6_fill_info(struct sk_buff *skb, const struct net_device *dev)nla_put_u16 (skb,IFLA_IPTUN_ENCAP_DPORT , tunnel->encap.dport) ||nla_put_u16 (skb,IFLA_IPTUN_ENCAP_FLAGS , - tunnel->encap.dport)) + tunnel->encap.flags)) goto nla_put_failure;return 0 ;
Signature · 1 line
2.1.0.rc2.206.gedb03e5
From: Tom Herbert <[email protected]>
Date: Wed, 5 Nov 2014 16:49:38 -0800
Quoted 4 lines
When filling netlink info, dport is being returned as flags. Fix instances to return correct value.
Signed-off-by Tom Herbert <[email protected]>
Applied, thanks Tom.