Ignore:
Timestamp:
09/21/04 15:18:19 (17 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:
f2794ea
Parents:
77ba31d
Message:

updated for new api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • swig/python/check.py

    r77ba31d r6f34090  
    1010packet = libtrace.Packet()
    1111
     12count = 0
    1213while 1:
    1314        trace.trace_read_packet(packet)
    1415        if not packet:
    1516                break
    16         #ippacket = packet.trace_get_ip()
    17         #if not ippacket:
    18 #               continue
     17        ippacket = packet.trace_get_ip()
     18        if not ippacket:
     19                continue
    1920
    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
    2226
Note: See TracChangeset for help on using the changeset viewer.