Changeset d5e7d91
- Timestamp:
- 09/22/04 13:08:29 (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:
- 516b30e
- Parents:
- f2794ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
swig/python/check.py
rf2794ea rd5e7d91 12 12 count = 0 13 13 14 filter = libtrace.Filter("tcp and port 80")14 filter = libtrace.Filter("tcp") 15 15 16 16 while 1: … … 23 23 continue 24 24 25 tcppacket = packet.trace_get_tcp()26 if not tcppacket:27 continue25 count += 1 26 if count % 10000 == 0: 27 print count 28 28 29 if not packet.trace_bpf_filter(filter): 30 continue 29 #tcppacket = packet.trace_get_tcp() 30 #if not tcppacket: 31 # continue 31 32 32 print ippacket.ip_src,':',tcppacket.source,'->',ippacket.ip_dst,':',tcppacket.dest 33 #if not packet.trace_bpf_filter(filter): 34 # continue 33 35 36 #print ippacket.ip_src,':',tcppacket.source,'->',ippacket.ip_dst,':',tcppacket.dest 37
Note: See TracChangeset
for help on using the changeset viewer.