Changeset 1734 for trunk/src/tcpprep.c
- Timestamp:
- 03/20/07 22:20:18 (22 months ago)
- Files:
-
- 1 modified
-
trunk/src/tcpprep.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tcpprep.c
r1643 r1734 122 122 errx(1, "Error opening file: %s", errbuf); 123 123 124 #ifdef HAVE_PCAP_SNAPSHOT_OVERRIDE 125 /* libpcap >= 0.9.6 have this which handles broken RedHat libpcap files */ 126 pcap_snapshot_override(pin, 65535); 127 #endif 128 124 129 /* make sure we support the DLT type */ 125 130 switch(pcap_datalink(options.pcap)) { … … 307 312 #endif 308 313 314 assert(pcap); 315 309 316 while ((pktdata = pcap_next(pcap, &pkthdr)) != NULL) { 310 317 packetnum++; … … 316 323 if (options.xX.mode < xXExclude) { 317 324 if (!check_list(options.xX.list, packetnum)) { 318 add_cache(& options.cachedata, DONT_SEND, 0);325 add_cache(&(options.cachedata), DONT_SEND, 0); 319 326 continue; 320 327 } 321 328 } 322 329 else if (check_list(options.xX.list, packetnum)) { 323 add_cache(& options.cachedata, DONT_SEND, 0);330 add_cache(&(options.cachedata), DONT_SEND, 0); 324 331 continue; 325 332 }
