Changeset 6f34090 for swig/python/check.py
- Timestamp:
- 09/21/04 15:18:19 (18 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:
- f2794ea
- Parents:
- 77ba31d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
swig/python/check.py
r77ba31d r6f34090 10 10 packet = libtrace.Packet() 11 11 12 count = 0 12 13 while 1: 13 14 trace.trace_read_packet(packet) 14 15 if not packet: 15 16 break 16 #ippacket = packet.trace_get_ip()17 #if not ippacket:18 #continue17 ippacket = packet.trace_get_ip() 18 if not ippacket: 19 continue 19 20 20 print packet.size 21 #print ippacket.ip_src,'->',ippacket.ip_dst 21 count += 1 22 if count % 10000 == 0: 23 print count 24 #print packet.size 25 # print ippacket.ip_src,'->',ippacket.ip_dst 22 26
Note: See TracChangeset
for help on using the changeset viewer.