1. 16 7月, 2018 2 次提交
  2. 09 1月, 2018 4 次提交
    • P
      netfilter: move reroute indirection to struct nf_ipv6_ops · ce388f45
      Pablo Neira Ayuso 提交于
      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: NPablo Neira Ayuso <pablo@netfilter.org>
      ce388f45
    • P
      netfilter: move route indirection to struct nf_ipv6_ops · 3f87c08c
      Pablo Neira Ayuso 提交于
      We cannot make a direct call to nf_ip6_route() because that would result
      in autoloading the 'ipv6' module because of symbol dependencies.
      Therefore, define route 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: NPablo Neira Ayuso <pablo@netfilter.org>
      3f87c08c
    • P
      netfilter: move checksum_partial indirection to struct nf_ipv6_ops · f7dcbe2f
      Pablo Neira Ayuso 提交于
      We cannot make a direct call to nf_ip6_checksum_partial() because that
      would result in autoloading the 'ipv6' module because of symbol
      dependencies.  Therefore, define checksum_partial 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: NPablo Neira Ayuso <pablo@netfilter.org>
      f7dcbe2f
    • P
      netfilter: move checksum indirection to struct nf_ipv6_ops · ef71fe27
      Pablo Neira Ayuso 提交于
      We cannot make a direct call to nf_ip6_checksum() because that would
      result in autoloading the 'ipv6' module because of symbol dependencies.
      Therefore, define checksum 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: NPablo Neira Ayuso <pablo@netfilter.org>
      ef71fe27