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
fb9e3ee2
Commit
fb9e3ee2
authored
Mar 19, 2002
by
Alexey Kuznetsov
Committed by
David S. Miller
Mar 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for ipv4 tunnel devices:
- do not make path mtu discovery, when it is disabled :-)
parent
8cf9e590
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
net/ipv4/ip_gre.c
net/ipv4/ip_gre.c
+4
-1
net/ipv4/ipip.c
net/ipv4/ipip.c
+5
-1
net/ipv6/sit.c
net/ipv6/sit.c
+5
-1
No files found.
net/ipv4/ip_gre.c
View file @
fb9e3ee2
...
@@ -760,7 +760,10 @@ static int ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -760,7 +760,10 @@ static int ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
}
}
df
=
tiph
->
frag_off
;
df
=
tiph
->
frag_off
;
if
(
df
)
mtu
=
rt
->
u
.
dst
.
pmtu
-
tunnel
->
hlen
;
mtu
=
rt
->
u
.
dst
.
pmtu
-
tunnel
->
hlen
;
else
mtu
=
skb
->
dst
?
skb
->
dst
->
pmtu
:
dev
->
mtu
;
if
(
skb
->
protocol
==
__constant_htons
(
ETH_P_IP
))
{
if
(
skb
->
protocol
==
__constant_htons
(
ETH_P_IP
))
{
if
(
skb
->
dst
&&
mtu
<
skb
->
dst
->
pmtu
&&
mtu
>=
68
)
if
(
skb
->
dst
&&
mtu
<
skb
->
dst
->
pmtu
&&
mtu
>=
68
)
...
...
net/ipv4/ipip.c
View file @
fb9e3ee2
...
@@ -572,7 +572,11 @@ static int ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -572,7 +572,11 @@ static int ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
goto
tx_error
;
goto
tx_error
;
}
}
if
(
tiph
->
frag_off
)
mtu
=
rt
->
u
.
dst
.
pmtu
-
sizeof
(
struct
iphdr
);
mtu
=
rt
->
u
.
dst
.
pmtu
-
sizeof
(
struct
iphdr
);
else
mtu
=
skb
->
dst
?
skb
->
dst
->
pmtu
:
dev
->
mtu
;
if
(
mtu
<
68
)
{
if
(
mtu
<
68
)
{
tunnel
->
stat
.
collisions
++
;
tunnel
->
stat
.
collisions
++
;
ip_rt_put
(
rt
);
ip_rt_put
(
rt
);
...
...
net/ipv6/sit.c
View file @
fb9e3ee2
...
@@ -517,7 +517,11 @@ static int ipip6_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -517,7 +517,11 @@ static int ipip6_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
goto
tx_error
;
goto
tx_error
;
}
}
if
(
tiph
->
frag_off
)
mtu
=
rt
->
u
.
dst
.
pmtu
-
sizeof
(
struct
iphdr
);
mtu
=
rt
->
u
.
dst
.
pmtu
-
sizeof
(
struct
iphdr
);
else
mtu
=
skb
->
dst
?
skb
->
dst
->
pmtu
:
dev
->
mtu
;
if
(
mtu
<
68
)
{
if
(
mtu
<
68
)
{
tunnel
->
stat
.
collisions
++
;
tunnel
->
stat
.
collisions
++
;
ip_rt_put
(
rt
);
ip_rt_put
(
rt
);
...
...
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