Skip to content
Commit ce388f45 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

netfilter: move reroute indirection to struct nf_ipv6_ops



We cannot make a direct call to nf_ip6_reroute() because that would result
in autoloading the 'ipv6' module because of symbol dependencies.
Therefore, define reroute indirection in nf_ipv6_ops where this really
belongs to.

For IPv4, we can indeed make a direct function call, which is faster,
given IPv4 is built-in in the networking code by default. Still,
CONFIG_INET=n and CONFIG_NETFILTER=y is possible, so define empty inline
stub for IPv4 in such case.

Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 3f87c08c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment