Ignore:
Timestamp:
09/21/04 13:11:41 (18 years ago)
Author:
Daniel Lawson <dlawson@…>
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
Message:

new version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • swig/python/check.py

    r4e194bc r2980487  
    77print "trace=",trace
    88
    9 packet = trace.read_packet()
    109
    11 print "packet=",packet
    1210
    1311while 1:
    14         packet = trace.read_packet()
     12        packet = libtrace.Packet()
     13        trace.trace_read_packet(packet)
    1514        if not packet:
    1615                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
    1819
     20        print ippacket.ip_src,'->',ippacket.ip_dst
     21
Note: See TracChangeset for help on using the changeset viewer.