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
a6aad08c
Commit
a6aad08c
authored
Apr 29, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Use dst_pmtu not dev->mtu to determine if fragmentation is needed.
parent
01db66c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/ipv4/ip_output.c
net/ipv4/ip_output.c
+2
-2
No files found.
net/ipv4/ip_output.c
View file @
a6aad08c
...
...
@@ -263,7 +263,7 @@ int ip_mc_output(struct sk_buff *skb)
newskb
->
dev
,
ip_dev_loopback_xmit
);
}
if
(
skb
->
len
>
d
ev
->
mtu
||
skb_shinfo
(
skb
)
->
frag_list
)
if
(
skb
->
len
>
d
st_pmtu
(
&
rt
->
u
.
dst
)
||
skb_shinfo
(
skb
)
->
frag_list
)
return
ip_fragment
(
skb
,
ip_finish_output
);
else
return
ip_finish_output
(
skb
);
...
...
@@ -273,7 +273,7 @@ int ip_output(struct sk_buff *skb)
{
IP_INC_STATS
(
IpOutRequests
);
if
((
skb
->
len
>
skb
->
dst
->
dev
->
mtu
||
skb_shinfo
(
skb
)
->
frag_list
)
&&
if
((
skb
->
len
>
dst_pmtu
(
skb
->
dst
)
||
skb_shinfo
(
skb
)
->
frag_list
)
&&
!
skb_shinfo
(
skb
)
->
tso_size
)
return
ip_fragment
(
skb
,
ip_finish_output
);
else
...
...
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