Changeset d5e7d91 for swig


Ignore:
Timestamp:
09/22/04 13:08:29 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
516b30e
Parents:
f2794ea
Message:

changes in check.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • swig/python/check.py

    rf2794ea rd5e7d91  
    1212count = 0
    1313
    14 filter = libtrace.Filter("tcp and port 80")
     14filter = libtrace.Filter("tcp")
    1515
    1616while 1:
     
    2323                continue
    2424
    25         tcppacket = packet.trace_get_tcp()
    26         if not tcppacket:
    27                 continue
     25        count += 1
     26        if count % 10000 == 0:
     27                print count
    2828
    29         if not packet.trace_bpf_filter(filter):
    30                 continue
     29        #tcppacket = packet.trace_get_tcp()
     30        #if not tcppacket:
     31        #       continue
    3132
    32         print ippacket.ip_src,':',tcppacket.source,'->',ippacket.ip_dst,':',tcppacket.dest
     33        #if not packet.trace_bpf_filter(filter):
     34        #       continue
    3335
     36        #print ippacket.ip_src,':',tcppacket.source,'->',ippacket.ip_dst,':',tcppacket.dest
     37
Note: See TracChangeset for help on using the changeset viewer.