diff options
author | David Ahern | 2018-05-16 13:36:40 -0700 |
---|---|---|
committer | David S. Miller | 2018-05-17 14:55:21 -0400 |
commit | 5a847a6e1477be5bd3f94cc1b7708d7d4a7cd94c (patch) | |
tree | f115003a688ee3366207745a53eabbe53a533796 /net/ipv4/ip_gre.c | |
parent | 8ab6ffba14a466c7298cb3fd5066d774d2977ad1 (diff) |
net/ipv4: Initialize proto and ports in flow struct
Updating the FIB tracepoint for the recent change to allow rules using
the protocol and ports exposed a few places where the entries in the flow
struct are not initialized.
For __fib_validate_source add the call to fib4_rules_early_flow_dissect
since it is invoked for the input path. For netfilter, add the memset on
the flow struct to avoid future problems like this. In ip_route_input_slow
need to set the fields if the skb dissection does not happen.
Fixes: bfff4862653b ("net: fib_rules: support for match on ip_proto, sport and dport")
Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_gre.c')
0 files changed, 0 insertions, 0 deletions