FreeBSD Bugzilla – Attachment 39515 Details for
Bug 62274
patch: p0f - fix layer header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.05 KB, created by
Radim Kolar
on 2004-02-02 17:40:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Radim Kolar
Created:
2004-02-02 17:40:04 UTC
Size:
1.05 KB
patch
obsolete
>--- p0f.c.orig Mon Oct 13 20:57:21 2003 >+++ p0f.c Mon Feb 2 13:20:05 2004 >@@ -161,7 +161,8 @@ > > switch(type) { > >- case DLT_NULL: >+ case DLT_NULL: header_len=4; break; >+ > case DLT_SLIP: > case DLT_RAW: break; > >@@ -1199,11 +1200,15 @@ > /* Whoops, IP header ends past end_ptr */ > if ((_u8*)(iph + 1) > end_ptr) return; > >- if ( ((iph->ihl & 0x40) != 0x40) || iph->proto != IPPROTO_TCP) { >- debug("[!] WARNING: Non-IP packet received. Bad header_len!\n"); >+ if ( iph->proto != IPPROTO_TCP) { >+ debug("[!] WARNING: Non-IP packet received.\n"); > return; > } > >+ if ( ((iph->ihl & 0x40) != 0x40) ) { >+ debug("[!] WARNING: Bad header_len!\n"); >+ return; >+ } > /* If the declared length is shorter than the snapshot (etherleak > or such), truncate this bad boy. */ > >--- mtu.h.orig Fri Oct 10 22:56:39 2003 >+++ mtu.h Mon Feb 2 13:30:57 2004 >@@ -58,6 +58,7 @@ > { 4352, "FDDI" }, > { 4500, "token ring (2)" }, > { 9180, "FORE ATM" }, >+ { 16384, "loopback" }, > { 16436, "sometimes loopback" }, > { 18000, "token ring x4" }, > };
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 62274
: 39515