View | Details | Raw Unified | Return to bug 114159
Collapse All | Expand All

(-)ethereal-0.10.12/epan/dissectors/packet-ip.c (+7 lines)
Lines 950-955 dissect_ip(tvbuff_t *tvb, packet_info *p Link Here
950
     doing its checksumming. */
950
     doing its checksumming. */
951
  iph->ip_len = tvb_get_ntohs(tvb, offset + 2);
951
  iph->ip_len = tvb_get_ntohs(tvb, offset + 2);
952
952
953
  /* On Linux, packets handed off to the NIC for TSO will have a fake
954
   * IP header with a length field of 0.
955
   * Fixing it up.
956
   */
957
  if (iph->ip_len == 0)
958
    iph->ip_len = tvb_reported_length(tvb);
959
953
  /* Adjust the length of this tvbuff to include only the IP datagram. */
960
  /* Adjust the length of this tvbuff to include only the IP datagram. */
954
  set_actual_length(tvb, iph->ip_len);
961
  set_actual_length(tvb, iph->ip_len);
955
962

Return to bug 114159