source: swig/python/check.py @ 77ba31d

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

poink

  • Property mode set to 100755
File size: 332 bytes
Line 
1#!/usr/bin/python
2import libtrace
3import sys
4
5trace = libtrace.Trace(sys.argv[1])
6
7print "trace=",trace
8
9
10packet = libtrace.Packet()
11
12while 1:
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 packet.size
21        #print ippacket.ip_src,'->',ippacket.ip_dst
22
Note: See TracBrowser for help on using the repository browser.