- Timestamp:
- 02/23/06 14:23:21 (16 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_pcap.c
rbdde7b8 rb7d2de5 174 174 malloc(sizeof(struct libtrace_format_data_t)); 175 175 DATA(libtrace)->filter = NULL; 176 DATA(libtrace)->snaplen = 0;176 DATA(libtrace)->snaplen = LIBTRACE_PACKET_BUFSIZE; 177 177 DATA(libtrace)->promisc = 0; 178 178 return 1; … … 272 272 273 273 packet->size = numbytes + sizeof(struct pcap_pkthdr); 274 275 printf("%i %i %i\n",pcaphdr->caplen,pcaphdr->len,packet->size); 274 276 275 277 assert(pcaphdr->caplen>=0 && pcaphdr->caplen<=65536);
Note: See TracChangeset
for help on using the changeset viewer.