Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160260134
D36044.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
750 B
Referenced Files
None
Subscribers
None
D36044.diff
View Options
Index: sys/netinet/in_gif.c
===================================================================
--- sys/netinet/in_gif.c
+++ sys/netinet/in_gif.c
@@ -294,6 +294,8 @@
("in_gif_output: unexpected misalignment"));
m->m_data += len;
m->m_len -= ETHERIP_ALIGN;
+ if ((m->m_flags & M_PKTHDR) != 0)
+ m->m_pkthdr.len -= ETHERIP_ALIGN;
}
#endif
ip = mtod(m, struct ip *);
Index: sys/netinet6/in6_gif.c
===================================================================
--- sys/netinet6/in6_gif.c
+++ sys/netinet6/in6_gif.c
@@ -309,6 +309,8 @@
("in6_gif_output: unexpected misalignment"));
m->m_data += len;
m->m_len -= ETHERIP_ALIGN;
+ if ((m->m_flags & M_PKTHDR) != 0)
+ m->m_pkthdr.len -= ETHERIP_ALIGN;
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 23, 4:05 PM (14 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34253146
Default Alt Text
D36044.diff (750 B)
Attached To
Mode
D36044: gif: Fix mbuf alignment manipulation
Attached
Detach File
Event Timeline
Log In to Comment