diff options
author | David Ahern <dsahern@gmail.com> | 2017-05-25 10:42:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-26 14:12:50 -0400 |
commit | 6ffd903415320d68a528865296e4740da350785e (patch) | |
tree | 314ab6766dd04828b5b0224d973ddf2d57afc7b3 /net/ipv4/fib_trie.c | |
parent | 3765d35ed8b9363cbf72ffe2282002d717a40843 (diff) | |
download | op-kernel-dev-6ffd903415320d68a528865296e4740da350785e.zip op-kernel-dev-6ffd903415320d68a528865296e4740da350785e.tar.gz |
net: ipv4: Save trie prefix to fib lookup result
Prefix is needed for returning matching route spec on get route request.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r-- | net/ipv4/fib_trie.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 6d0f6c79..6e9df7d 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c @@ -1452,6 +1452,7 @@ found: if (!(fib_flags & FIB_LOOKUP_NOREF)) atomic_inc(&fi->fib_clntref); + res->prefix = htonl(n->key); res->prefixlen = KEYLENGTH - fa->fa_slen; res->nh_sel = nhsel; res->type = fa->fa_type; |