Changeset 48d72f8 for lib


Ignore:
Timestamp:
01/04/12 15:35:18 (10 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
29532e3
Parents:
31413f1
Message:
  • Fixed stupid bug where the difference between remaining at the IP layer and remaining at the transport layer was over-inflated by 4 bytes on packets with a FCS.
  • Fixed bug where promoted packets were not correctly updating their packet type to SLL and therefore could not be later demoted back to their original format.
Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/linktypes.c

    r9cc1266 r48d72f8  
    273273                ((struct libtrace_pcapfile_pkt_hdr_t*) packet->header)->wirelen+=
    274274                        sizeof(libtrace_sll_header_t);
     275                trace_clear_cache(packet);
    275276                return;
    276277        }
  • lib/protocols_l3.c

    ree58d0d r48d72f8  
    129129                 * don't want that counting as possible payload, e.g. for
    130130                 * payload length calculations */
    131                 if (*remaining > ntohs(ipptr->ip_len))
    132                         *remaining = ntohs(ipptr->ip_len);
     131                //if (*remaining > ntohs(ipptr->ip_len))
     132                //      *remaining = ntohs(ipptr->ip_len);
    133133
    134134                *remaining-=(ipptr->ip_hl * 4);
Note: See TracChangeset for help on using the changeset viewer.