Changeset 77ba31d for swig/python


Ignore:
Timestamp:
09/21/04 13:45:44 (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:
6f34090
Parents:
2980487
Message:

poink

Location:
swig/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • swig/python/check.py

    r2980487 r77ba31d  
    88
    99
     10packet = libtrace.Packet()
    1011
    1112while 1:
    12         packet = libtrace.Packet()
    1313        trace.trace_read_packet(packet)
    1414        if not packet:
    1515                break
    16         ippacket = packet.trace_get_ip()
    17         if not ippacket:
    18                 continue
     16        #ippacket = packet.trace_get_ip()
     17        #if not ippacket:
     18#               continue
    1919
    20         print ippacket.ip_src,'->',ippacket.ip_dst
     20        print packet.size
     21        #print ippacket.ip_src,'->',ippacket.ip_dst
    2122
  • swig/python/libtrace.py

    r2980487 r77ba31d  
    295295    def __repr__(self):
    296296        return "<C libtrace_packet_t instance at %s>" % (self.this,)
     297    __swig_setmethods__["trace"] = _libtrace.Packet_trace_set
     298    __swig_getmethods__["trace"] = _libtrace.Packet_trace_get
     299    if _newclass:trace = property(_libtrace.Packet_trace_get, _libtrace.Packet_trace_set)
     300    __swig_setmethods__["buffer"] = _libtrace.Packet_buffer_set
     301    __swig_getmethods__["buffer"] = _libtrace.Packet_buffer_get
     302    if _newclass:buffer = property(_libtrace.Packet_buffer_get, _libtrace.Packet_buffer_set)
     303    __swig_setmethods__["size"] = _libtrace.Packet_size_set
     304    __swig_getmethods__["size"] = _libtrace.Packet_size_get
     305    if _newclass:size = property(_libtrace.Packet_size_get, _libtrace.Packet_size_set)
     306    __swig_setmethods__["status"] = _libtrace.Packet_status_set
     307    __swig_getmethods__["status"] = _libtrace.Packet_status_get
     308    if _newclass:status = property(_libtrace.Packet_status_get, _libtrace.Packet_status_set)
    297309    def __init__(self, *args):
    298310        _swig_setattr(self, Packet, 'this', _libtrace.new_Packet(*args))
Note: See TracChangeset for help on using the changeset viewer.