]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: fib_select_default should match the prefix
authorJulian Anastasov <ja@ssi.bg>
Wed, 22 Jul 2015 07:43:22 +0000 (10:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jul 2015 05:46:09 +0000 (22:46 -0700)
commitcbe673b03c4eb67328de6a9a497f28466cdaf7a7
treed6775aeabe8e6427fb257a032eb4452cfe0862dd
parent2c63b5e2e6b744aa837f7e62a7134250e523d3c2
ipv4: fib_select_default should match the prefix

fib_trie starting from 4.1 can link fib aliases from
different prefixes in same list. Make sure the alternative
gateways are in same table and for same prefix (0) by
checking tb_id and fa_slen.

Fixes: 987ddc8235cd ("fib_trie: Remove leaf_info")
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_semantics.c