diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2019-06-21 18:45:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-24 20:18:48 +0300 |
commit | d948974ccc6613b30636014f76700de3aad7e9b7 (patch) | |
tree | 8e16d6fbdaa4f42cbc4600db6884e32b56adcbed /net/ipv4/fib_trie.c | |
parent | b597ca6e8312937450dbae945f9d58c6eb35da0e (diff) | |
download | linux-d948974ccc6613b30636014f76700de3aad7e9b7.tar.xz |
ipv4/route: Allow NULL flowinfo in rt_fill_info()
In the next patch, we're going to use rt_fill_info() to dump exception
routes upon RTM_GETROUTE with NLM_F_ROOT, meaning userspace is requesting
a dump and not a specific route selection, which in turn implies the input
interface is not relevant. Update rt_fill_info() to handle a NULL
flowinfo.
v7: If fl4 is NULL, explicitly set r->rtm_tos to 0: it's not initialised
otherwise (spotted by David Ahern)
v6: New patch
Suggested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_trie.c')
0 files changed, 0 insertions, 0 deletions