Changeset 125ec3d


Ignore:
Timestamp:
07/26/10 11:31:24 (10 years ago)
Author:
Shane Alcock <salcock@…>
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:
bb3673d
Parents:
7837dc4
Message:
  • Fixed bug in test where we would try to check the source port before we checked if we actually had a packet - no idea why this never cropped up before now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-pcap-bpf.c

    rd5a27e8 r125ec3d  
    8484                        break;
    8585                }
     86                if (psize == 0) {
     87                        error = 0;
     88                        break;
     89                }
    8690                if (trace_get_source_port(packet)!=80
    8791                 && trace_get_destination_port(packet)!=80) {
    8892                        printf("filter failed!\n");
    8993                        return 1;
    90                 }
    91                 if (psize == 0) {
    92                         error = 0;
    93                         break;
    9494                }
    9595                count ++;
Note: See TracChangeset for help on using the changeset viewer.