Changeset 3fe7937 for swig


Ignore:
Timestamp:
12/09/04 17:53:09 (16 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:
b49264a
Parents:
68d4cd7
Message:

check for fragmented packet- if so, don't return TCP header

Location:
swig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • swig/libtrace.i

    rf2794ea r3fe7937  
    184184                return trace_get_link_type(self);
    185185        }
    186         uint8_t trace_get_direction() {
     186        int8_t trace_get_direction() {
    187187                return trace_get_direction(self);
     188        }
     189        int8_t trace_set_direction(int8_t direction) {
     190                return trace_set_direction(self,direction);
    188191        }
    189192        int trace_bpf_filter(struct libtrace_filter_t *filter) {
    190193                return trace_bpf_filter(filter,self);
     194        }
     195        uint8_t trace_get_server_port(uint8_t protocol, uint16_t source,
     196                        uint16_t dest) {
     197                return trace_get_server_port(protocol,source,dest);
    191198        }
    192199       
  • swig/libtrace_wrap.c

    rf2794ea r3fe7937  
    11/* ----------------------------------------------------------------------------
    22 * This file was automatically generated by SWIG (http://www.swig.org).
    3  * Version 1.3.21
     3 * Version 1.3.22
    44 *
    55 * This file is not intended to be easily readable and contains a number of
     
    2626#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
    2727#define SWIG_TypeName        SWIG_Python_TypeName
     28#define SWIG_TypePrettyName  SWIG_Python_TypePrettyName
    2829#define SWIG_TypeQuery       SWIG_Python_TypeQuery
    2930#define SWIG_TypeClientData  SWIG_Python_TypeClientData
     
    102103SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
    103104SWIGIMPORT(const char *)     SWIG_TypeName(const swig_type_info *);
     105SWIGIMPORT(const char *)     SWIG_TypePrettyName(const swig_type_info *);
    104106SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
    105107SWIGIMPORT(void)             SWIG_TypeClientData(swig_type_info *, void *);
     
    110112
    111113static swig_type_info *swig_type_list = 0;
     114static swig_type_info **swig_type_list_handle = &swig_type_list;
    112115
    113116/* Register a type mapping with the type-checking */
     
    116119  swig_type_info *tc, *head, *ret, *next;
    117120  /* Check to see if this type has already been registered */
    118   tc = swig_type_list;
     121  tc = *swig_type_list_handle;
    119122  while (tc) {
    120123    if (strcmp(tc->name, ti->name) == 0) {
     
    131134
    132135  /* Place in list */
    133   ti->prev = swig_type_list;
    134   swig_type_list = ti;
     136  ti->prev = *swig_type_list_handle;
     137  *swig_type_list_handle = ti;
    135138
    136139  /* Build linked lists */
     
    201204}
    202205
     206/* Return the pretty name associated with this type,
     207   that is an unmangled type name in a form presentable to the user.
     208*/
     209SWIGRUNTIME(const char *)
     210SWIG_TypePrettyName(const swig_type_info *type) {
     211  /* The "str" field contains the equivalent pretty names of the
     212     type, separated by vertical-bar characters.  We choose
     213     to print the last name, as it is often (?) the most
     214     specific. */
     215  if (type->str != NULL) {
     216    const char *last_name = type->str;
     217    const char *s;
     218    for (s = type->str; *s; s++)
     219      if (*s == '|') last_name = s+1;
     220    return last_name;
     221  }
     222  else
     223    return type->name;
     224}
     225
     226/*
     227   Compare two type names skipping the space characters, therefore
     228   "char*" == "char *" and "Class<int>" == "Class<int >", etc.
     229
     230   Return 0 when the two name types are equivalent, as in
     231   strncmp, but skipping ' '.
     232*/
     233static int
     234SWIG_TypeNameComp(const char *f1, const char *l1,
     235                  const char *f2, const char *l2) {
     236  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
     237    while ((*f1 == ' ') && (f1 != l1)) ++f1;
     238    while ((*f2 == ' ') && (f2 != l2)) ++f2;
     239    if (*f1 != *f2) return *f1 - *f2;
     240  }
     241  return (l1 - f1) - (l2 - f2);
     242}
     243
     244/*
     245  Check type equivalence in a name list like <name1>|<name2>|...
     246*/
     247static int
     248SWIG_TypeEquiv(const char *nb, const char *tb) {
     249  int equiv = 0;
     250  const char* te = tb + strlen(tb);
     251  const char* ne = nb;
     252  while (!equiv && *ne) {
     253    for (nb = ne; *ne; ++ne) {
     254      if (*ne == '|') break;
     255    }
     256    equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0;
     257    if (*ne) ++ne;
     258  }
     259  return equiv;
     260}
     261 
     262
    203263/* Search for a swig_type_info structure */
    204264SWIGRUNTIME(swig_type_info *)
    205265SWIG_TypeQuery(const char *name) {
    206   swig_type_info *ty = swig_type_list;
     266  swig_type_info *ty = *swig_type_list_handle;
    207267  while (ty) {
    208     if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
     268    if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty;
    209269    if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
    210270    ty = ty->prev;
     
    222282  while (equiv) {
    223283    if (!equiv->converter) {
    224       tc = swig_type_list;
     284      tc = *swig_type_list_handle;
    225285      while (tc) {
    226286        if ((strcmp(tc->name, equiv->name) == 0))
     
    237297SWIG_PackData(char *c, void *ptr, int sz) {
    238298  static char hex[17] = "0123456789abcdef";
    239   int i;
    240299  unsigned char *u = (unsigned char *) ptr;
     300  const unsigned char *eu =  u + sz;
    241301  register unsigned char uu;
    242   for (i = 0; i < sz; i++,u++) {
     302  for (; u != eu; ++u) {
    243303    uu = *u;
    244304    *(c++) = hex[(uu & 0xf0) >> 4];
     
    254314  register int d;
    255315  unsigned char *u = (unsigned char *) ptr;
    256   int i;
    257   for (i = 0; i < sz; i++, u++) {
     316  const unsigned char *eu =  u + sz;
     317  for (; u != eu; ++u) {
    258318    d = *(c++);
    259319    if ((d >= '0') && (d <= '9'))
     
    278338
    279339/***********************************************************************
    280  * python.swg
     340 * pyrun.swg
    281341 *
    282342 *     This file contains the runtime support for Python modules
     
    286346 * Author : David Beazley (beazley@cs.uchicago.edu)
    287347 ************************************************************************/
    288 
    289 #include "Python.h"
    290348
    291349#ifdef __cplusplus
     
    324382#define SWIG_MustGetPtr(p, type, argnum, flags) \
    325383  SWIG_Python_MustGetPtr(p, type, argnum, flags)
    326 
     384 
    327385/* Python-specific SWIG API */
    328386#define SWIG_newvarlink() \
     
    337395  SWIG_Python_InstallConstants(d, constants)
    338396
     397typedef double (*py_objasdbl_conv)(PyObject *obj);
     398
    339399#ifdef SWIG_NOINCLUDE
    340400
     
    348408SWIGIMPORT(void)              SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
    349409
     410
    350411#else
     412
    351413
    352414/* -----------------------------------------------------------------------------
     
    413475statichere PyTypeObject varlinktype = {
    414476  PyObject_HEAD_INIT(0)             
    415   0,
    416   (char *)"swigvarlink",              /* Type name   */
    417   sizeof(swig_varlinkobject),         /* Basic size   */
    418   0,                                  /* Itemsize     */
    419   0,                                  /* Deallocator */
    420   (printfunc) swig_varlink_print,     /* Print       */
    421   (getattrfunc) swig_varlink_getattr, /* get attr     */
    422   (setattrfunc) swig_varlink_setattr, /* Set attr     */
    423   0,                                  /* tp_compare   */
    424   (reprfunc) swig_varlink_repr,       /* tp_repr      */   
     477  0,                                  /* Number of items in variable part (ob_size) */
     478  (char *)"swigvarlink",              /* Type name (tp_name) */
     479  sizeof(swig_varlinkobject),         /* Basic size (tp_basicsize) */
     480  0,                                  /* Itemsize (tp_itemsize) */
     481  0,                                  /* Deallocator (tp_dealloc) */
     482  (printfunc) swig_varlink_print,     /* Print (tp_print) */
     483  (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
     484  (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
     485  0,                                  /* tp_compare */
     486  (reprfunc) swig_varlink_repr,       /* tp_repr */
    425487  0,                                  /* tp_as_number */
    426   0,                                  /* tp_as_mapping*/
    427   0,                                  /* tp_hash      */
     488  0,                                  /* tp_as_sequence */
     489  0,                                  /* tp_as_mapping */
     490  0,                                  /* tp_hash */
     491  0,                                  /* tp_call */
     492  0,                                  /* tp_str */
     493  0,                                  /* tp_getattro */
     494  0,                                  /* tp_setattro */
     495  0,                                  /* tp_as_buffer */
     496  0,                                  /* tp_flags */
     497  0,                                  /* tp_doc */
     498  0,                                  /* tp_traverse */
     499  0,                                  /* tp_clear */
     500  0,                                  /* tp_richcompare */
     501  0,                                  /* tp_weaklistoffset */
     502#if PY_VERSION_HEX >= 0x02020000
     503  0,                                  /* tp_iter */
     504  0,                                  /* tp_iternext */
     505  0,                                  /* tp_methods */
     506  0,                                  /* tp_members */
     507  0,                                  /* tp_getset */
     508  0,                                  /* tp_base */
     509  0,                                  /* tp_dict */
     510  0,                                  /* tp_descr_get */
     511  0,                                  /* tp_descr_set */
     512  0,                                  /* tp_dictoffset */
     513  0,                                  /* tp_init */
     514  0,                                  /* tp_alloc */
     515  0,                                  /* tp_new */
     516  0,                                  /* tp_free */
     517  0,                                  /* tp_is_gc */
     518  0,                                  /* tp_bases */
     519  0,                                  /* tp_mro */
     520  0,                                  /* tp_cache */
     521  0,                                  /* tp_subclasses */
     522  0,                                  /* tp_weaklist */
     523#endif
     524#if PY_VERSION_HEX >= 0x02030200
     525  0,                                  /* tp_del */
     526#endif
     527#ifdef COUNT_ALLOCS
     528  /* these must be last */
     529  0,                                  /* tp_alloc */
     530  0,                                  /* tp_free */
     531  0,                                  /* tp_maxalloc */
     532  0,                                  /*  tp_next */
     533#endif
    428534};
    429535
     
    499605    }
    500606  }
    501   c = PyString_AsString(obj);
     607  c = PyString_AS_STRING(obj);
    502608  /* Pointer values must start with leading underscore */
    503609  if (*c != '_') {
     
    527633
    528634  if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
    529     PyObject *zero = PyInt_FromLong(0);
    530     PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
    531     Py_DECREF(zero);
     635    PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
    532636  }
    533637  return 0;
    534638
    535639type_error:
     640  PyErr_Clear();
    536641  if (flags & SWIG_POINTER_EXCEPTION) {
    537642    if (ty && c) {
    538       char *temp = (char *) malloc(64+strlen(ty->name)+strlen(c));
    539       sprintf(temp,"Type error. Got %s, expected %s", c, ty->name);
    540       PyErr_SetString(PyExc_TypeError, temp);
    541       free((char *) temp);
     643      PyErr_Format(PyExc_TypeError,
     644                   "Type error. Got %s, expected %s",
     645                   c, ty->name);
    542646    } else {
    543647      PyErr_SetString(PyExc_TypeError,"Expected a pointer");
     
    562666
    563667  if ((!obj) || (!PyString_Check(obj))) goto type_error;
    564   c = PyString_AsString(obj);
     668  c = PyString_AS_STRING(obj);
    565669  /* Pointer values must start with leading underscore */
    566670  if (*c != '_') goto type_error;
     
    577681  if (flags) {
    578682    if (ty && c) {
    579       char *temp = (char *) malloc(64+strlen(ty->name)+strlen(c));
    580       sprintf(temp,"Type error. Got %s, expected %s", c, ty->name);
    581       PyErr_SetString(PyExc_TypeError, temp);
    582       free((char *) temp);
     683      PyErr_Format(PyExc_TypeError,
     684                   "Type error. Got %s, expected %s",
     685                   c, ty->name);
    583686    } else {
    584687      PyErr_SetString(PyExc_TypeError,"Expected a pointer");
     
    617720    if (inst) {
    618721      if (own) {
    619         PyObject *n = PyInt_FromLong(1);
    620         PyObject_SetAttrString(inst,(char*)"thisown",n);
    621         Py_DECREF(n);
     722        PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
    622723      }
    623724      robj = inst;
     
    652753      break;
    653754    case SWIG_PY_STRING:
    654       obj = PyString_FromString((char *) constants[i].pvalue);
     755      if (constants[i].pvalue) {
     756        obj = PyString_FromString((char *) constants[i].pvalue);
     757      } else {
     758        Py_INCREF(Py_None);
     759        obj = Py_None;
     760      }
    655761      break;
    656762    case SWIG_PY_POINTER:
     
    692798#define  SWIGTYPE_p_void swig_types[6]
    693799#define  SWIGTYPE_p_libtrace_packet_t swig_types[7]
    694 #define  SWIGTYPE_p_libtrace_filter_t swig_types[8]
     800#define  SWIGTYPE_p_char swig_types[8]
    695801#define  SWIGTYPE_p_libtrace_icmp_un_frag swig_types[9]
    696 #define  SWIGTYPE_p_timeval swig_types[10]
    697 #define  SWIGTYPE_p_libtrace_icmp swig_types[11]
    698 #define  SWIGTYPE_p_in_addr swig_types[12]
    699 #define  SWIGTYPE_p_libtrace_tcp swig_types[13]
    700 #define  SWIGTYPE_p_libtrace_linktype_t swig_types[14]
    701 static swig_type_info *swig_types[16];
     802#define  SWIGTYPE_p_libtrace_filter_t swig_types[10]
     803#define  SWIGTYPE_p_timeval swig_types[11]
     804#define  SWIGTYPE_p_libtrace_icmp swig_types[12]
     805#define  SWIGTYPE_p_int8_t swig_types[13]
     806#define  SWIGTYPE_p_in_addr swig_types[14]
     807#define  SWIGTYPE_p_libtrace_tcp swig_types[15]
     808#define  SWIGTYPE_p_libtrace_linktype_t swig_types[16]
     809static swig_type_info *swig_types[18];
    702810
    703811/* -------- TYPES TABLE (END) -------- */
     
    711819#define SWIG_name    "_libtrace"
    712820
     821/* Auxiliar swig  macros that appear in the header */
     822
     823#define SWIG_OLDOBJ  1
     824#define SWIG_NEWOBJ  SWIG_OLDOBJ + 1
     825#define SWIG_PYSTR   SWIG_NEWOBJ + 1
     826
     827#ifdef __cplusplus
     828#define SWIGSTATICINLINE(a) static inline a
     829#define SWIGSTATIC(a) static a
     830#define swig_new_array(size,Type) (new Type[(size)])
     831#define swig_delete(cptr) delete cptr
     832#define swig_delete_array(cptr) delete[] cptr
     833#define swig_const_cast(a,Type) const_cast<Type >(a)
     834#define swig_static_cast(a,Type) static_cast<Type >(a)
     835#define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
     836#define swig_new_copy(ptr,Type) (new Type(*ptr))
     837#define swig_numeric_cast(a,Type) static_cast<Type >(a)
     838
     839#else /* C case */
     840
     841#define SWIGSTATICINLINE(a) static a
     842#define SWIGSTATIC(a) static a
     843#define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
     844#define swig_delete(cptr) free((char*)cptr)
     845#define swig_delete_array(cptr) free((char*)cptr)
     846#define swig_const_cast(a,Type) (Type)(a)
     847#define swig_static_cast(a,Type) (Type)(a)
     848#define swig_reinterpret_cast(a,Type) (Type)(a)
     849#define swig_numeric_cast(a,Type) (Type)(a)
     850#define swig_new_copy(ptr,Type)  ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
     851
     852#endif /* __cplusplus */
     853
     854
     855/*@/usr/share/swig1.3/python/pymacros.swg,63,SWIG_define@*/
     856#define SWIG_From_signed_SS_char PyInt_FromLong
     857/*@@*/
     858/*@/usr/share/swig1.3/python/pymacros.swg,63,SWIG_define@*/
     859#define SWIG_From_unsigned_SS_char PyInt_FromLong
     860/*@@*/
     861/*@/usr/share/swig1.3/python/pymacros.swg,63,SWIG_define@*/
     862#define SWIG_From_short PyInt_FromLong
     863/*@@*/
     864/*@/usr/share/swig1.3/python/pymacros.swg,63,SWIG_define@*/
     865#define SWIG_From_unsigned_SS_short PyInt_FromLong
     866/*@@*/
     867/*@/usr/share/swig1.3/python/pymacros.swg,63,SWIG_define@*/
     868#define SWIG_From_int PyInt_FromLong
     869/*@@*/
     870/*@/usr/share/swig1.3/python/pymacros.swg,63,SWIG_define@*/
     871#define SWIG_From_long PyInt_FromLong
     872/*@@*/
     873/*@/usr/share/swig1.3/python/pymacros.swg,63,SWIG_define@*/
     874#define SWIG_From_float PyFloat_FromDouble
     875/*@@*/
     876/*@/usr/share/swig1.3/python/pymacros.swg,63,SWIG_define@*/
     877#define SWIG_From_double PyFloat_FromDouble
     878/*@@*/
     879
     880
    713881#include <arpa/inet.h>
    714882#include "libtrace.h"
     
    716884
    717885#include <stdlib.h>
     886
     887
     888#include <limits.h>
     889
     890
     891SWIGSTATICINLINE(int)
     892  SWIG_CheckLongInRange(long value, long min_value, long max_value,
     893                        const char *errmsg)
     894{
     895  if (value < min_value) {
     896    if (errmsg) {
     897      PyErr_Format(PyExc_OverflowError,
     898                   "value %ld is less than '%s' minimum %ld",
     899                   value, errmsg, min_value);
     900    }
     901    return 0;   
     902  } else if (value > max_value) {
     903    if (errmsg) {
     904      PyErr_Format(PyExc_OverflowError,
     905                   "value %ld is greater than '%s' maximum %ld",
     906                   value, errmsg, max_value);
     907    }
     908    return 0;
     909  }
     910  return 1;
     911}
     912
     913
     914SWIGSTATICINLINE(int)
     915  SWIG_AsVal_long(PyObject * obj, long* val)
     916{
     917  if (PyInt_Check(obj)) {
     918    if (val) *val = PyInt_AS_LONG(obj);
     919    return 1;
     920  }
     921  if (PyLong_Check(obj)) {
     922    long v = PyLong_AsLong(obj);
     923    if (!PyErr_Occurred()) {
     924      if (val) *val = v;
     925      return 1;
     926    } else {
     927      if (!val) PyErr_Clear();
     928      return 0;
     929    }
     930  }
     931  if (val) {
     932    PyErr_SetString(PyExc_TypeError, "a long is expected");
     933  }
     934  return 0;
     935 }
     936
     937
     938#if INT_MAX != LONG_MAX
     939SWIGSTATICINLINE(int)
     940  SWIG_AsVal_int(PyObject *obj, int *val)
     941{
     942  const char* errmsg = val ? "int" : 0;
     943  long v;
     944  if (SWIG_AsVal_long(obj, &v)) {
     945    if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
     946      if (val) *val = swig_numeric_cast(v, int);
     947      return 1;
     948    } else {
     949      return 0;
     950    }
     951  } else {
     952    PyErr_Clear();
     953  }
     954  if (val) {
     955    PyErr_SetString(PyExc_TypeError, "an int is expected");
     956  }
     957  return 0;   
     958}
     959#else
     960SWIGSTATICINLINE(int)
     961  SWIG_AsVal_int(PyObject *obj, int *val)
     962{
     963  return SWIG_AsVal_long(obj,(long*)val);
     964}
     965#endif
     966
     967
     968SWIGSTATICINLINE(int)
     969SWIG_As_int(PyObject* obj)
     970{
     971  int v;
     972  if (!SWIG_AsVal_int(obj, &v)) {
     973    /*
     974      this is needed to make valgrind/purify happier.  the other
     975      solution is throw an exception, but since this code should work
     976      with plain C ....
     977     */
     978    memset((void*)&v, 0, sizeof(int));
     979  }
     980  return v;
     981}
     982
     983 
     984SWIGSTATICINLINE(int)
     985SWIG_Check_int(PyObject* obj)
     986{
     987  return SWIG_AsVal_int(obj, (int*)0);
     988}
     989
     990
     991SWIGSTATICINLINE(int)
     992  SWIG_CheckUnsignedLongInRange(unsigned long value,
     993                                unsigned long max_value,
     994                                const char *errmsg)
     995{
     996  if (value > max_value) {
     997    if (errmsg) {
     998      PyErr_Format(PyExc_OverflowError,
     999                   "value %ld is greater than '%s' minimum %ld",
     1000                   value, errmsg, max_value);
     1001    }
     1002    return 0;
     1003  }
     1004  return 1;
     1005 }
     1006
     1007
     1008SWIGSTATICINLINE(int)
     1009  SWIG_AsVal_unsigned_SS_long(PyObject * obj, unsigned long *val)
     1010{
     1011  if (PyInt_Check(obj)) {
     1012    long v = PyInt_AS_LONG(obj);
     1013    if (v >= 0) {
     1014      if (val) *val = v;
     1015      return 1;
     1016    }   
     1017  }
     1018  if (PyLong_Check(obj)) {
     1019    unsigned long v = PyLong_AsUnsignedLong(obj);
     1020    if (!PyErr_Occurred()) {
     1021      if (val) *val = v;
     1022      return 1;
     1023    } else {
     1024      if (!val) PyErr_Clear();
     1025      return 0;
     1026    }
     1027  }
     1028  if (val) {
     1029    PyErr_SetString(PyExc_TypeError, "an unsigned long is expected");
     1030  }
     1031  return 0;
     1032}
     1033
     1034
     1035#if UINT_MAX != ULONG_MAX
     1036SWIGSTATICINLINE(int)
     1037  SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
     1038{
     1039  const char* errmsg = val ? "unsigned int" : 0;
     1040  unsigned long v;
     1041  if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
     1042    if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
     1043      if (val) *val = swig_numeric_cast(v, unsigned int);
     1044      return 1;
     1045    }
     1046  } else {
     1047    PyErr_Clear();
     1048  }
     1049  if (val) {
     1050    PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
     1051  }
     1052  return 0;   
     1053}
     1054#else
     1055SWIGSTATICINLINE(unsigned int)
     1056  SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
     1057{
     1058  return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
     1059}
     1060#endif
     1061
     1062
     1063SWIGSTATICINLINE(unsigned int)
     1064SWIG_As_unsigned_SS_int(PyObject* obj)
     1065{
     1066  unsigned int v;
     1067  if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
     1068    /*
     1069      this is needed to make valgrind/purify happier.  the other
     1070      solution is throw an exception, but since this code should work
     1071      with plain C ....
     1072     */
     1073    memset((void*)&v, 0, sizeof(unsigned int));
     1074  }
     1075  return v;
     1076}
     1077
     1078 
     1079SWIGSTATICINLINE(int)
     1080SWIG_Check_unsigned_SS_int(PyObject* obj)
     1081{
     1082  return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
     1083}
     1084
     1085
     1086SWIGSTATICINLINE(PyObject* )
     1087  SWIG_From_unsigned_SS_long(unsigned long value)
     1088{
     1089  return (value > LONG_MAX) ?
     1090    PyLong_FromUnsignedLong(value)
     1091    : PyInt_FromLong(swig_numeric_cast(value,long));
     1092}
     1093
     1094
     1095#if UINT_MAX < LONG_MAX
     1096/*@/usr/share/swig1.3/python/pymacros.swg,63,SWIG_define@*/
     1097#define SWIG_From_unsigned_SS_int SWIG_From_long
     1098/*@@*/
     1099#else
     1100/*@/usr/share/swig1.3/python/pymacros.swg,63,SWIG_define@*/
     1101#define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
     1102/*@@*/
     1103#endif
     1104
     1105
     1106SWIGSTATICINLINE(int)
     1107  SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
     1108{
     1109  const char* errmsg = val ? "unsigned char" : 0;
     1110  unsigned long v;
     1111  if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
     1112    if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
     1113      if (val) *val = swig_numeric_cast(v, unsigned char);
     1114      return 1;
     1115    } else {
     1116      return 0;
     1117    }
     1118  } else {
     1119    PyErr_Clear();
     1120  }
     1121  if (val) {
     1122    PyErr_SetString(PyExc_TypeError, "an unsigned char is expected");
     1123  }
     1124  return 0;
     1125}
     1126
     1127
     1128SWIGSTATICINLINE(unsigned char)
     1129SWIG_As_unsigned_SS_char(PyObject* obj)
     1130{
     1131  unsigned char v;
     1132  if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
     1133    /*
     1134      this is needed to make valgrind/purify happier.  the other
     1135      solution is throw an exception, but since this code should work
     1136      with plain C ....
     1137     */
     1138    memset((void*)&v, 0, sizeof(unsigned char));
     1139  }
     1140  return v;
     1141}
     1142
     1143 
     1144SWIGSTATICINLINE(int)
     1145SWIG_Check_unsigned_SS_char(PyObject* obj)
     1146{
     1147  return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
     1148}
     1149
     1150
     1151SWIGSTATICINLINE(PyObject *)
     1152SWIG_FromCharPtr(const char* cptr)
     1153{
     1154  if (cptr) {
     1155    size_t size = strlen(cptr);
     1156    if (size > INT_MAX) {
     1157      return SWIG_NewPointerObj(swig_const_cast(cptr,char*),
     1158                                SWIG_TypeQuery("char *"), 0);
     1159    } else {
     1160      if (size != 0) {
     1161        return PyString_FromStringAndSize(cptr, size);
     1162      } else {
     1163        return PyString_FromString(cptr);
     1164      }
     1165    }
     1166  }
     1167  Py_INCREF(Py_None);
     1168  return Py_None;
     1169}
    7181170
    7191171
     
    7381190                return strdup(inet_ntoa(self->ip_dst));
    7391191            }
     1192
     1193
     1194SWIGSTATICINLINE(int)
     1195  SWIG_AsVal_unsigned_SS_short(PyObject *obj, unsigned short *val)
     1196{
     1197  const char* errmsg = val ? "unsigned short" : 0;
     1198  unsigned long v;
     1199  if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
     1200    if (SWIG_CheckUnsignedLongInRange(v, USHRT_MAX, errmsg)) {
     1201      if (val) *val = swig_numeric_cast(v, unsigned short);
     1202      return 1;
     1203    } else {
     1204      return 0;
     1205    }
     1206  } else {
     1207    PyErr_Clear();
     1208  }
     1209  if (val) {
     1210    PyErr_SetString(PyExc_TypeError, "an unsigned short is expected");
     1211  }
     1212  return 0;
     1213}
     1214
     1215
     1216SWIGSTATICINLINE(unsigned short)
     1217SWIG_As_unsigned_SS_short(PyObject* obj)
     1218{
     1219  unsigned short v;
     1220  if (!SWIG_AsVal_unsigned_SS_short(obj, &v)) {
     1221    /*
     1222      this is needed to make valgrind/purify happier.  the other
     1223      solution is throw an exception, but since this code should work
     1224      with plain C ....
     1225     */
     1226    memset((void*)&v, 0, sizeof(unsigned short));
     1227  }
     1228  return v;
     1229}
     1230
     1231 
     1232SWIGSTATICINLINE(int)
     1233SWIG_Check_unsigned_SS_short(PyObject* obj)
     1234{
     1235  return SWIG_AsVal_unsigned_SS_short(obj, (unsigned short*)0);
     1236}
    7401237
    7411238
     
    8211318                return trace_get_link_type(self);
    8221319        }
    823 uint8_t libtrace_packet_t_trace_get_direction(struct libtrace_packet_t *self){
     1320int8_t libtrace_packet_t_trace_get_direction(struct libtrace_packet_t *self){
    8241321                return trace_get_direction(self);
     1322        }
     1323int8_t libtrace_packet_t_trace_set_direction(struct libtrace_packet_t *self,int8_t direction){
     1324                return trace_set_direction(self,direction);
    8251325        }
    8261326int libtrace_packet_t_trace_bpf_filter(struct libtrace_packet_t *self,struct libtrace_filter_t *filter){
    8271327                return trace_bpf_filter(filter,self);
    8281328        }
     1329uint8_t libtrace_packet_t_trace_get_server_port(struct libtrace_packet_t *self,uint8_t protocol,uint16_t source,uint16_t dest){
     1330                return trace_get_server_port(protocol,source,dest);
     1331        }
     1332
     1333/* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */
     1334SWIGSTATIC(int)
     1335SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize)
     1336{
     1337  static swig_type_info* pchar_info = 0;
     1338  char* vptr = 0;
     1339  if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");
     1340  if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) {
     1341    if (cptr) *cptr = vptr;
     1342    if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
     1343    return SWIG_OLDOBJ;
     1344  } else {
     1345    if (PyString_Check(obj)) {
     1346      if (cptr) {
     1347        *cptr = PyString_AS_STRING(obj);
     1348        if (psize) {
     1349          *psize = PyString_GET_SIZE(obj) + 1;
     1350        }
     1351      }
     1352      return SWIG_PYSTR;
     1353    }
     1354  }
     1355  if (cptr) {
     1356    PyErr_SetString(PyExc_TypeError, "a string is expected");
     1357  }
     1358  return 0;
     1359}
     1360
     1361
     1362SWIGSTATICINLINE(int)
     1363SWIG_AsCharPtr(PyObject *obj, char **val)
     1364{
     1365  char* cptr = 0;
     1366  if (SWIG_AsCharPtrAndSize(obj, &cptr, (size_t*)(0))) {
     1367    if (val) *val = cptr;
     1368    return 1;
     1369  }
     1370  if (val) {
     1371    PyErr_SetString(PyExc_TypeError, "a char* is expected");
     1372  }
     1373  return 0;
     1374}
     1375
    8291376struct libtrace_filter_t *new_libtrace_filter_t(char *filterstring){
    8301377                return trace_bpf_setfilter(filterstring);
     
    8461393    int arg2 ;
    8471394    PyObject * obj0 = 0 ;
    848    
    849     if(!PyArg_ParseTuple(args,(char *)"Oi:in_addr_s_addr_set",&obj0,&arg2)) goto fail;
    850     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_in_addr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1395    PyObject * obj1 = 0 ;
     1396   
     1397    if(!PyArg_ParseTuple(args,(char *)"OO:in_addr_s_addr_set",&obj0,&obj1)) goto fail;
     1398    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_in_addr,
     1399    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1400    arg2 = (int)SWIG_As_int(obj1);
     1401    if (PyErr_Occurred()) SWIG_fail;
    8511402    if (arg1) (arg1)->s_addr = arg2;
    8521403   
     
    8651416   
    8661417    if(!PyArg_ParseTuple(args,(char *)"O:in_addr_s_addr_get",&obj0)) goto fail;
    867     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_in_addr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1418    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_in_addr,
     1419    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    8681420    result = (int) ((arg1)->s_addr);
    8691421   
    870     resultobj = PyInt_FromLong((long)result);
     1422    resultobj = SWIG_From_int((int)result);
    8711423    return resultobj;
    8721424    fail:
     
    8901442   
    8911443    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_ip_ip_hl_set",&obj0,&obj1)) goto fail;
    892     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    893     arg2 = (unsigned int) PyInt_AsLong(obj1);
     1444    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1445    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1446    arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
    8941447    if (PyErr_Occurred()) SWIG_fail;
    8951448    if (arg1) (arg1)->ip_hl = arg2;
     
    9091462   
    9101463    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_hl_get",&obj0)) goto fail;
    911     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1464    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1465    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    9121466    result = (unsigned int) ((arg1)->ip_hl);
    9131467   
    914     resultobj = PyInt_FromLong((long)result);
     1468    resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
    9151469    return resultobj;
    9161470    fail:
     
    9271481   
    9281482    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_ip_ip_v_set",&obj0,&obj1)) goto fail;
    929     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    930     arg2 = (unsigned int) PyInt_AsLong(obj1);
     1483    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1484    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1485    arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
    9311486    if (PyErr_Occurred()) SWIG_fail;
    9321487    if (arg1) (arg1)->ip_v = arg2;
     
    9461501   
    9471502    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_v_get",&obj0)) goto fail;
    948     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1503    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1504    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    9491505    result = (unsigned int) ((arg1)->ip_v);
    9501506   
    951     resultobj = PyInt_FromLong((long)result);
     1507    resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
    9521508    return resultobj;
    9531509    fail:
     
    9641520   
    9651521    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_ip_ip_tos_set",&obj0,&obj1)) goto fail;
    966     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    967     arg2 = (uint8_t) PyInt_AsLong(obj1);
     1522    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1523    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1524    arg2 = (uint8_t)SWIG_As_unsigned_SS_char(obj1);
    9681525    if (PyErr_Occurred()) SWIG_fail;
    9691526    if (arg1) (arg1)->ip_tos = arg2;
     
    9831540   
    9841541    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_tos_get",&obj0)) goto fail;
    985     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1542    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1543    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    9861544    result = (uint8_t) ((arg1)->ip_tos);
    9871545   
    988     resultobj = PyInt_FromLong((long)result);
     1546    resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
    9891547    return resultobj;
    9901548    fail:
     
    10011559   
    10021560    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_ip_ip_ttl_set",&obj0,&obj1)) goto fail;
    1003     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1004     arg2 = (uint8_t) PyInt_AsLong(obj1);
     1561    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1562    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1563    arg2 = (uint8_t)SWIG_As_unsigned_SS_char(obj1);
    10051564    if (PyErr_Occurred()) SWIG_fail;
    10061565    if (arg1) (arg1)->ip_ttl = arg2;
     
    10201579   
    10211580    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_ttl_get",&obj0)) goto fail;
    1022     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1581    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1582    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    10231583    result = (uint8_t) ((arg1)->ip_ttl);
    10241584   
    1025     resultobj = PyInt_FromLong((long)result);
     1585    resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
    10261586    return resultobj;
    10271587    fail:
     
    10381598   
    10391599    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_ip_ip_p_set",&obj0,&obj1)) goto fail;
    1040     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1041     arg2 = (uint8_t) PyInt_AsLong(obj1);
     1600    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1601    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1602    arg2 = (uint8_t)SWIG_As_unsigned_SS_char(obj1);
    10421603    if (PyErr_Occurred()) SWIG_fail;
    10431604    if (arg1) (arg1)->ip_p = arg2;
     
    10571618   
    10581619    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_p_get",&obj0)) goto fail;
    1059     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1620    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1621    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    10601622    result = (uint8_t) ((arg1)->ip_p);
    10611623   
    1062     resultobj = PyInt_FromLong((long)result);
     1624    resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
    10631625    return resultobj;
    10641626    fail:
     
    10741636   
    10751637    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_sum_get",&obj0)) goto fail;
    1076     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1638    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1639    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    10771640    result = (uint16_t)libtrace_ip_ip_sum_get(arg1);
    10781641   
    1079     resultobj = PyInt_FromLong((long)result);
     1642    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    10801643    return resultobj;
    10811644    fail:
     
    10911654   
    10921655    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_len_get",&obj0)) goto fail;
    1093     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1656    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1657    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    10941658    result = (uint16_t)libtrace_ip_ip_len_get(arg1);
    10951659   
    1096     resultobj = PyInt_FromLong((long)result);
     1660    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    10971661    return resultobj;
    10981662    fail:
     
    11081672   
    11091673    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_id_get",&obj0)) goto fail;
    1110     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1674    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1675    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    11111676    result = (uint16_t)libtrace_ip_ip_id_get(arg1);
    11121677   
    1113     resultobj = PyInt_FromLong((long)result);
     1678    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    11141679    return resultobj;
    11151680    fail:
     
    11251690   
    11261691    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_off_get",&obj0)) goto fail;
    1127     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1692    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1693    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    11281694    result = (uint16_t)libtrace_ip_ip_off_get(arg1);
    11291695   
    1130     resultobj = PyInt_FromLong((long)result);
     1696    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    11311697    return resultobj;
    11321698    fail:
     
    11421708   
    11431709    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_src_get",&obj0)) goto fail;
    1144     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1710    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1711    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    11451712    result = (char *)libtrace_ip_ip_src_get(arg1);
    11461713   
    1147     resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
     1714    resultobj = SWIG_FromCharPtr(result);
    11481715    free(result);
    11491716    return resultobj;
     
    11601727   
    11611728    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_ip_ip_dst_get",&obj0)) goto fail;
    1162     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_ip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1729    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_ip,
     1730    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    11631731    result = (char *)libtrace_ip_ip_dst_get(arg1);
    11641732   
    1165     resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
     1733    resultobj = SWIG_FromCharPtr(result);
    11661734    free(result);
    11671735    return resultobj;
     
    11861754   
    11871755    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_tcp_res1_set",&obj0,&obj1)) goto fail;
    1188     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1189     arg2 = (uint16_t) PyInt_AsLong(obj1);
     1756    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1757    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1758    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    11901759    if (PyErr_Occurred()) SWIG_fail;
    11911760    if (arg1) (arg1)->res1 = arg2;
     
    12051774   
    12061775    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_res1_get",&obj0)) goto fail;
    1207     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1776    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1777    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    12081778    result = (uint16_t) ((arg1)->res1);
    12091779   
    1210     resultobj = PyInt_FromLong((long)result);
     1780    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    12111781    return resultobj;
    12121782    fail:
     
    12231793   
    12241794    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_tcp_doff_set",&obj0,&obj1)) goto fail;
    1225     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1226     arg2 = (uint16_t) PyInt_AsLong(obj1);
     1795    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1796    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1797    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    12271798    if (PyErr_Occurred()) SWIG_fail;
    12281799    if (arg1) (arg1)->doff = arg2;
     
    12421813   
    12431814    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_doff_get",&obj0)) goto fail;
    1244     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1815    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1816    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    12451817    result = (uint16_t) ((arg1)->doff);
    12461818   
    1247     resultobj = PyInt_FromLong((long)result);
     1819    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    12481820    return resultobj;
    12491821    fail:
     
    12601832   
    12611833    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_tcp_fin_set",&obj0,&obj1)) goto fail;
    1262     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1263     arg2 = (uint16_t) PyInt_AsLong(obj1);
     1834    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1835    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1836    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    12641837    if (PyErr_Occurred()) SWIG_fail;
    12651838    if (arg1) (arg1)->fin = arg2;
     
    12791852   
    12801853    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_fin_get",&obj0)) goto fail;
    1281     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1854    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1855    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    12821856    result = (uint16_t) ((arg1)->fin);
    12831857   
    1284     resultobj = PyInt_FromLong((long)result);
     1858    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    12851859    return resultobj;
    12861860    fail:
     
    12971871   
    12981872    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_tcp_syn_set",&obj0,&obj1)) goto fail;
    1299     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1300     arg2 = (uint16_t) PyInt_AsLong(obj1);
     1873    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1874    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1875    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    13011876    if (PyErr_Occurred()) SWIG_fail;
    13021877    if (arg1) (arg1)->syn = arg2;
     
    13161891   
    13171892    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_syn_get",&obj0)) goto fail;
    1318     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1893    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1894    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    13191895    result = (uint16_t) ((arg1)->syn);
    13201896   
    1321     resultobj = PyInt_FromLong((long)result);
     1897    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    13221898    return resultobj;
    13231899    fail:
     
    13341910   
    13351911    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_tcp_rst_set",&obj0,&obj1)) goto fail;
    1336     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1337     arg2 = (uint16_t) PyInt_AsLong(obj1);
     1912    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1913    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1914    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    13381915    if (PyErr_Occurred()) SWIG_fail;
    13391916    if (arg1) (arg1)->rst = arg2;
     
    13531930   
    13541931    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_rst_get",&obj0)) goto fail;
    1355     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1932    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1933    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    13561934    result = (uint16_t) ((arg1)->rst);
    13571935   
    1358     resultobj = PyInt_FromLong((long)result);
     1936    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    13591937    return resultobj;
    13601938    fail:
     
    13711949   
    13721950    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_tcp_psh_set",&obj0,&obj1)) goto fail;
    1373     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1374     arg2 = (uint16_t) PyInt_AsLong(obj1);
     1951    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1952    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1953    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    13751954    if (PyErr_Occurred()) SWIG_fail;
    13761955    if (arg1) (arg1)->psh = arg2;
     
    13901969   
    13911970    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_psh_get",&obj0)) goto fail;
    1392     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     1971    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1972    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    13931973    result = (uint16_t) ((arg1)->psh);
    13941974   
    1395     resultobj = PyInt_FromLong((long)result);
     1975    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    13961976    return resultobj;
    13971977    fail:
     
    14081988   
    14091989    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_tcp_ack_set",&obj0,&obj1)) goto fail;
    1410     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1411     arg2 = (uint16_t) PyInt_AsLong(obj1);
     1990    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     1991    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     1992    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    14121993    if (PyErr_Occurred()) SWIG_fail;
    14131994    if (arg1) (arg1)->ack = arg2;
     
    14272008   
    14282009    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_ack_get",&obj0)) goto fail;
    1429     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2010    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2011    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    14302012    result = (uint16_t) ((arg1)->ack);
    14312013   
    1432     resultobj = PyInt_FromLong((long)result);
     2014    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    14332015    return resultobj;
    14342016    fail:
     
    14452027   
    14462028    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_tcp_urg_set",&obj0,&obj1)) goto fail;
    1447     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1448     arg2 = (uint16_t) PyInt_AsLong(obj1);
     2029    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2030    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2031    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    14492032    if (PyErr_Occurred()) SWIG_fail;
    14502033    if (arg1) (arg1)->urg = arg2;
     
    14642047   
    14652048    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_urg_get",&obj0)) goto fail;
    1466     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2049    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2050    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    14672051    result = (uint16_t) ((arg1)->urg);
    14682052   
    1469     resultobj = PyInt_FromLong((long)result);
     2053    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    14702054    return resultobj;
    14712055    fail:
     
    14822066   
    14832067    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_tcp_res2_set",&obj0,&obj1)) goto fail;
    1484     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1485     arg2 = (uint16_t) PyInt_AsLong(obj1);
     2068    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2069    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2070    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    14862071    if (PyErr_Occurred()) SWIG_fail;
    14872072    if (arg1) (arg1)->res2 = arg2;
     
    15012086   
    15022087    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_res2_get",&obj0)) goto fail;
    1503     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2088    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2089    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    15042090    result = (uint16_t) ((arg1)->res2);
    15052091   
    1506     resultobj = PyInt_FromLong((long)result);
     2092    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    15072093    return resultobj;
    15082094    fail:
     
    15182104   
    15192105    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_source_get",&obj0)) goto fail;
    1520     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2106    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2107    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    15212108    result = (uint16_t)libtrace_tcp_source_get(arg1);
    15222109   
    1523     resultobj = PyInt_FromLong((long)result);
     2110    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    15242111    return resultobj;
    15252112    fail:
     
    15352122   
    15362123    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_dest_get",&obj0)) goto fail;
    1537     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2124    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2125    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    15382126    result = (uint16_t)libtrace_tcp_dest_get(arg1);
    15392127   
    1540     resultobj = PyInt_FromLong((long)result);
     2128    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    15412129    return resultobj;
    15422130    fail:
     
    15522140   
    15532141    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_window_get",&obj0)) goto fail;
    1554     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2142    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2143    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    15552144    result = (uint16_t)libtrace_tcp_window_get(arg1);
    15562145   
    1557     resultobj = PyInt_FromLong((long)result);
     2146    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    15582147    return resultobj;
    15592148    fail:
     
    15692158   
    15702159    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_check_get",&obj0)) goto fail;
    1571     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2160    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2161    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    15722162    result = (uint16_t)libtrace_tcp_check_get(arg1);
    15732163   
    1574     resultobj = PyInt_FromLong((long)result);
     2164    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    15752165    return resultobj;
    15762166    fail:
     
    15862176   
    15872177    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_urg_ptr_get",&obj0)) goto fail;
    1588     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2178    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2179    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    15892180    result = (uint16_t)libtrace_tcp_urg_ptr_get(arg1);
    15902181   
    1591     resultobj = PyInt_FromLong((long)result);
     2182    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    15922183    return resultobj;
    15932184    fail:
     
    16032194   
    16042195    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_seq_get",&obj0)) goto fail;
    1605     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2196    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2197    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    16062198    result = (uint32_t)libtrace_tcp_seq_get(arg1);
    16072199   
    1608     resultobj = PyInt_FromLong((long)result);
     2200    resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
    16092201    return resultobj;
    16102202    fail:
     
    16202212   
    16212213    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_tcp_ack_seq_get",&obj0)) goto fail;
    1622     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_tcp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2214    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_tcp,
     2215    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    16232216    result = (uint32_t)libtrace_tcp_ack_seq_get(arg1);
    16242217   
    1625     resultobj = PyInt_FromLong((long)result);
     2218    resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
    16262219    return resultobj;
    16272220    fail:
     
    16442237   
    16452238    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_udp_source_get",&obj0)) goto fail;
    1646     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_udp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2239    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_udp,
     2240    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    16472241    result = (uint16_t)libtrace_udp_source_get(arg1);
    16482242   
    1649     resultobj = PyInt_FromLong((long)result);
     2243    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    16502244    return resultobj;
    16512245    fail:
     
    16612255   
    16622256    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_udp_dest_get",&obj0)) goto fail;
    1663     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_udp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2257    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_udp,
     2258    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    16642259    result = (uint16_t)libtrace_udp_dest_get(arg1);
    16652260   
    1666     resultobj = PyInt_FromLong((long)result);
     2261    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    16672262    return resultobj;
    16682263    fail:
     
    16782273   
    16792274    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_udp_len_get",&obj0)) goto fail;
    1680     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_udp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2275    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_udp,
     2276    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    16812277    result = (uint16_t)libtrace_udp_len_get(arg1);
    16822278   
    1683     resultobj = PyInt_FromLong((long)result);
     2279    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    16842280    return resultobj;
    16852281    fail:
     
    16952291   
    16962292    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_udp_check_get",&obj0)) goto fail;
    1697     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_udp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2293    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_udp,
     2294    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    16982295    result = (uint16_t)libtrace_udp_check_get(arg1);
    16992296   
    1700     resultobj = PyInt_FromLong((long)result);
     2297    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    17012298    return resultobj;
    17022299    fail:
     
    17202317   
    17212318    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_icmp_type_set",&obj0,&obj1)) goto fail;
    1722     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1723     arg2 = (uint8_t) PyInt_AsLong(obj1);
     2319    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp,
     2320    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2321    arg2 = (uint8_t)SWIG_As_unsigned_SS_char(obj1);
    17242322    if (PyErr_Occurred()) SWIG_fail;
    17252323    if (arg1) (arg1)->type = arg2;
     
    17392337   
    17402338    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_type_get",&obj0)) goto fail;
    1741     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2339    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp,
     2340    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    17422341    result = (uint8_t) ((arg1)->type);
    17432342   
    1744     resultobj = PyInt_FromLong((long)result);
     2343    resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
    17452344    return resultobj;
    17462345    fail:
     
    17572356   
    17582357    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_icmp_code_set",&obj0,&obj1)) goto fail;
    1759     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1760     arg2 = (uint8_t) PyInt_AsLong(obj1);
     2358    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp,
     2359    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2360    arg2 = (uint8_t)SWIG_As_unsigned_SS_char(obj1);
    17612361    if (PyErr_Occurred()) SWIG_fail;
    17622362    if (arg1) (arg1)->code = arg2;
     
    17762376   
    17772377    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_code_get",&obj0)) goto fail;
    1778     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2378    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp,
     2379    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    17792380    result = (uint8_t) ((arg1)->code);
    17802381   
    1781     resultobj = PyInt_FromLong((long)result);
     2382    resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
    17822383    return resultobj;
    17832384    fail:
     
    17942395   
    17952396    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_icmp_checksum_set",&obj0,&obj1)) goto fail;
    1796     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1797     arg2 = (uint16_t) PyInt_AsLong(obj1);
     2397    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp,
     2398    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2399    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    17982400    if (PyErr_Occurred()) SWIG_fail;
    17992401    if (arg1) (arg1)->checksum = arg2;
     
    18132415   
    18142416    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_checksum_get",&obj0)) goto fail;
    1815     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2417    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp,
     2418    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    18162419    result = (uint16_t) ((arg1)->checksum);
    18172420   
    1818     resultobj = PyInt_FromLong((long)result);
     2421    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    18192422    return resultobj;
    18202423    fail:
     
    18302433   
    18312434    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_un_get",&obj0)) goto fail;
    1832     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2435    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp,
     2436    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    18332437    result = (libtrace_icmp_un *)& ((arg1)->un);
    18342438   
    1835     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_libtrace_icmp_un, 0);
     2439    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_libtrace_icmp_un, 0);
    18362440    return resultobj;
    18372441    fail:
     
    18552459   
    18562460    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_icmp_un_gateway_set",&obj0,&obj1)) goto fail;
    1857     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1858     arg2 = (uint32_t) PyInt_AsLong(obj1);
     2461    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un,
     2462    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2463    arg2 = (uint32_t)SWIG_As_unsigned_SS_int(obj1);
    18592464    if (PyErr_Occurred()) SWIG_fail;
    18602465    if (arg1) (arg1)->gateway = arg2;
     
    18742479   
    18752480    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_un_gateway_get",&obj0)) goto fail;
    1876     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2481    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un,
     2482    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    18772483    result = (uint32_t) ((arg1)->gateway);
    18782484   
    1879     resultobj = PyInt_FromLong((long)result);
     2485    resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
    18802486    return resultobj;
    18812487    fail:
     
    18912497   
    18922498    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_un_frag_get",&obj0)) goto fail;
    1893     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2499    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un,
     2500    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    18942501    result = (libtrace_icmp_un_frag *)& ((arg1)->frag);
    18952502   
    1896     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_libtrace_icmp_un_frag, 0);
     2503    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_libtrace_icmp_un_frag, 0);
    18972504    return resultobj;
    18982505    fail:
     
    19082515   
    19092516    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_un_echo_get",&obj0)) goto fail;
    1910     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2517    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un,
     2518    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    19112519    result = (libtrace_icmp_un_echo *)& ((arg1)->echo);
    19122520   
    1913     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_libtrace_icmp_un_echo, 0);
     2521    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_libtrace_icmp_un_echo, 0);
    19142522    return resultobj;
    19152523    fail:
     
    19332541   
    19342542    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_icmp_un_frag___unused_set",&obj0,&obj1)) goto fail;
    1935     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un_frag,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1936     arg2 = (uint16_t) PyInt_AsLong(obj1);
     2543    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un_frag,
     2544    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2545    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    19372546    if (PyErr_Occurred()) SWIG_fail;
    19382547    if (arg1) (arg1)->__unused = arg2;
     
    19522561   
    19532562    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_un_frag___unused_get",&obj0)) goto fail;
    1954     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un_frag,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2563    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un_frag,
     2564    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    19552565    result = (uint16_t) ((arg1)->__unused);
    19562566   
    1957     resultobj = PyInt_FromLong((long)result);
     2567    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    19582568    return resultobj;
    19592569    fail:
     
    19702580   
    19712581    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_icmp_un_frag_mtu_set",&obj0,&obj1)) goto fail;
    1972     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un_frag,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    1973     arg2 = (uint16_t) PyInt_AsLong(obj1);
     2582    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un_frag,
     2583    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2584    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    19742585    if (PyErr_Occurred()) SWIG_fail;
    19752586    if (arg1) (arg1)->mtu = arg2;
     
    19892600   
    19902601    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_un_frag_mtu_get",&obj0)) goto fail;
    1991     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un_frag,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2602    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un_frag,
     2603    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    19922604    result = (uint16_t) ((arg1)->mtu);
    19932605   
    1994     resultobj = PyInt_FromLong((long)result);
     2606    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    19952607    return resultobj;
    19962608    fail:
     
    20142626   
    20152627    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_icmp_un_echo_id_set",&obj0,&obj1)) goto fail;
    2016     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un_echo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    2017     arg2 = (uint16_t) PyInt_AsLong(obj1);
     2628    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un_echo,
     2629    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2630    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    20182631    if (PyErr_Occurred()) SWIG_fail;
    20192632    if (arg1) (arg1)->id = arg2;
     
    20332646   
    20342647    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_un_echo_id_get",&obj0)) goto fail;
    2035     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un_echo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2648    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un_echo,
     2649    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    20362650    result = (uint16_t) ((arg1)->id);
    20372651   
    2038     resultobj = PyInt_FromLong((long)result);
     2652    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    20392653    return resultobj;
    20402654    fail:
     
    20512665   
    20522666    if(!PyArg_ParseTuple(args,(char *)"OO:libtrace_icmp_un_echo_sequence_set",&obj0,&obj1)) goto fail;
    2053     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un_echo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    2054     arg2 = (uint16_t) PyInt_AsLong(obj1);
     2667    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un_echo,
     2668    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2669    arg2 = (uint16_t)SWIG_As_unsigned_SS_short(obj1);
    20552670    if (PyErr_Occurred()) SWIG_fail;
    20562671    if (arg1) (arg1)->sequence = arg2;
     
    20702685   
    20712686    if(!PyArg_ParseTuple(args,(char *)"O:libtrace_icmp_un_echo_sequence_get",&obj0)) goto fail;
    2072     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_icmp_un_echo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2687    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_icmp_un_echo,
     2688    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    20732689    result = (uint16_t) ((arg1)->sequence);
    20742690   
    2075     resultobj = PyInt_FromLong((long)result);
     2691    resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
    20762692    return resultobj;
    20772693    fail:
     
    20942710    result = (struct libtrace_packet_t *)new_libtrace_packet_t();
    20952711   
    2096     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_libtrace_packet_t, 1);
     2712    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_libtrace_packet_t, 1);
    20972713    return resultobj;
    20982714    fail:
     
    21072723   
    21082724    if(!PyArg_ParseTuple(args,(char *)"O:delete_Packet",&obj0)) goto fail;
    2109     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2725    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2726    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    21102727    delete_libtrace_packet_t(arg1);
    21112728   
     
    21242741   
    21252742    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_ip",&obj0)) goto fail;
    2126     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2743    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2744    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    21272745    result = (struct libtrace_ip *)libtrace_packet_t_trace_get_ip(arg1);
    21282746   
    2129     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_libtrace_ip, 0);
     2747    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_libtrace_ip, 0);
    21302748    return resultobj;
    21312749    fail:
     
    21412759   
    21422760    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_tcp",&obj0)) goto fail;
    2143     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2761    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2762    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    21442763    result = (struct libtrace_tcp *)libtrace_packet_t_trace_get_tcp(arg1);
    21452764   
    2146     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_libtrace_tcp, 0);
     2765    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_libtrace_tcp, 0);
    21472766    return resultobj;
    21482767    fail:
     
    21582777   
    21592778    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_udp",&obj0)) goto fail;
    2160     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2779    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2780    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    21612781    result = (struct libtrace_udp *)libtrace_packet_t_trace_get_udp(arg1);
    21622782   
    2163     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_libtrace_udp, 0);
     2783    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_libtrace_udp, 0);
    21642784    return resultobj;
    21652785    fail:
     
    21752795   
    21762796    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_icmp",&obj0)) goto fail;
    2177     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2797    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2798    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    21782799    result = (struct libtrace_icmp *)libtrace_packet_t_trace_get_icmp(arg1);
    21792800   
    2180     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_libtrace_icmp, 0);
     2801    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_libtrace_icmp, 0);
    21812802    return resultobj;
    21822803    fail:
     
    21922813   
    21932814    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_link",&obj0)) goto fail;
    2194     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2815    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2816    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    21952817    result = (void *)libtrace_packet_t_trace_get_link(arg1);
    21962818   
    2197     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0);
     2819    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
    21982820    return resultobj;
    21992821    fail:
     
    22092831   
    22102832    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_seconds",&obj0)) goto fail;
    2211     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2833    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2834    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    22122835    result = (double)libtrace_packet_t_trace_get_seconds(arg1);
    22132836   
    2214     resultobj = PyFloat_FromDouble(result);
     2837    resultobj = SWIG_From_double((double)result);
    22152838    return resultobj;
    22162839    fail:
     
    22262849   
    22272850    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_erf_timestamp",&obj0)) goto fail;
    2228     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2851    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2852    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    22292853    result = libtrace_packet_t_trace_get_erf_timestamp(arg1);
    22302854   
     
    22332857        resultptr = (uint64_t *) malloc(sizeof(uint64_t));
    22342858        memmove(resultptr, &result, sizeof(uint64_t));
    2235         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_uint64_t, 1);
     2859        resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_uint64_t, 1);
    22362860    }
    22372861    return resultobj;
     
    22482872   
    22492873    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_timeval",&obj0)) goto fail;
    2250     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2874    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2875    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    22512876    result = libtrace_packet_t_trace_get_timeval(arg1);
    22522877   
     
    22552880        resultptr = (struct timeval *) malloc(sizeof(struct timeval));
    22562881        memmove(resultptr, &result, sizeof(struct timeval));
    2257         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_timeval, 1);
     2882        resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_timeval, 1);
    22582883    }
    22592884    return resultobj;
     
    22702895   
    22712896    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_capture_length",&obj0)) goto fail;
    2272     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2897    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2898    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    22732899    result = (int)libtrace_packet_t_trace_get_capture_length(arg1);
    22742900   
    2275     resultobj = PyInt_FromLong((long)result);
     2901    resultobj = SWIG_From_int((int)result);
    22762902    return resultobj;
    22772903    fail:
     
    22872913   
    22882914    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_wire_lenth",&obj0)) goto fail;
    2289     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2915    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2916    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    22902917    result = (int)libtrace_packet_t_trace_get_wire_lenth(arg1);
    22912918   
    2292     resultobj = PyInt_FromLong((long)result);
     2919    resultobj = SWIG_From_int((int)result);
    22932920    return resultobj;
    22942921    fail:
     
    23042931   
    23052932    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_link_type",&obj0)) goto fail;
    2306     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     2933    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2934    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    23072935    result = libtrace_packet_t_trace_get_link_type(arg1);
    23082936   
     
    23112939        resultptr = (libtrace_linktype_t *) malloc(sizeof(libtrace_linktype_t));
    23122940        memmove(resultptr, &result, sizeof(libtrace_linktype_t));
    2313         resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_libtrace_linktype_t, 1);
     2941        resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_libtrace_linktype_t, 1);
    23142942    }
    23152943    return resultobj;
     
    23222950    PyObject *resultobj;
    23232951    struct libtrace_packet_t *arg1 = (struct libtrace_packet_t *) 0 ;
    2324     uint8_t result;
     2952    int8_t result;
    23252953    PyObject * obj0 = 0 ;
    23262954   
    23272955    if(!PyArg_ParseTuple(args,(char *)"O:Packet_trace_get_direction",&obj0)) goto fail;
    2328     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    2329     result = (uint8_t)libtrace_packet_t_trace_get_direction(arg1);
    2330    
    2331     resultobj = PyInt_FromLong((long)result);
     2956    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2957    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2958    result = libtrace_packet_t_trace_get_direction(arg1);
     2959   
     2960    {
     2961        int8_t * resultptr;
     2962        resultptr = (int8_t *) malloc(sizeof(int8_t));
     2963        memmove(resultptr, &result, sizeof(int8_t));
     2964        resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_int8_t, 1);
     2965    }
     2966    return resultobj;
     2967    fail:
     2968    return NULL;
     2969}
     2970
     2971
     2972static PyObject *_wrap_Packet_trace_set_direction(PyObject *self, PyObject *args) {
     2973    PyObject *resultobj;
     2974    struct libtrace_packet_t *arg1 = (struct libtrace_packet_t *) 0 ;
     2975    int8_t arg2 ;
     2976    int8_t result;
     2977    int8_t *argp2 ;
     2978    PyObject * obj0 = 0 ;
     2979    PyObject * obj1 = 0 ;
     2980   
     2981    if(!PyArg_ParseTuple(args,(char *)"OO:Packet_trace_set_direction",&obj0,&obj1)) goto fail;
     2982    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     2983    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     2984    if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_int8_t,
     2985    SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
     2986    arg2 = *argp2;
     2987    result = libtrace_packet_t_trace_set_direction(arg1,arg2);
     2988   
     2989    {
     2990        int8_t * resultptr;
     2991        resultptr = (int8_t *) malloc(sizeof(int8_t));
     2992        memmove(resultptr, &result, sizeof(int8_t));
     2993        resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_int8_t, 1);
     2994    }
    23322995    return resultobj;
    23332996    fail:
     
    23453008   
    23463009    if(!PyArg_ParseTuple(args,(char *)"OO:Packet_trace_bpf_filter",&obj0,&obj1)) goto fail;
    2347     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    2348     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_libtrace_filter_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     3010    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     3011    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     3012    if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_libtrace_filter_t,
     3013    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    23493014    result = (int)libtrace_packet_t_trace_bpf_filter(arg1,arg2);
    23503015   
    2351     resultobj = PyInt_FromLong((long)result);
     3016    resultobj = SWIG_From_int((int)result);
     3017    return resultobj;
     3018    fail:
     3019    return NULL;
     3020}
     3021
     3022
     3023static PyObject *_wrap_Packet_trace_get_server_port(PyObject *self, PyObject *args) {
     3024    PyObject *resultobj;
     3025    struct libtrace_packet_t *arg1 = (struct libtrace_packet_t *) 0 ;
     3026    uint8_t arg2 ;
     3027    uint16_t arg3 ;
     3028    uint16_t arg4 ;
     3029    uint8_t result;
     3030    PyObject * obj0 = 0 ;
     3031    PyObject * obj1 = 0 ;
     3032    PyObject * obj2 = 0 ;
     3033    PyObject * obj3 = 0 ;
     3034   
     3035    if(!PyArg_ParseTuple(args,(char *)"OOOO:Packet_trace_get_server_port",&obj0,&obj1,&obj2,&obj3)) goto fail;
     3036    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_packet_t,
     3037    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     3038    arg2 = (uint8_t)SWIG_As_unsigned_SS_char(obj1);
     3039    if (PyErr_Occurred()) SWIG_fail;
     3040    arg3 = (uint16_t)SWIG_As_unsigned_SS_short(obj2);
     3041    if (PyErr_Occurred()) SWIG_fail;
     3042    arg4 = (uint16_t)SWIG_As_unsigned_SS_short(obj3);
     3043    if (PyErr_Occurred()) SWIG_fail;
     3044    result = (uint8_t)libtrace_packet_t_trace_get_server_port(arg1,arg2,arg3,arg4);
     3045   
     3046    resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
    23523047    return resultobj;
    23533048    fail:
     
    23673062    char *arg1 ;
    23683063    struct libtrace_filter_t *result;
    2369    
    2370     if(!PyArg_ParseTuple(args,(char *)"s:new_Filter",&arg1)) goto fail;
     3064    PyObject * obj0 = 0 ;
     3065   
     3066    if(!PyArg_ParseTuple(args,(char *)"O:new_Filter",&obj0)) goto fail;
     3067    if (!SWIG_AsCharPtr(obj0, (char**)&arg1)) SWIG_fail;
    23713068    result = (struct libtrace_filter_t *)new_libtrace_filter_t(arg1);
    23723069   
    2373     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_libtrace_filter_t, 1);
     3070    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_libtrace_filter_t, 1);
    23743071    return resultobj;
    23753072    fail:
     
    23873084   
    23883085    if(!PyArg_ParseTuple(args,(char *)"OO:Filter_trace_bpf_filter",&obj0,&obj1)) goto fail;
    2389     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_filter_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    2390     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     3086    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_filter_t,
     3087    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     3088    if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_libtrace_packet_t,
     3089    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    23913090    result = (int)libtrace_filter_t_trace_bpf_filter(arg1,arg2);
    23923091   
    2393     resultobj = PyInt_FromLong((long)result);
     3092    resultobj = SWIG_From_int((int)result);
    23943093    return resultobj;
    23953094    fail:
     
    24093108    char *arg1 ;
    24103109    struct libtrace_t *result;
    2411    
    2412     if(!PyArg_ParseTuple(args,(char *)"s:new_Trace",&arg1)) goto fail;
     3110    PyObject * obj0 = 0 ;
     3111   
     3112    if(!PyArg_ParseTuple(args,(char *)"O:new_Trace",&obj0)) goto fail;
     3113    if (!SWIG_AsCharPtr(obj0, (char**)&arg1)) SWIG_fail;
    24133114    result = (struct libtrace_t *)new_libtrace_t(arg1);
    24143115   
    2415     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_libtrace_t, 1);
     3116    resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_libtrace_t, 1);
    24163117    return resultobj;
    24173118    fail:
     
    24263127   
    24273128    if(!PyArg_ParseTuple(args,(char *)"O:delete_Trace",&obj0)) goto fail;
    2428     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     3129    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_t,
     3130    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    24293131    delete_libtrace_t(arg1);
    24303132   
     
    24453147   
    24463148    if(!PyArg_ParseTuple(args,(char *)"OO:Trace_trace_read_packet",&obj0,&obj1)) goto fail;
    2447     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_libtrace_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
    2448     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_libtrace_packet_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
     3149    if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_libtrace_t,
     3150    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
     3151    if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_libtrace_packet_t,
     3152    SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
    24493153    result = (int)libtrace_t_trace_read_packet(arg1,arg2);
    24503154   
    2451     resultobj = PyInt_FromLong((long)result);
     3155    resultobj = SWIG_From_int((int)result);
    24523156    return resultobj;
    24533157    fail:
     
    24643168}
    24653169static PyMethodDef SwigMethods[] = {
    2466          { (char *)"in_addr_s_addr_set", _wrap_in_addr_s_addr_set, METH_VARARGS },
    2467          { (char *)"in_addr_s_addr_get", _wrap_in_addr_s_addr_get, METH_VARARGS },
    2468          { (char *)"in_addr_swigregister", in_addr_swigregister, METH_VARARGS },
    2469          { (char *)"libtrace_ip_ip_hl_set", _wrap_libtrace_ip_ip_hl_set, METH_VARARGS },
    2470          { (char *)"libtrace_ip_ip_hl_get", _wrap_libtrace_ip_ip_hl_get, METH_VARARGS },
    2471          { (char *)"libtrace_ip_ip_v_set", _wrap_libtrace_ip_ip_v_set, METH_VARARGS },
    2472          { (char *)"libtrace_ip_ip_v_get", _wrap_libtrace_ip_ip_v_get, METH_VARARGS },
    2473          { (char *)"libtrace_ip_ip_tos_set", _wrap_libtrace_ip_ip_tos_set, METH_VARARGS },
    2474          { (char *)"libtrace_ip_ip_tos_get", _wrap_libtrace_ip_ip_tos_get, METH_VARARGS },
    2475          { (char *)"libtrace_ip_ip_ttl_set", _wrap_libtrace_ip_ip_ttl_set, METH_VARARGS },
    2476          { (char *)"libtrace_ip_ip_ttl_get", _wrap_libtrace_ip_ip_ttl_get, METH_VARARGS },
    2477          { (char *)"libtrace_ip_ip_p_set", _wrap_libtrace_ip_ip_p_set, METH_VARARGS },
    2478          { (char *)"libtrace_ip_ip_p_get", _wrap_libtrace_ip_ip_p_get, METH_VARARGS },
    2479          { (char *)"libtrace_ip_ip_sum_get", _wrap_libtrace_ip_ip_sum_get, METH_VARARGS },
    2480          { (char *)"libtrace_ip_ip_len_get", _wrap_libtrace_ip_ip_len_get, METH_VARARGS },
    2481          { (char *)"libtrace_ip_ip_id_get", _wrap_libtrace_ip_ip_id_get, METH_VARARGS },
    2482          { (char *)"libtrace_ip_ip_off_get", _wrap_libtrace_ip_ip_off_get, METH_VARARGS },
    2483          { (char *)"libtrace_ip_ip_src_get", _wrap_libtrace_ip_ip_src_get, METH_VARARGS },
    2484          { (char *)"libtrace_ip_ip_dst_get", _wrap_libtrace_ip_ip_dst_get, METH_VARARGS },
    2485          { (char *)"libtrace_ip_swigregister", libtrace_ip_swigregister, METH_VARARGS },
    2486          { (char *)"libtrace_tcp_res1_set", _wrap_libtrace_tcp_res1_set, METH_VARARGS },
    2487          { (char *)"libtrace_tcp_res1_get", _wrap_libtrace_tcp_res1_get, METH_VARARGS },
    2488          { (char *)"libtrace_tcp_doff_set", _wrap_libtrace_tcp_doff_set, METH_VARARGS },
    2489          { (char *)"libtrace_tcp_doff_get", _wrap_libtrace_tcp_doff_get, METH_VARARGS },
    2490          { (char *)"libtrace_tcp_fin_set", _wrap_libtrace_tcp_fin_set, METH_VARARGS },
    2491          { (char *)"libtrace_tcp_fin_get", _wrap_libtrace_tcp_fin_get, METH_VARARGS },
    2492          { (char *)"libtrace_tcp_syn_set", _wrap_libtrace_tcp_syn_set, METH_VARARGS },
    2493          { (char *)"libtrace_tcp_syn_get", _wrap_libtrace_tcp_syn_get, METH_VARARGS },
    2494          { (char *)"libtrace_tcp_rst_set", _wrap_libtrace_tcp_rst_set, METH_VARARGS },
    2495          { (char *)"libtrace_tcp_rst_get", _wrap_libtrace_tcp_rst_get, METH_VARARGS },
    2496          { (char *)"libtrace_tcp_psh_set", _wrap_libtrace_tcp_psh_set, METH_VARARGS },
    2497          { (char *)"libtrace_tcp_psh_get", _wrap_libtrace_tcp_psh_get, METH_VARARGS },
    2498          { (char *)"libtrace_tcp_ack_set", _wrap_libtrace_tcp_ack_set, METH_VARARGS },
    2499          { (char *)"libtrace_tcp_ack_get", _wrap_libtrace_tcp_ack_get, METH_VARARGS },
    2500          { (char *)"libtrace_tcp_urg_set", _wrap_libtrace_tcp_urg_set, METH_VARARGS },
    2501          { (char *)"libtrace_tcp_urg_get", _wrap_libtrace_tcp_urg_get, METH_VARARGS },
    2502          { (char *)"libtrace_tcp_res2_set", _wrap_libtrace_tcp_res2_set, METH_VARARGS },
    2503          { (char *)"libtrace_tcp_res2_get", _wrap_libtrace_tcp_res2_get, METH_VARARGS },
    2504          { (char *)"libtrace_tcp_source_get", _wrap_libtrace_tcp_source_get, METH_VARARGS },
    2505          { (char *)"libtrace_tcp_dest_get", _wrap_libtrace_tcp_dest_get, METH_VARARGS },
    2506          { (char *)"libtrace_tcp_window_get", _wrap_libtrace_tcp_window_get, METH_VARARGS },
    2507          { (char *)"libtrace_tcp_check_get", _wrap_libtrace_tcp_check_get, METH_VARARGS },
    2508          { (char *)"libtrace_tcp_urg_ptr_get", _wrap_libtrace_tcp_urg_ptr_get, METH_VARARGS },
    2509          { (char *)"libtrace_tcp_seq_get", _wrap_libtrace_tcp_seq_get, METH_VARARGS },
    2510          { (char *)"libtrace_tcp_ack_seq_get", _wrap_libtrace_tcp_ack_seq_get, METH_VARARGS },
    2511          { (char *)"libtrace_tcp_swigregister", libtrace_tcp_swigregister, METH_VARARGS },
    2512          { (char *)"libtrace_udp_source_get", _wrap_libtrace_udp_source_get, METH_VARARGS },
    2513          { (char *)"libtrace_udp_dest_get", _wrap_libtrace_udp_dest_get, METH_VARARGS },
    2514          { (char *)"libtrace_udp_len_get", _wrap_libtrace_udp_len_get, METH_VARARGS },
    2515          { (char *)"libtrace_udp_check_get", _wrap_libtrace_udp_check_get, METH_VARARGS },
    2516          { (char *)"libtrace_udp_swigregister", libtrace_udp_swigregister, METH_VARARGS },
    2517          { (char *)"libtrace_icmp_type_set", _wrap_libtrace_icmp_type_set, METH_VARARGS },
    2518          { (char *)"libtrace_icmp_type_get", _wrap_libtrace_icmp_type_get, METH_VARARGS },
    2519          { (char *)"libtrace_icmp_code_set", _wrap_libtrace_icmp_code_set, METH_VARARGS },
    2520          { (char *)"libtrace_icmp_code_get", _wrap_libtrace_icmp_code_get, METH_VARARGS },
    2521          { (char *)"libtrace_icmp_checksum_set", _wrap_libtrace_icmp_checksum_set, METH_VARARGS },
    2522          { (char *)"libtrace_icmp_checksum_get", _wrap_libtrace_icmp_checksum_get, METH_VARARGS },
    2523          { (char *)"libtrace_icmp_un_get", _wrap_libtrace_icmp_un_get, METH_VARARGS },
    2524          { (char *)"libtrace_icmp_swigregister", libtrace_icmp_swigregister, METH_VARARGS },
    2525          { (char *)"libtrace_icmp_un_gateway_set", _wrap_libtrace_icmp_un_gateway_set, METH_VARARGS },
    2526          { (char *)"libtrace_icmp_un_gateway_get", _wrap_libtrace_icmp_un_gateway_get, METH_VARARGS },
    2527          { (char *)"libtrace_icmp_un_frag_get", _wrap_libtrace_icmp_un_frag_get, METH_VARARGS },
    2528          { (char *)"libtrace_icmp_un_echo_get", _wrap_libtrace_icmp_un_echo_get, METH_VARARGS },
    2529          { (char *)"libtrace_icmp_un_swigregister", libtrace_icmp_un_swigregister, METH_VARARGS },
    2530          { (char *)"libtrace_icmp_un_frag___unused_set", _wrap_libtrace_icmp_un_frag___unused_set, METH_VARARGS },
    2531          { (char *)"libtrace_icmp_un_frag___unused_get", _wrap_libtrace_icmp_un_frag___unused_get, METH_VARARGS },
    2532          { (char *)"libtrace_icmp_un_frag_mtu_set", _wrap_libtrace_icmp_un_frag_mtu_set, METH_VARARGS },
    2533          { (char *)"libtrace_icmp_un_frag_mtu_get", _wrap_libtrace_icmp_un_frag_mtu_get, METH_VARARGS },
    2534          { (char *)"libtrace_icmp_un_frag_swigregister", libtrace_icmp_un_frag_swigregister, METH_VARARGS },
    2535          { (char *)"libtrace_icmp_un_echo_id_set", _wrap_libtrace_icmp_un_echo_id_set, METH_VARARGS },
    2536          { (char *)"libtrace_icmp_un_echo_id_get", _wrap_libtrace_icmp_un_echo_id_get, METH_VARARGS },
    2537          { (char *)"libtrace_icmp_un_echo_sequence_set", _wrap_libtrace_icmp_un_echo_sequence_set, METH_VARARGS },
    2538          { (char *)"libtrace_icmp_un_echo_sequence_get", _wrap_libtrace_icmp_un_echo_sequence_get, METH_VARARGS },
    2539          { (char *)"libtrace_icmp_un_echo_swigregister", libtrace_icmp_un_echo_swigregister, METH_VARARGS },
    2540          { (char *)"new_Packet", _wrap_new_Packet, METH_VARARGS },
    2541          { (char *)"delete_Packet", _wrap_delete_Packet, METH_VARARGS },
    2542          { (char *)"Packet_trace_get_ip", _wrap_Packet_trace_get_ip, METH_VARARGS },
    2543          { (char *)"Packet_trace_get_tcp", _wrap_Packet_trace_get_tcp, METH_VARARGS },
    2544          { (char *)"Packet_trace_get_udp", _wrap_Packet_trace_get_udp, METH_VARARGS },
    2545          { (char *)"Packet_trace_get_icmp", _wrap_Packet_trace_get_icmp, METH_VARARGS },
    2546          { (char *)"Packet_trace_get_link", _wrap_Packet_trace_get_link, METH_VARARGS },
    2547          { (char *)"Packet_trace_get_seconds", _wrap_Packet_trace_get_seconds, METH_VARARGS },
    2548          { (char *)"Packet_trace_get_erf_timestamp", _wrap_Packet_trace_get_erf_timestamp, METH_VARARGS },
    2549          { (char *)"Packet_trace_get_timeval", _wrap_Packet_trace_get_timeval, METH_VARARGS },
    2550          { (char *)"Packet_trace_get_capture_length", _wrap_Packet_trace_get_capture_length, METH_VARARGS },
    2551          { (char *)"Packet_trace_get_wire_lenth", _wrap_Packet_trace_get_wire_lenth, METH_VARARGS },
    2552          { (char *)"Packet_trace_get_link_type", _wrap_Packet_trace_get_link_type, METH_VARARGS },
    2553          { (char *)"Packet_trace_get_direction", _wrap_Packet_trace_get_direction, METH_VARARGS },
    2554          { (char *)"Packet_trace_bpf_filter", _wrap_Packet_trace_bpf_filter, METH_VARARGS },
    2555          { (char *)"Packet_swigregister", Packet_swigregister, METH_VARARGS },
    2556          { (char *)"new_Filter", _wrap_new_Filter, METH_VARARGS },
    2557          { (char *)"Filter_trace_bpf_filter", _wrap_Filter_trace_bpf_filter, METH_VARARGS },
    2558          { (char *)"Filter_swigregister", Filter_swigregister, METH_VARARGS },
    2559          { (char *)"new_Trace", _wrap_new_Trace, METH_VARARGS },
    2560          { (char *)"delete_Trace", _wrap_delete_Trace, METH_VARARGS },
    2561          { (char *)"Trace_trace_read_packet", _wrap_Trace_trace_read_packet, METH_VARARGS },
    2562          { (char *)"Trace_swigregister", Trace_swigregister, METH_VARARGS },
    2563          { NULL, NULL }
     3170         { (char *)"in_addr_s_addr_set", _wrap_in_addr_s_addr_set, METH_VARARGS, NULL },
     3171         { (char *)"in_addr_s_addr_get", _wrap_in_addr_s_addr_get, METH_VARARGS, NULL },
     3172         { (char *)"in_addr_swigregister", in_addr_swigregister, METH_VARARGS, NULL },
     3173         { (char *)"libtrace_ip_ip_hl_set", _wrap_libtrace_ip_ip_hl_set, METH_VARARGS, NULL },
     3174         { (char *)"libtrace_ip_ip_hl_get", _wrap_libtrace_ip_ip_hl_get, METH_VARARGS, NULL },
     3175         { (char *)"libtrace_ip_ip_v_set", _wrap_libtrace_ip_ip_v_set, METH_VARARGS, NULL },
     3176         { (char *)"libtrace_ip_ip_v_get", _wrap_libtrace_ip_ip_v_get, METH_VARARGS, NULL },
     3177         { (char *)"libtrace_ip_ip_tos_set", _wrap_libtrace_ip_ip_tos_set, METH_VARARGS, NULL },
     3178         { (char *)"libtrace_ip_ip_tos_get", _wrap_libtrace_ip_ip_tos_get, METH_VARARGS, NULL },
     3179         { (char *)"libtrace_ip_ip_ttl_set", _wrap_libtrace_ip_ip_ttl_set, METH_VARARGS, NULL },
     3180         { (char *)"libtrace_ip_ip_ttl_get", _wrap_libtrace_ip_ip_ttl_get, METH_VARARGS, NULL },
     3181         { (char *)"libtrace_ip_ip_p_set", _wrap_libtrace_ip_ip_p_set, METH_VARARGS, NULL },
     3182         { (char *)"libtrace_ip_ip_p_get", _wrap_libtrace_ip_ip_p_get, METH_VARARGS, NULL },
     3183         { (char *)"libtrace_ip_ip_sum_get", _wrap_libtrace_ip_ip_sum_get, METH_VARARGS, NULL },
     3184         { (char *)"libtrace_ip_ip_len_get", _wrap_libtrace_ip_ip_len_get, METH_VARARGS, NULL },
     3185         { (char *)"libtrace_ip_ip_id_get", _wrap_libtrace_ip_ip_id_get, METH_VARARGS, NULL },
     3186         { (char *)"libtrace_ip_ip_off_get", _wrap_libtrace_ip_ip_off_get, METH_VARARGS, NULL },
     3187         { (char *)"libtrace_ip_ip_src_get", _wrap_libtrace_ip_ip_src_get, METH_VARARGS, NULL },
     3188         { (char *)"libtrace_ip_ip_dst_get", _wrap_libtrace_ip_ip_dst_get, METH_VARARGS, NULL },
     3189         { (char *)"libtrace_ip_swigregister", libtrace_ip_swigregister, METH_VARARGS, NULL },
     3190         { (char *)"libtrace_tcp_res1_set", _wrap_libtrace_tcp_res1_set, METH_VARARGS, NULL },
     3191         { (char *)"libtrace_tcp_res1_get", _wrap_libtrace_tcp_res1_get, METH_VARARGS, NULL },
     3192         { (char *)"libtrace_tcp_doff_set", _wrap_libtrace_tcp_doff_set, METH_VARARGS, NULL },
     3193         { (char *)"libtrace_tcp_doff_get", _wrap_libtrace_tcp_doff_get, METH_VARARGS, NULL },
     3194         { (char *)"libtrace_tcp_fin_set", _wrap_libtrace_tcp_fin_set, METH_VARARGS, NULL },
     3195         { (char *)"libtrace_tcp_fin_get", _wrap_libtrace_tcp_fin_get, METH_VARARGS, NULL },
     3196         { (char *)"libtrace_tcp_syn_set", _wrap_libtrace_tcp_syn_set, METH_VARARGS, NULL },
     3197         { (char *)"libtrace_tcp_syn_get", _wrap_libtrace_tcp_syn_get, METH_VARARGS, NULL },
     3198         { (char *)"libtrace_tcp_rst_set", _wrap_libtrace_tcp_rst_set, METH_VARARGS, NULL },
     3199         { (char *)"libtrace_tcp_rst_get", _wrap_libtrace_tcp_rst_get, METH_VARARGS, NULL },
     3200         { (char *)"libtrace_tcp_psh_set", _wrap_libtrace_tcp_psh_set, METH_VARARGS, NULL },
     3201         { (char *)"libtrace_tcp_psh_get", _wrap_libtrace_tcp_psh_get, METH_VARARGS, NULL },
     3202         { (char *)"libtrace_tcp_ack_set", _wrap_libtrace_tcp_ack_set, METH_VARARGS, NULL },
     3203         { (char *)"libtrace_tcp_ack_get", _wrap_libtrace_tcp_ack_get, METH_VARARGS, NULL },
     3204         { (char *)"libtrace_tcp_urg_set", _wrap_libtrace_tcp_urg_set, METH_VARARGS, NULL },
     3205         { (char *)"libtrace_tcp_urg_get", _wrap_libtrace_tcp_urg_get, METH_VARARGS, NULL },
     3206         { (char *)"libtrace_tcp_res2_set", _wrap_libtrace_tcp_res2_set, METH_VARARGS, NULL },
     3207         { (char *)"libtrace_tcp_res2_get", _wrap_libtrace_tcp_res2_get, METH_VARARGS, NULL },
     3208         { (char *)"libtrace_tcp_source_get", _wrap_libtrace_tcp_source_get, METH_VARARGS, NULL },
     3209         { (char *)"libtrace_tcp_dest_get", _wrap_libtrace_tcp_dest_get, METH_VARARGS, NULL },
     3210         { (char *)"libtrace_tcp_window_get", _wrap_libtrace_tcp_window_get, METH_VARARGS, NULL },
     3211         { (char *)"libtrace_tcp_check_get", _wrap_libtrace_tcp_check_get, METH_VARARGS, NULL },
     3212         { (char *)"libtrace_tcp_urg_ptr_get", _wrap_libtrace_tcp_urg_ptr_get, METH_VARARGS, NULL },
     3213         { (char *)"libtrace_tcp_seq_get", _wrap_libtrace_tcp_seq_get, METH_VARARGS, NULL },
     3214         { (char *)"libtrace_tcp_ack_seq_get", _wrap_libtrace_tcp_ack_seq_get, METH_VARARGS, NULL },
     3215         { (char *)"libtrace_tcp_swigregister", libtrace_tcp_swigregister, METH_VARARGS, NULL },
     3216         { (char *)"libtrace_udp_source_get", _wrap_libtrace_udp_source_get, METH_VARARGS, NULL },
     3217         { (char *)"libtrace_udp_dest_get", _wrap_libtrace_udp_dest_get, METH_VARARGS, NULL },
     3218         { (char *)"libtrace_udp_len_get", _wrap_libtrace_udp_len_get, METH_VARARGS, NULL },
     3219         { (char *)"libtrace_udp_check_get", _wrap_libtrace_udp_check_get, METH_VARARGS, NULL },
     3220         { (char *)"libtrace_udp_swigregister", libtrace_udp_swigregister, METH_VARARGS, NULL },
     3221         { (char *)"libtrace_icmp_type_set", _wrap_libtrace_icmp_type_set, METH_VARARGS, NULL },
     3222         { (char *)"libtrace_icmp_type_get", _wrap_libtrace_icmp_type_get, METH_VARARGS, NULL },
     3223         { (char *)"libtrace_icmp_code_set", _wrap_libtrace_icmp_code_set, METH_VARARGS, NULL },
     3224         { (char *)"libtrace_icmp_code_get", _wrap_libtrace_icmp_code_get, METH_VARARGS, NULL },
     3225         { (char *)"libtrace_icmp_checksum_set", _wrap_libtrace_icmp_checksum_set, METH_VARARGS, NULL },
     3226         { (char *)"libtrace_icmp_checksum_get", _wrap_libtrace_icmp_checksum_get, METH_VARARGS, NULL },
     3227         { (char *)"libtrace_icmp_un_get", _wrap_libtrace_icmp_un_get, METH_VARARGS, NULL },
     3228         { (char *)"libtrace_icmp_swigregister", libtrace_icmp_swigregister, METH_VARARGS, NULL },
     3229         { (char *)"libtrace_icmp_un_gateway_set", _wrap_libtrace_icmp_un_gateway_set, METH_VARARGS, NULL },
     3230         { (char *)"libtrace_icmp_un_gateway_get", _wrap_libtrace_icmp_un_gateway_get, METH_VARARGS, NULL },
     3231         { (char *)"libtrace_icmp_un_frag_get", _wrap_libtrace_icmp_un_frag_get, METH_VARARGS, NULL },
     3232         { (char *)"libtrace_icmp_un_echo_get", _wrap_libtrace_icmp_un_echo_get, METH_VARARGS, NULL },
     3233         { (char *)"libtrace_icmp_un_swigregister", libtrace_icmp_un_swigregister, METH_VARARGS, NULL },
     3234         { (char *)"libtrace_icmp_un_frag___unused_set", _wrap_libtrace_icmp_un_frag___unused_set, METH_VARARGS, NULL },
     3235         { (char *)"libtrace_icmp_un_frag___unused_get", _wrap_libtrace_icmp_un_frag___unused_get, METH_VARARGS, NULL },
     3236         { (char *)"libtrace_icmp_un_frag_mtu_set", _wrap_libtrace_icmp_un_frag_mtu_set, METH_VARARGS, NULL },
     3237         { (char *)"libtrace_icmp_un_frag_mtu_get", _wrap_libtrace_icmp_un_frag_mtu_get, METH_VARARGS, NULL },
     3238         { (char *)"libtrace_icmp_un_frag_swigregister", libtrace_icmp_un_frag_swigregister, METH_VARARGS, NULL },
     3239         { (char *)"libtrace_icmp_un_echo_id_set", _wrap_libtrace_icmp_un_echo_id_set, METH_VARARGS, NULL },
     3240         { (char *)"libtrace_icmp_un_echo_id_get", _wrap_libtrace_icmp_un_echo_id_get, METH_VARARGS, NULL },
     3241         { (char *)"libtrace_icmp_un_echo_sequence_set", _wrap_libtrace_icmp_un_echo_sequence_set, METH_VARARGS, NULL },
     3242         { (char *)"libtrace_icmp_un_echo_sequence_get", _wrap_libtrace_icmp_un_echo_sequence_get, METH_VARARGS, NULL },
     3243         { (char *)"libtrace_icmp_un_echo_swigregister", libtrace_icmp_un_echo_swigregister, METH_VARARGS, NULL },
     3244         { (char *)"new_Packet", _wrap_new_Packet, METH_VARARGS, NULL },
     3245         { (char *)"delete_Packet", _wrap_delete_Packet, METH_VARARGS, NULL },
     3246         { (char *)"Packet_trace_get_ip", _wrap_Packet_trace_get_ip, METH_VARARGS, NULL },
     3247         { (char *)"Packet_trace_get_tcp", _wrap_Packet_trace_get_tcp, METH_VARARGS, NULL },
     3248         { (char *)"Packet_trace_get_udp", _wrap_Packet_trace_get_udp, METH_VARARGS, NULL },
     3249         { (char *)"Packet_trace_get_icmp", _wrap_Packet_trace_get_icmp, METH_VARARGS, NULL },
     3250         { (char *)"Packet_trace_get_link", _wrap_Packet_trace_get_link, METH_VARARGS, NULL },
     3251         { (char *)"Packet_trace_get_seconds", _wrap_Packet_trace_get_seconds, METH_VARARGS, NULL },
     3252         { (char *)"Packet_trace_get_erf_timestamp", _wrap_Packet_trace_get_erf_timestamp, METH_VARARGS, NULL },
     3253         { (char *)"Packet_trace_get_timeval", _wrap_Packet_trace_get_timeval, METH_VARARGS, NULL },
     3254         { (char *)"Packet_trace_get_capture_length", _wrap_Packet_trace_get_capture_length, METH_VARARGS, NULL },
     3255         { (char *)"Packet_trace_get_wire_lenth", _wrap_Packet_trace_get_wire_lenth, METH_VARARGS, NULL },
     3256         { (char *)"Packet_trace_get_link_type", _wrap_Packet_trace_get_link_type, METH_VARARGS, NULL },
     3257         { (char *)"Packet_trace_get_direction", _wrap_Packet_trace_get_direction, METH_VARARGS, NULL },
     3258         { (char *)"Packet_trace_set_direction", _wrap_Packet_trace_set_direction, METH_VARARGS, NULL },
     3259         { (char *)"Packet_trace_bpf_filter", _wrap_Packet_trace_bpf_filter, METH_VARARGS, NULL },
     3260         { (char *)"Packet_trace_get_server_port", _wrap_Packet_trace_get_server_port, METH_VARARGS, NULL },
     3261         { (char *)"Packet_swigregister", Packet_swigregister, METH_VARARGS, NULL },
     3262         { (char *)"new_Filter", _wrap_new_Filter, METH_VARARGS, NULL },
     3263         { (char *)"Filter_trace_bpf_filter", _wrap_Filter_trace_bpf_filter, METH_VARARGS, NULL },
     3264         { (char *)"Filter_swigregister", Filter_swigregister, METH_VARARGS, NULL },
     3265         { (char *)"new_Trace", _wrap_new_Trace, METH_VARARGS, NULL },
     3266         { (char *)"delete_Trace", _wrap_delete_Trace, METH_VARARGS, NULL },
     3267         { (char *)"Trace_trace_read_packet", _wrap_Trace_trace_read_packet, METH_VARARGS, NULL },
     3268         { (char *)"Trace_swigregister", Trace_swigregister, METH_VARARGS, NULL },
     3269         { NULL, NULL, 0, NULL }
    25643270};
    25653271
     
    25673273/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
    25683274
    2569 static swig_type_info _swigt__p_libtrace_t[] = {{"_p_libtrace_t", 0, "libtrace_t *", 0},{"_p_libtrace_t"},{0}};
    2570 static swig_type_info _swigt__p_libtrace_udp[] = {{"_p_libtrace_udp", 0, "struct libtrace_udp *", 0},{"_p_libtrace_udp"},{0}};
    2571 static swig_type_info _swigt__p_libtrace_ip[] = {{"_p_libtrace_ip", 0, "struct libtrace_ip *", 0},{"_p_libtrace_ip"},{0}};
    2572 static swig_type_info _swigt__p_libtrace_icmp_un_echo[] = {{"_p_libtrace_icmp_un_echo", 0, "libtrace_icmp_un_echo *", 0},{"_p_libtrace_icmp_un_echo"},{0}};
    2573 static swig_type_info _swigt__p_libtrace_icmp_un[] = {{"_p_libtrace_icmp_un", 0, "libtrace_icmp_un *", 0},{"_p_libtrace_icmp_un"},{0}};
    2574 static swig_type_info _swigt__p_uint64_t[] = {{"_p_uint64_t", 0, "uint64_t *", 0},{"_p_uint64_t"},{0}};
    2575 static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}};
    2576 static swig_type_info _swigt__p_libtrace_packet_t[] = {{"_p_libtrace_packet_t", 0, "struct libtrace_packet_t *", 0},{"_p_libtrace_packet_t"},{0}};
    2577 static swig_type_info _swigt__p_libtrace_filter_t[] = {{"_p_libtrace_filter_t", 0, "libtrace_filter_t *", 0},{"_p_libtrace_filter_t"},{0}};
    2578 static swig_type_info _swigt__p_libtrace_icmp_un_frag[] = {{"_p_libtrace_icmp_un_frag", 0, "libtrace_icmp_un_frag *", 0},{"_p_libtrace_icmp_un_frag"},{0}};
    2579 static swig_type_info _swigt__p_timeval[] = {{"_p_timeval", 0, "struct timeval *", 0},{"_p_timeval"},{0}};
    2580 static swig_type_info _swigt__p_libtrace_icmp[] = {{"_p_libtrace_icmp", 0, "struct libtrace_icmp *", 0},{"_p_libtrace_icmp"},{0}};
    2581 static swig_type_info _swigt__p_in_addr[] = {{"_p_in_addr", 0, "in_addr *", 0},{"_p_in_addr"},{0}};
    2582 static swig_type_info _swigt__p_libtrace_tcp[] = {{"_p_libtrace_tcp", 0, "struct libtrace_tcp *", 0},{"_p_libtrace_tcp"},{0}};
    2583 static swig_type_info _swigt__p_libtrace_linktype_t[] = {{"_p_libtrace_linktype_t", 0, "libtrace_linktype_t *", 0},{"_p_libtrace_linktype_t"},{0}};
     3275static swig_type_info _swigt__p_libtrace_t[] = {{"_p_libtrace_t", 0, "libtrace_t *", 0, 0, 0, 0},{"_p_libtrace_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3276static swig_type_info _swigt__p_libtrace_udp[] = {{"_p_libtrace_udp", 0, "struct libtrace_udp *", 0, 0, 0, 0},{"_p_libtrace_udp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3277static swig_type_info _swigt__p_libtrace_ip[] = {{"_p_libtrace_ip", 0, "struct libtrace_ip *", 0, 0, 0, 0},{"_p_libtrace_ip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3278static swig_type_info _swigt__p_libtrace_icmp_un_echo[] = {{"_p_libtrace_icmp_un_echo", 0, "libtrace_icmp_un_echo *", 0, 0, 0, 0},{"_p_libtrace_icmp_un_echo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3279static swig_type_info _swigt__p_libtrace_icmp_un[] = {{"_p_libtrace_icmp_un", 0, "libtrace_icmp_un *", 0, 0, 0, 0},{"_p_libtrace_icmp_un", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3280static swig_type_info _swigt__p_uint64_t[] = {{"_p_uint64_t", 0, "uint64_t *", 0, 0, 0, 0},{"_p_uint64_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3281static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0, 0, 0, 0},{"_p_void", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3282static swig_type_info _swigt__p_libtrace_packet_t[] = {{"_p_libtrace_packet_t", 0, "struct libtrace_packet_t *", 0, 0, 0, 0},{"_p_libtrace_packet_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3283static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3284static swig_type_info _swigt__p_libtrace_icmp_un_frag[] = {{"_p_libtrace_icmp_un_frag", 0, "libtrace_icmp_un_frag *", 0, 0, 0, 0},{"_p_libtrace_icmp_un_frag", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3285static swig_type_info _swigt__p_libtrace_filter_t[] = {{"_p_libtrace_filter_t", 0, "libtrace_filter_t *", 0, 0, 0, 0},{"_p_libtrace_filter_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3286static swig_type_info _swigt__p_timeval[] = {{"_p_timeval", 0, "struct timeval *", 0, 0, 0, 0},{"_p_timeval", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3287static swig_type_info _swigt__p_libtrace_icmp[] = {{"_p_libtrace_icmp", 0, "struct libtrace_icmp *", 0, 0, 0, 0},{"_p_libtrace_icmp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3288static swig_type_info _swigt__p_int8_t[] = {{"_p_int8_t", 0, "int8_t *", 0, 0, 0, 0},{"_p_int8_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3289static swig_type_info _swigt__p_in_addr[] = {{"_p_in_addr", 0, "in_addr *", 0, 0, 0, 0},{"_p_in_addr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3290static swig_type_info _swigt__p_libtrace_tcp[] = {{"_p_libtrace_tcp", 0, "struct libtrace_tcp *", 0, 0, 0, 0},{"_p_libtrace_tcp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
     3291static swig_type_info _swigt__p_libtrace_linktype_t[] = {{"_p_libtrace_linktype_t", 0, "libtrace_linktype_t *", 0, 0, 0, 0},{"_p_libtrace_linktype_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
    25843292
    25853293static swig_type_info *swig_types_initial[] = {
     
    25923300_swigt__p_void,
    25933301_swigt__p_libtrace_packet_t,
     3302_swigt__p_char,
     3303_swigt__p_libtrace_icmp_un_frag,
    25943304_swigt__p_libtrace_filter_t,
    2595 _swigt__p_libtrace_icmp_un_frag,
    25963305_swigt__p_timeval,
    25973306_swigt__p_libtrace_icmp,
     3307_swigt__p_int8_t,
    25983308_swigt__p_in_addr,
    25993309_swigt__p_libtrace_tcp,
     
    26063316
    26073317static swig_const_info swig_const_table[] = {
    2608 { SWIG_PY_INT,     (char *)"IP_RF", (long) 0x8000, 0, 0, 0},
    2609 { SWIG_PY_INT,     (char *)"IP_DF", (long) 0x4000, 0, 0, 0},
    2610 { SWIG_PY_INT,     (char *)"IP_MF", (long) 0x2000, 0, 0, 0},
    2611 { SWIG_PY_INT,     (char *)"IP_OFFMASK", (long) 0x1fff, 0, 0, 0},
    2612 {0}};
     3318{0, 0, 0, 0.0, 0, 0}};
    26133319
    26143320#ifdef __cplusplus
     
    26363342    SWIG_InstallConstants(d,swig_const_table);
    26373343   
    2638 }
    2639 
     3344    PyDict_SetItemString(d,"IP_RF", SWIG_From_int((int)0x8000));
     3345    PyDict_SetItemString(d,"IP_DF", SWIG_From_int((int)0x4000));
     3346    PyDict_SetItemString(d,"IP_MF", SWIG_From_int((int)0x2000));
     3347    PyDict_SetItemString(d,"IP_OFFMASK", SWIG_From_int((int)0x1fff));
     3348}
     3349
Note: See TracChangeset for help on using the changeset viewer.