Changeset 1734 for trunk/src/tcpprep.c

Show
Ignore:
Timestamp:
03/20/07 22:20:18 (22 months ago)
Author:
aturner
Message:

tag things as rc1 refs #108
add support for pcap_snapshot_override() refs #130
check that dual nic mode both interfaces have the same dlt refs #125

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/tcpprep.c

    r1643 r1734  
    122122        errx(1, "Error opening file: %s", errbuf); 
    123123 
     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 
    124129    /* make sure we support the DLT type */ 
    125130    switch(pcap_datalink(options.pcap)) { 
     
    307312#endif 
    308313     
     314    assert(pcap); 
     315     
    309316    while ((pktdata = pcap_next(pcap, &pkthdr)) != NULL) { 
    310317        packetnum++; 
     
    316323            if (options.xX.mode < xXExclude) { 
    317324                if (!check_list(options.xX.list, packetnum)) { 
    318                     add_cache(&options.cachedata, DONT_SEND, 0); 
     325                    add_cache(&(options.cachedata), DONT_SEND, 0); 
    319326                    continue; 
    320327                } 
    321328            } 
    322329            else if (check_list(options.xX.list, packetnum)) { 
    323                 add_cache(&options.cachedata, DONT_SEND, 0); 
     330                add_cache(&(options.cachedata), DONT_SEND, 0); 
    324331                continue; 
    325332            }