Commit e1b2cb655060e081e73b384b1fc8b2e978f73467

Authored by Tom Herbert
Committed by David S. Miller
1 parent 93ffbeab77

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 <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -789,7 +789,7 @@
789 789 nla_put_u16(skb, IFLA_GRE_ENCAP_DPORT,
790 790 t->encap.dport) ||
791 791 nla_put_u16(skb, IFLA_GRE_ENCAP_FLAGS,
792   - t->encap.dport))
  792 + t->encap.flags))
793 793 goto nla_put_failure;
794 794  
795 795 return 0;
... ... @@ -465,7 +465,7 @@
465 465 nla_put_u16(skb, IFLA_IPTUN_ENCAP_DPORT,
466 466 tunnel->encap.dport) ||
467 467 nla_put_u16(skb, IFLA_IPTUN_ENCAP_FLAGS,
468   - tunnel->encap.dport))
  468 + tunnel->encap.flags))
469 469 goto nla_put_failure;
470 470  
471 471 return 0;
... ... @@ -1714,7 +1714,7 @@
1714 1714 nla_put_u16(skb, IFLA_IPTUN_ENCAP_DPORT,
1715 1715 tunnel->encap.dport) ||
1716 1716 nla_put_u16(skb, IFLA_IPTUN_ENCAP_FLAGS,
1717   - tunnel->encap.dport))
  1717 + tunnel->encap.flags))
1718 1718 goto nla_put_failure;
1719 1719  
1720 1720 return 0;