fou: Fix typo in returning flags in netlink
authorTom Herbert <therbert@google.com>
Thu, 6 Nov 2014 00:49:38 +0000 (16:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Nov 2014 03:18:20 +0000 (22:18 -0500)
When filling netlink info, dport is being returned as flags. Fix
instances to return correct value.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
net/ipv4/ipip.c
net/ipv6/sit.c

index 12055fdbe716f0f1d905f288cbe36415f0e4f592..ac8491245e5b2e99a50259bd7a6d95d92bcff4f4 100644 (file)
@@ -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;
index 37096d64730ef0c3c7c7278995f9c0c6e64896e9..40403114f00a115a6726e0a1b322aa01ca4db0b0 100644 (file)
@@ -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;
index 58e5b4710127a996e31b9d2faa97feafc611e39f..45ad92442cd587f6b227edf931e4eebcda1568af 100644 (file)
@@ -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;