Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ee6eb966
Commit
ee6eb966
authored
Aug 26, 2012
by
Patrick McHardy
Committed by
Pablo Neira Ayuso
Aug 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netfilter: nf_nat: support IPv6 in amanda NAT helper
Signed-off-by:
Patrick McHardy
<
kaber@trash.net
>
parent
d33cbeeb
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
8 deletions
+7
-8
net/ipv4/netfilter/Kconfig
net/ipv4/netfilter/Kconfig
+0
-5
net/ipv4/netfilter/Makefile
net/ipv4/netfilter/Makefile
+0
-1
net/netfilter/Kconfig
net/netfilter/Kconfig
+5
-0
net/netfilter/Makefile
net/netfilter/Makefile
+1
-0
net/netfilter/nf_conntrack_amanda.c
net/netfilter/nf_conntrack_amanda.c
+1
-2
net/netfilter/nf_nat_amanda.c
net/netfilter/nf_nat_amanda.c
+0
-0
No files found.
net/ipv4/netfilter/Kconfig
View file @
ee6eb966
...
...
@@ -231,11 +231,6 @@ config NF_NAT_TFTP
depends on NF_CONNTRACK && NF_NAT_IPV4
default NF_NAT_IPV4 && NF_CONNTRACK_TFTP
config NF_NAT_AMANDA
tristate
depends on NF_CONNTRACK && NF_NAT_IPV4
default NF_NAT_IPV4 && NF_CONNTRACK_AMANDA
config NF_NAT_PPTP
tristate
depends on NF_CONNTRACK && NF_NAT_IPV4
...
...
net/ipv4/netfilter/Makefile
View file @
ee6eb966
...
...
@@ -20,7 +20,6 @@ obj-$(CONFIG_NF_NAT_IPV4) += nf_nat_ipv4.o
obj-$(CONFIG_NF_DEFRAG_IPV4)
+=
nf_defrag_ipv4.o
# NAT helpers (nf_conntrack)
obj-$(CONFIG_NF_NAT_AMANDA)
+=
nf_nat_amanda.o
obj-$(CONFIG_NF_NAT_H323)
+=
nf_nat_h323.o
obj-$(CONFIG_NF_NAT_IRC)
+=
nf_nat_irc.o
obj-$(CONFIG_NF_NAT_PPTP)
+=
nf_nat_pptp.o
...
...
net/netfilter/Kconfig
View file @
ee6eb966
...
...
@@ -380,6 +380,11 @@ config NF_NAT_PROTO_SCTP
depends on NF_NAT && NF_CT_PROTO_SCTP
select LIBCRC32C
config NF_NAT_AMANDA
tristate
depends on NF_CONNTRACK && NF_NAT
default NF_NAT && NF_CONNTRACK_AMANDA
config NF_NAT_FTP
tristate
depends on NF_CONNTRACK && NF_NAT
...
...
net/netfilter/Makefile
View file @
ee6eb966
...
...
@@ -55,6 +55,7 @@ obj-$(CONFIG_NF_NAT_PROTO_UDPLITE) += nf_nat_proto_udplite.o
obj-$(CONFIG_NF_NAT_PROTO_SCTP)
+=
nf_nat_proto_sctp.o
# NAT helpers
obj-$(CONFIG_NF_NAT_AMANDA)
+=
nf_nat_amanda.o
obj-$(CONFIG_NF_NAT_FTP)
+=
nf_nat_ftp.o
# transparent proxy support
...
...
net/netfilter/nf_conntrack_amanda.c
View file @
ee6eb966
...
...
@@ -155,8 +155,7 @@ static int amanda_help(struct sk_buff *skb,
IPPROTO_TCP
,
NULL
,
&
port
);
nf_nat_amanda
=
rcu_dereference
(
nf_nat_amanda_hook
);
if
(
nf_nat_amanda
&&
nf_ct_l3num
(
ct
)
==
NFPROTO_IPV4
&&
ct
->
status
&
IPS_NAT_MASK
)
if
(
nf_nat_amanda
&&
ct
->
status
&
IPS_NAT_MASK
)
ret
=
nf_nat_amanda
(
skb
,
ctinfo
,
protoff
,
off
-
dataoff
,
len
,
exp
);
else
if
(
nf_ct_expect_related
(
exp
)
!=
0
)
...
...
net/
ipv4/
netfilter/nf_nat_amanda.c
→
net/netfilter/nf_nat_amanda.c
View file @
ee6eb966
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment