FreeBSD Bugzilla – Attachment 178417 Details for
Bug 212283
oversized IP datagrams on raw socket with IP_RAWOUTPUT hang network interface drivers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch to enforce consistent lengths
file_212283.txt (text/plain), 529 bytes, created by
Michael Tuexen
on 2016-12-31 12:40:27 UTC
(
hide
)
Description:
Proposed patch to enforce consistent lengths
Filename:
MIME Type:
Creator:
Michael Tuexen
Created:
2016-12-31 12:40:27 UTC
Size:
529 bytes
patch
obsolete
>Index: sys/netinet/raw_ip.c >=================================================================== >--- sys/netinet/raw_ip.c (revision 310879) >+++ sys/netinet/raw_ip.c (working copy) >@@ -508,7 +508,7 @@ > * and don't allow packet length sizes that will crash. > */ > if (((ip->ip_hl != (sizeof (*ip) >> 2)) && inp->inp_options) >- || (ntohs(ip->ip_len) > m->m_pkthdr.len) >+ || (ntohs(ip->ip_len) != m->m_pkthdr.len) > || (ntohs(ip->ip_len) < (ip->ip_hl << 2))) { > INP_RUNLOCK(inp); > m_freem(m);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212283
:
174255
|
174350
|
174351
|
178331
|
178398
|
178409
|
178410
| 178417 |
178855