net/ipv4: Move device validation to helper
authorDavid Ahern <dsahern@gmail.com>
Thu, 20 Sep 2018 20:50:47 +0000 (13:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2018 03:01:52 +0000 (20:01 -0700)
commit78f2756c5fc0bf17560766dbc5aaa1e4a7ba66e4
tree6f0d2d9ab64a7580e0f566da73ce39382375d7cb
parent5678cb3c96eeea907f5319a3644bbada26508e58
net/ipv4: Move device validation to helper

Move the device matching check in __fib_validate_source to a helper and
export it for use by netfilter modules. Code move only; no functional
change intended.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_frontend.c