Ignore:
Timestamp:
07/03/06 13:20:45 (15 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:
5bb5dd2
Parents:
b49ea36
Message:

removed trace_ prefix on functions where it isn't needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • swig/python/check.py

    r47de0aa rf0b9060  
    66trace = libtrace.Trace(sys.argv[1])
    77
    8 if trace.trace_is_err():
     8if trace.is_err():
    99        print "Trace failed: %s" % trace.trace_get_err()
    1010        sys.exit()
     
    2020print "filter=",filter
    2121
    22 ret=trace.trace_start()
     22ret=trace.start()
    2323
    2424if ret < 0:
     
    2727
    2828while 1:
    29         trace.trace_read_packet(packet)
     29        trace.read_packet(packet)
    3030        if not packet:
    3131                break
    3232
    33         ippacket = packet.trace_get_ip()
     33        ippacket = packet.get_ip()
    3434        if not ippacket:
    3535                continue
     
    3939                print count
    4040
    41         tcppacket = packet.trace_get_tcp()
     41        tcppacket = packet.get_tcp()
    4242        if not tcppacket:
    4343                continue
    4444
    45         if not packet.trace_apply_filter(filter):
     45        if not packet.apply_filter(filter):
    4646                continue
    4747       
    48         src = packet.trace_get_source_port()
    49         dst = packet.trace_get_destination_port()
    50         if packet.trace_get_server_port(4,src,dst) == 0:
     48        src = packet.get_source_port()
     49        dst = packet.get_destination_port()
     50        if packet.get_server_port(4,src,dst) == 0:
    5151                print ippacket.ip_src,':',src,'->',ippacket.ip_dst,':',dst
    5252        else:   
Note: See TracChangeset for help on using the changeset viewer.