Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133016512
D1893.vs3837.id3838.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
474 B
Referenced Files
None
Subscribers
None
D1893.vs3837.id3838.diff
View Options
Index: sys/netinet/ip_output.c
===================================================================
--- sys/netinet/ip_output.c
+++ sys/netinet/ip_output.c
@@ -743,10 +743,8 @@
* be less than the receiver's page size ?
*/
int newlen;
- struct mbuf *m;
- for (m = m0, off = 0; m && (off+m->m_len) <= mtu; m = m->m_next)
- off += m->m_len;
+ off = (m0->m_pkthdr.len >= mtu) ? mtu : m0->m_pkthdr.len;
/*
* firstlen (off - hlen) must be aligned on an
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 23, 2:34 AM (8 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24079062
Default Alt Text
D1893.vs3837.id3838.diff (474 B)
Attached To
Mode
D1893: Fix special case in ip_fragment() to produce a more sensible chain of packets
Attached
Detach File
Event Timeline
Log In to Comment