Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154743139
D30009.id88411.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
533 B
Referenced Files
None
Subscribers
None
D30009.id88411.diff
View Options
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -2827,11 +2827,13 @@
if (pf_rv == PFIL_PASS) {
m_init(m, M_NOWAIT, MT_DATA, M_PKTHDR);
#ifndef __NO_STRICT_ALIGNMENT
- if (!IP_ALIGNED(m))
+ if (!IP_ALIGNED(m) && ri->iri_pad == 0)
m->m_data += 2;
#endif
memcpy(m->m_data, *sd.ifsd_cl, ri->iri_len);
m->m_len = ri->iri_frags[0].irf_len;
+ m->m_data += ri->iri_pad;
+ ri->iri_len -= ri->iri_pad;
}
} else {
m = assemble_segments(rxq, ri, &sd, &pf_rv);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 8:47 AM (9 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32481296
Default Alt Text
D30009.id88411.diff (533 B)
Attached To
Mode
D30009: iflib: Take iri_pad into account when processing small frames
Attached
Detach File
Event Timeline
Log In to Comment