You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
netfilter: refactor NAT redirect IPv4 to use it from nf_tables
This patch refactors the IPv4 code so it can be usable both from xt and nf_tables. A similar patch follows-up to handle IPv6. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
committed by
Pablo Neira Ayuso
parent
b8901ac319
commit
8b13eddfdf
@@ -0,0 +1,9 @@
|
||||
#ifndef _NF_NAT_REDIRECT_IPV4_H_
|
||||
#define _NF_NAT_REDIRECT_IPV4_H_
|
||||
|
||||
unsigned int
|
||||
nf_nat_redirect_ipv4(struct sk_buff *skb,
|
||||
const struct nf_nat_ipv4_multi_range_compat *mr,
|
||||
unsigned int hooknum);
|
||||
|
||||
#endif /* _NF_NAT_REDIRECT_IPV4_H_ */
|
||||
Reference in New Issue
Block a user