diff options
author | Florian Westphal <fw@strlen.de> | 2018-05-24 13:17:29 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-29 00:25:40 +0200 |
commit | 1ac89d20150e377b74d2ef23f56db0f08088426c (patch) | |
tree | 669e255fcafb9bcd6e3743f4a491727b07aaec9a /net/netfilter/nf_nat_redirect.c | |
parent | 0168e8b36145a7db353055bdd2673096165c8a3a (diff) | |
download | linux-stable-1ac89d20150e377b74d2ef23f56db0f08088426c.tar.gz linux-stable-1ac89d20150e377b74d2ef23f56db0f08088426c.tar.bz2 linux-stable-1ac89d20150e377b74d2ef23f56db0f08088426c.zip |
netfilter: nat: merge nf_nat_redirect into nf_nat
Similar to previous patch, this time, merge redirect+nat.
The redirect module is just 2k in size, get rid of it and make
redirect part available from the nat core.
before:
text data bss dec hex filename
19461 1484 4138 25083 61fb net/netfilter/nf_nat.ko
1236 792 0 2028 7ec net/netfilter/nf_nat_redirect.ko
after:
20340 1508 4138 25986 6582 net/netfilter/nf_nat.ko
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_nat_redirect.c')
-rw-r--r-- | net/netfilter/nf_nat_redirect.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/netfilter/nf_nat_redirect.c b/net/netfilter/nf_nat_redirect.c index 7c4bb0a773ca..adee04af8d43 100644 --- a/net/netfilter/nf_nat_redirect.c +++ b/net/netfilter/nf_nat_redirect.c @@ -15,7 +15,6 @@ #include <linux/inetdevice.h> #include <linux/ip.h> #include <linux/kernel.h> -#include <linux/module.h> #include <linux/netdevice.h> #include <linux/netfilter.h> #include <linux/types.h> @@ -124,6 +123,3 @@ nf_nat_redirect_ipv6(struct sk_buff *skb, const struct nf_nat_range2 *range, return nf_nat_setup_info(ct, &newrange, NF_NAT_MANIP_DST); } EXPORT_SYMBOL_GPL(nf_nat_redirect_ipv6); - -MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>"); |