Changeset 114b8d6 for lib/format_pcap.c


Ignore:
Timestamp:
04/22/06 00:43:32 (15 years ago)
Author:
Perry Lorier <perry@…>
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:
2d96bf2
Parents:
a4bfbf0
Message:

Remove reliance on pcap.h for DLT_'s (and while we're here, make them a pretty
enum, so we get warnings if we forget one somewhere)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    rdd2eaee r114b8d6  
    408408        struct pcap_pkthdr *pcapptr = 0;
    409409        pcapptr = (struct pcap_pkthdr *)packet->header;
    410         if (packet->type==pcap_dlt_to_rt(DLT_EN10MB))
     410        if (packet->type==pcap_dlt_to_rt(TRACE_DLT_EN10MB))
    411411                return pcapptr->len+4; /* Include the missing FCS */
    412412        else
Note: See TracChangeset for help on using the changeset viewer.