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
nexedi
linux
Commits
a0b53804
Commit
a0b53804
authored
Nov 01, 2002
by
Bart De Schuymer
Committed by
David S. Miller
Nov 01, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIDGE]: Update br-netfilter for dst_pmtu changes.
parent
31457e34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
net/bridge/br_netfilter.c
net/bridge/br_netfilter.c
+8
-4
No files found.
net/bridge/br_netfilter.c
View file @
a0b53804
...
@@ -57,7 +57,8 @@ static struct rtable __fake_rtable = {
...
@@ -57,7 +57,8 @@ static struct rtable __fake_rtable = {
dst:
{
dst:
{
__refcnt:
ATOMIC_INIT
(
1
),
__refcnt:
ATOMIC_INIT
(
1
),
dev:
&
__fake_net_device
,
dev:
&
__fake_net_device
,
pmtu:
1500
path:
&
__fake_rtable
.
u
.
dst
,
metrics:
{[
RTAX_MTU
]
1500
},
}
}
},
},
...
@@ -109,8 +110,8 @@ static void __br_dnat_complain(void)
...
@@ -109,8 +110,8 @@ static void __br_dnat_complain(void)
* Let us now consider the case that ip_route_input() fails:
* Let us now consider the case that ip_route_input() fails:
*
*
* After a "echo '0' > /proc/sys/net/ipv4/ip_forward" ip_route_input()
* After a "echo '0' > /proc/sys/net/ipv4/ip_forward" ip_route_input()
* will fail, while
ip_route_output
() will return success. The source
* will fail, while
__ip_route_output_key
() will return success. The source
* address for
ip_route_output() is set to zero, so ip_route_output()
* address for
__ip_route_output_key() is set to zero, so __ip_route_output_key
* thinks we're handling a locally generated packet and won't care
* thinks we're handling a locally generated packet and won't care
* if IP forwarding is allowed. We send a warning message to the users's
* if IP forwarding is allowed. We send a warning message to the users's
* log telling her to put IP forwarding on.
* log telling her to put IP forwarding on.
...
@@ -158,8 +159,11 @@ static int br_nf_pre_routing_finish(struct sk_buff *skb)
...
@@ -158,8 +159,11 @@ static int br_nf_pre_routing_finish(struct sk_buff *skb)
if
(
ip_route_input
(
skb
,
iph
->
daddr
,
iph
->
saddr
,
iph
->
tos
,
if
(
ip_route_input
(
skb
,
iph
->
daddr
,
iph
->
saddr
,
iph
->
tos
,
dev
))
{
dev
))
{
struct
rtable
*
rt
;
struct
rtable
*
rt
;
struct
flowi
fl
=
{
.
nl_u
=
{
.
ip4_u
=
{
.
daddr
=
iph
->
daddr
,
.
saddr
=
0
,
.
tos
=
iph
->
tos
}
},
.
proto
=
0
};
if
(
!
ip_route_output
(
&
rt
,
iph
->
daddr
,
0
,
iph
->
tos
,
0
))
{
if
(
!
ip_route_output
_key
(
&
rt
,
&
fl
))
{
/* Bridged-and-DNAT'ed traffic doesn't
/* Bridged-and-DNAT'ed traffic doesn't
* require ip_forwarding.
* require ip_forwarding.
*/
*/
...
...
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