diff options
Diffstat (limited to 'net/core/flow_dissector.c')
-rw-r--r-- | net/core/flow_dissector.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index a225089df5b6..466820b6e344 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/ipv6.h> | 4 | #include <linux/ipv6.h> |
5 | #include <linux/if_vlan.h> | 5 | #include <linux/if_vlan.h> |
6 | #include <net/ip.h> | 6 | #include <net/ip.h> |
7 | #include <net/ipv6.h> | ||
7 | #include <linux/if_tunnel.h> | 8 | #include <linux/if_tunnel.h> |
8 | #include <linux/if_pppox.h> | 9 | #include <linux/if_pppox.h> |
9 | #include <linux/ppp_defs.h> | 10 | #include <linux/ppp_defs.h> |
@@ -55,8 +56,8 @@ ipv6: | |||
55 | return false; | 56 | return false; |
56 | 57 | ||
57 | ip_proto = iph->nexthdr; | 58 | ip_proto = iph->nexthdr; |
58 | flow->src = iph->saddr.s6_addr32[3]; | 59 | flow->src = (__force __be32)ipv6_addr_hash(&iph->saddr); |
59 | flow->dst = iph->daddr.s6_addr32[3]; | 60 | flow->dst = (__force __be32)ipv6_addr_hash(&iph->daddr); |
60 | nhoff += sizeof(struct ipv6hdr); | 61 | nhoff += sizeof(struct ipv6hdr); |
61 | break; | 62 | break; |
62 | } | 63 | } |