Bugzilla – Attachment 49027 Details for
Bug 114159
tcpdump cannot deal with TSO packets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Proposed patch
guess-tso.patch (text/plain), 698 bytes, created by
Olaf Kirch
on 2005-09-07 09:42:48 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Olaf Kirch
Created:
2005-09-07 09:42:48 UTC
Size:
698 bytes
patch
obsolete
>Index: ethereal-0.10.12/epan/dissectors/packet-ip.c >=================================================================== >--- ethereal-0.10.12.orig/epan/dissectors/packet-ip.c >+++ ethereal-0.10.12/epan/dissectors/packet-ip.c >@@ -950,6 +950,13 @@ dissect_ip(tvbuff_t *tvb, packet_info *p > doing its checksumming. */ > iph->ip_len = tvb_get_ntohs(tvb, offset + 2); > >+ /* On Linux, packets handed off to the NIC for TSO will have a fake >+ * IP header with a length field of 0. >+ * Fixing it up. >+ */ >+ if (iph->ip_len == 0) >+ iph->ip_len = tvb_reported_length(tvb); >+ > /* Adjust the length of this tvbuff to include only the IP datagram. */ > set_actual_length(tvb, iph->ip_len); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 114159
: 49027