Changeset 73dd29f for lib/trace.c


Ignore:
Timestamp:
04/02/07 21:44:53 (14 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:
11f2df7
Parents:
02bd77e
Message:

Sooo, pcap has two types of DLT's "pure" DLT's that are platform dependant,
and "linktype" DLT's that are portable and are what are written to pcap files.

Instead of fudging the two concepts together so much, attempt to disintangle
this mess without exposing too much of the god awful mess to the end user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    re01a738 r73dd29f  
    14901490        memcpy(packet->header,&hdr,sizeof(hdr));
    14911491        memcpy(packet->payload,data,(size_t)len);
    1492         packet->type=pcap_dlt_to_rt(libtrace_to_pcap_dlt(linktype));
    1493 }
     1492        packet->type=pcap_linktype_to_rt(libtrace_to_pcap_linktype(linktype));
     1493}
Note: See TracChangeset for help on using the changeset viewer.