Changeset 2980487 for swig/python/check.py
- Timestamp:
- 09/21/04 13:11:41 (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:
- 77ba31d
- Parents:
- 4e194bc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
swig/python/check.py
r4e194bc r2980487 7 7 print "trace=",trace 8 8 9 packet = trace.read_packet()10 9 11 print "packet=",packet12 10 13 11 while 1: 14 packet = trace.read_packet() 12 packet = libtrace.Packet() 13 trace.trace_read_packet(packet) 15 14 if not packet: 16 15 break 17 print packet.get_ip().ip_src,'->',packet.get_ip().ip_dst 16 ippacket = packet.trace_get_ip() 17 if not ippacket: 18 continue 18 19 20 print ippacket.ip_src,'->',ippacket.ip_dst 21
Note: See TracChangeset
for help on using the changeset viewer.