Changeset c1db742 for lib/format_pcap.c


Ignore:
Timestamp:
02/22/06 16:44:31 (16 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:
f0d19d4
Parents:
fe76c55
Message:

rename PACKET/EXTERNAL to TRACE_CTRL_ to avoid symbol clashes on windows.
fix some c++ style comments that have snuck in somewhere along the lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    rfe76c55 rc1db742  
    254254        numbytes = pcaphdr->len;
    255255
    256         packet->buf_control = PACKET;
    257         if (!packet->buffer) {
     256        if (!packet->buffer || packet->buf_control==TRACE_CTRL_EXTERNAL) {
    258257                /* We only need struct pcap_pkthdr, but we have no way
    259258                 * to say how much we malloc'd so that formats can determine
     
    261260                 * malloc 64k
    262261                 */
     262                packet->buf_control = TRACE_CTRL_PACKET;
    263263                packet->buffer=malloc(65536);
    264264        }
Note: See TracChangeset for help on using the changeset viewer.