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
1bf453b3
Commit
1bf453b3
authored
Mar 02, 2003
by
Harald Welte
Committed by
David S. Miller
Mar 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETFILTER]: fix NAT ICMP reply translation of inner packet.
parent
1b31fcf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
net/ipv4/netfilter/ip_nat_core.c
net/ipv4/netfilter/ip_nat_core.c
+4
-4
No files found.
net/ipv4/netfilter/ip_nat_core.c
View file @
1bf453b3
...
@@ -913,7 +913,7 @@ icmp_reply_translation(struct sk_buff *skb,
...
@@ -913,7 +913,7 @@ icmp_reply_translation(struct sk_buff *skb,
packet, except it was never src/dst reversed, so
packet, except it was never src/dst reversed, so
where we would normally apply a dst manip, we apply
where we would normally apply a dst manip, we apply
a src, and vice versa. */
a src, and vice versa. */
if
(
info
->
manips
[
i
].
hooknum
==
opposite_hook
[
hooknum
]
)
{
if
(
info
->
manips
[
i
].
hooknum
==
hooknum
)
{
DEBUGP
(
"icmp_reply: inner %s -> %u.%u.%u.%u %u
\n
"
,
DEBUGP
(
"icmp_reply: inner %s -> %u.%u.%u.%u %u
\n
"
,
info
->
manips
[
i
].
maniptype
==
IP_NAT_MANIP_SRC
info
->
manips
[
i
].
maniptype
==
IP_NAT_MANIP_SRC
?
"DST"
:
"SRC"
,
?
"DST"
:
"SRC"
,
...
@@ -924,9 +924,9 @@ icmp_reply_translation(struct sk_buff *skb,
...
@@ -924,9 +924,9 @@ icmp_reply_translation(struct sk_buff *skb,
&
info
->
manips
[
i
].
manip
,
&
info
->
manips
[
i
].
manip
,
!
info
->
manips
[
i
].
maniptype
,
!
info
->
manips
[
i
].
maniptype
,
&
skb
->
nfcache
);
&
skb
->
nfcache
);
/* Outer packet needs to have IP header NATed like
/* Outer packet needs to have IP header NATed like
it's a reply. */
it's a reply. */
}
else
if
(
info
->
manips
[
i
].
hooknum
==
hooknum
)
{
/* Use mapping to map outer packet: 0 give no
/* Use mapping to map outer packet: 0 give no
per-proto mapping */
per-proto mapping */
DEBUGP
(
"icmp_reply: outer %s -> %u.%u.%u.%u
\n
"
,
DEBUGP
(
"icmp_reply: outer %s -> %u.%u.%u.%u
\n
"
,
...
...
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