Changeset b7d2de5


Ignore:
Timestamp:
02/23/06 14:23:21 (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:
d3b2234
Parents:
ed7c716
Message:

Fix *both* places where snaplen is initialised

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    rbdde7b8 rb7d2de5  
    174174                malloc(sizeof(struct libtrace_format_data_t));
    175175        DATA(libtrace)->filter = NULL;
    176         DATA(libtrace)->snaplen = 0;
     176        DATA(libtrace)->snaplen = LIBTRACE_PACKET_BUFSIZE;
    177177        DATA(libtrace)->promisc = 0;
    178178        return 1;
     
    272272
    273273        packet->size = numbytes + sizeof(struct pcap_pkthdr);
     274
     275        printf("%i %i %i\n",pcaphdr->caplen,pcaphdr->len,packet->size);
    274276
    275277        assert(pcaphdr->caplen>=0 && pcaphdr->caplen<=65536);
Note: See TracChangeset for help on using the changeset viewer.