source: swig/python/check.py @ 2980487

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 2980487 was 2980487, checked in by Daniel Lawson <dlawson@…>, 17 years ago

new version

  • Property mode set to 100755
File size: 310 bytes
Line 
1#!/usr/bin/python
2import libtrace
3import sys
4
5trace = libtrace.Trace(sys.argv[1])
6
7print "trace=",trace
8
9
10
11while 1:
12        packet = libtrace.Packet()
13        trace.trace_read_packet(packet)
14        if not packet:
15                break
16        ippacket = packet.trace_get_ip()
17        if not ippacket:
18                continue
19
20        print ippacket.ip_src,'->',ippacket.ip_dst
21
Note: See TracBrowser for help on using the repository browser.