Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

dnet.c File Reference

#include "Python.h"
#include "structmember.h"
#include "dnet.h"
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"

Go to the source code of this file.

Defines

#define PY_LONG_LONG   LONG_LONG

Enumerations

enum  { __pyx_e_4dnet_TEADELTA = 2654435769, __pyx_e_4dnet_TEAROUNDS = 32, __pyx_e_4dnet_TEASBOXSIZE = 128, __pyx_e_4dnet_TEASBOXSHIFT = 7 }

Functions

static PyObject * __Pyx_UnpackItem (PyObject *, int)
static int __Pyx_EndUnpack (PyObject *, int)
static int __Pyx_PrintItem (PyObject *)
static int __Pyx_PrintNewline (void)
static void __Pyx_Raise (PyObject *type, PyObject *value, PyObject *tb)
static void __Pyx_ReRaise (void)
static PyObject * __Pyx_Import (PyObject *name, PyObject *from_list)
static PyObject * __Pyx_GetExcValue (void)
static int __Pyx_ArgTypeTest (PyObject *obj, PyTypeObject *type, int none_allowed, char *name)
static int __Pyx_TypeTest (PyObject *obj, PyTypeObject *type)
static int __Pyx_GetStarArgs (PyObject **args, PyObject **kwds, char *kwd_list[], int nargs, PyObject **args2, PyObject **kwds2)
static void __Pyx_WriteUnraisable (char *name)
static void __Pyx_AddTraceback (char *funcname)
static PyTypeObject * __Pyx_ImportType (char *module_name, char *class_name, long size)
static int __Pyx_SetVtable (PyObject *dict, void *vtable)
static int __Pyx_GetVtable (PyObject *dict, void *vtabptr)
static PyObject * __Pyx_CreateClass (PyObject *bases, PyObject *dict, PyObject *name, char *modname)
static int __Pyx_InternStrings (__Pyx_InternTabEntry *t)
static int __Pyx_InitStrings (__Pyx_StringTabEntry *t)
static PyObject * __Pyx_GetName (PyObject *dict, PyObject *name)
static PyObject * __pyx_f_4dnet___memcpy (char(*), PyObject *, int))
static PyObject * __pyx_f_4dnet___oserror (void))
static int (__pyx_f_4dnet___arp_callback(struct arp_entry(*), void(*)))
static PyObject * __pyx_f_4dnet_ifent_to_dict (struct intf_entry(*)))
static PyObject * __pyx_f_4dnet_dict_to_ifent (PyObject *, struct intf_entry(*)))
static int (__pyx_f_4dnet___intf_callback(struct intf_entry(*), void(*)))
static int (__pyx_f_4dnet___route_callback(struct route_entry(*), void(*)))
static PyObject * __pyx_f_4dnet_rule_to_dict (struct fw_rule(*)))
static PyObject * __pyx_f_4dnet_dict_to_rule (PyObject *, struct fw_rule(*)))
static int (__pyx_f_4dnet___fw_callback(struct fw_rule(*), void(*)))
static char (__pyx_k1[]) = "Copyright (c) 2003 Dug Song"
static char (__pyx_k2[]) = "\x0ff\x0ff\x0ff\x0ff"
static char (__pyx_k3[]) = "\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000"
static char (__pyx_k4[])
static char (__pyx_k5[])
static char (__pyx_k6[]) = "not a %d-byte binary string: %r"
static char (__pyx_k7[]) = "non-IPv6 address"
static char (__pyx_k8[])
static char (__pyx_k9[])
static PyObject * __pyx_f_4dnet___memcpy (char(*__pyx_v_dst), PyObject *__pyx_v_src, int __pyx_v_n)
static PyObject * __pyx_f_4dnet___iter_append (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static int __pyx_f_4dnet_3eth___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3eth_get (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3eth_set (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3eth_send (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static void __pyx_f_4dnet_3eth___dealloc__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_eth_ntoa (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_eth_aton (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_eth_pack_hdr (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static int __pyx_f_4dnet_2ip___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_2ip_send (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static void __pyx_f_4dnet_2ip___dealloc__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_ip_ntoa (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_ip_aton (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_ip_checksum (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_ip_cksum_add (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_ip_cksum_carry (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_ip_pack_hdr (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_ip6_ntoa (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_ip6_aton (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_ip6_checksum (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_ip6_pack_hdr (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static int __pyx_f_4dnet_4addr___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4addr_4type___get__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet_4addr_4type___set__ (PyObject *__pyx_v_self, PyObject *__pyx_arg_value)
static PyObject * __pyx_f_4dnet_4addr_4bits___get__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet_4addr_4bits___set__ (PyObject *__pyx_v_self, PyObject *__pyx_arg_value)
static PyObject * __pyx_f_4dnet_4addr_4data___get__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_4addr_3eth___get__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet_4addr_3eth___set__ (PyObject *__pyx_v_self, PyObject *__pyx_v_value)
static PyObject * __pyx_f_4dnet_4addr_2ip___get__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet_4addr_2ip___set__ (PyObject *__pyx_v_self, PyObject *__pyx_v_value)
static PyObject * __pyx_f_4dnet_4addr_3ip6___get__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet_4addr_3ip6___set__ (PyObject *__pyx_v_self, PyObject *__pyx_v_value)
static PyObject * __pyx_f_4dnet_4addr_bcast (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4addr_net (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4addr___add__ (PyObject *__pyx_v_self, PyObject *__pyx_v_other)
static PyObject * __pyx_f_4dnet_4addr___copy__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static int __pyx_f_4dnet_4addr___cmp__ (PyObject *__pyx_v_x, PyObject *__pyx_v_y)
static int __pyx_f_4dnet_4addr___contains__ (PyObject *__pyx_v_self, PyObject *__pyx_v_other)
static long __pyx_f_4dnet_4addr___hash__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_4addr___int__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_4addr___long__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_4addr___iter__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_4addr___repr__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet_15__addr_ip4_iter___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_15__addr_ip4_iter___next__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet___arp_callback (struct arp_entry(*__pyx_v_entry), void(*__pyx_v_arg))
static int __pyx_f_4dnet_3arp___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3arp_add (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3arp_delete (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3arp_get (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3arp_loop (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3arp___iter__ (PyObject *__pyx_v_self)
static void __pyx_f_4dnet_3arp___dealloc__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_arp_pack_hdr_ethip (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_icmp_pack_hdr (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_tcp_pack_hdr (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_udp_pack_hdr (PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_ifent_to_dict (struct intf_entry(*__pyx_v_entry))
static PyObject * __pyx_f_4dnet_dict_to_ifent (PyObject *__pyx_v_d, struct intf_entry(*__pyx_v_entry))
static int __pyx_f_4dnet___intf_callback (struct intf_entry(*__pyx_v_entry), void(*__pyx_v_arg))
static int __pyx_f_4dnet_4intf___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4intf_get (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4intf_get_src (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4intf_get_dst (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4intf_set (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4intf_loop (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4intf___iter__ (PyObject *__pyx_v_self)
static void __pyx_f_4dnet_4intf___dealloc__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet___route_callback (struct route_entry(*__pyx_v_entry), void(*__pyx_v_arg))
static int __pyx_f_4dnet_5route___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_5route_add (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_5route_delete (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_5route_get (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_5route_loop (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_5route___iter__ (PyObject *__pyx_v_self)
static void __pyx_f_4dnet_5route___dealloc__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_rule_to_dict (struct fw_rule(*__pyx_v_rule))
static PyObject * __pyx_f_4dnet_dict_to_rule (PyObject *__pyx_v_d, struct fw_rule(*__pyx_v_rule))
static int __pyx_f_4dnet___fw_callback (struct fw_rule(*__pyx_v_rule), void(*__pyx_v_arg))
static int __pyx_f_4dnet_2fw___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_2fw_add (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_2fw_delete (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_2fw_loop (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_2fw___iter__ (PyObject *__pyx_v_self)
static void __pyx_f_4dnet_2fw___dealloc__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet_4rand___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4rand_get (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4rand_set (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4rand_add (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4rand_uint8 (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4rand_uint16 (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4rand_uint32 (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_4rand_xrange (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static void __pyx_f_4dnet_4rand___dealloc__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet_13__rand_xrange___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_13__rand_xrange___iter__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet_13__rand_xrange___len__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_13__rand_xrange___next__ (PyObject *__pyx_v_self)
static int __pyx_f_4dnet_3tun___init__ (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3tun_4name___get__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_3tun_2fd___get__ (PyObject *__pyx_v_self)
static PyObject * __pyx_f_4dnet_3tun_fileno (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3tun_send (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3tun_recv (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static PyObject * __pyx_f_4dnet_3tun_close (PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds)
static void __pyx_f_4dnet_3tun___dealloc__ (PyObject *__pyx_v_self)
static PyObject * __pyx_tp_new_4dnet_eth (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet_eth (PyObject *o)
static int __pyx_tp_traverse_4dnet_eth (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet_eth (PyObject *o)
static PyObject * __pyx_tp_new_4dnet_ip (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet_ip (PyObject *o)
static int __pyx_tp_traverse_4dnet_ip (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet_ip (PyObject *o)
static PyObject * __pyx_tp_new_4dnet_addr (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet_addr (PyObject *o)
static int __pyx_tp_traverse_4dnet_addr (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet_addr (PyObject *o)
static PyObject * __pyx_getprop_4dnet_4addr_type (PyObject *o, void *x)
static int __pyx_setprop_4dnet_4addr_type (PyObject *o, PyObject *v, void *x)
static PyObject * __pyx_getprop_4dnet_4addr_bits (PyObject *o, void *x)
static int __pyx_setprop_4dnet_4addr_bits (PyObject *o, PyObject *v, void *x)
static PyObject * __pyx_getprop_4dnet_4addr_data (PyObject *o, void *x)
static PyObject * __pyx_getprop_4dnet_4addr_eth (PyObject *o, void *x)
static int __pyx_setprop_4dnet_4addr_eth (PyObject *o, PyObject *v, void *x)
static PyObject * __pyx_getprop_4dnet_4addr_ip (PyObject *o, void *x)
static int __pyx_setprop_4dnet_4addr_ip (PyObject *o, PyObject *v, void *x)
static PyObject * __pyx_getprop_4dnet_4addr_ip6 (PyObject *o, void *x)
static int __pyx_setprop_4dnet_4addr_ip6 (PyObject *o, PyObject *v, void *x)
static PyObject * __pyx_tp_new_4dnet___addr_ip4_iter (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet___addr_ip4_iter (PyObject *o)
static int __pyx_tp_traverse_4dnet___addr_ip4_iter (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet___addr_ip4_iter (PyObject *o)
static PyObject * __pyx_tp_new_4dnet_arp (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet_arp (PyObject *o)
static int __pyx_tp_traverse_4dnet_arp (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet_arp (PyObject *o)
static PyObject * __pyx_tp_new_4dnet_intf (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet_intf (PyObject *o)
static int __pyx_tp_traverse_4dnet_intf (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet_intf (PyObject *o)
static PyObject * __pyx_tp_new_4dnet_route (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet_route (PyObject *o)
static int __pyx_tp_traverse_4dnet_route (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet_route (PyObject *o)
static PyObject * __pyx_tp_new_4dnet_fw (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet_fw (PyObject *o)
static int __pyx_tp_traverse_4dnet_fw (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet_fw (PyObject *o)
static PyObject * __pyx_tp_new_4dnet_rand (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet_rand (PyObject *o)
static int __pyx_tp_traverse_4dnet_rand (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet_rand (PyObject *o)
static PyObject * __pyx_tp_new_4dnet___rand_xrange (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet___rand_xrange (PyObject *o)
static int __pyx_tp_traverse_4dnet___rand_xrange (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet___rand_xrange (PyObject *o)
static PyObject * __pyx_tp_new_4dnet_tun (PyTypeObject *t, PyObject *a, PyObject *k)
static void __pyx_tp_dealloc_4dnet_tun (PyObject *o)
static int __pyx_tp_traverse_4dnet_tun (PyObject *o, visitproc v, void *a)
static int __pyx_tp_clear_4dnet_tun (PyObject *o)
static PyObject * __pyx_getprop_4dnet_3tun_name (PyObject *o, void *x)
static PyObject * __pyx_getprop_4dnet_3tun_fd (PyObject *o, void *x)
 DL_EXPORT (void)
static void __Pyx_UnpackError (void)

Variables

static PyObject * __pyx_m
static PyObject * __pyx_b
static int __pyx_lineno
static char * __pyx_filename
staticforward char ** __pyx_f = __pyx_filenames
static char __pyx_mdoc [] = "dumb networking library\n\nThis module provides a simplified interface to several low-level\nnetworking routines, including network address manipulation, kernel\narp(4) cache and route(4) table lookup and manipulation, network\nfirewalling, network interface lookup and manipulation, IP tunnelling,\nand raw IP packet and Ethernet frame transmission.\n"
staticforward PyTypeObject __pyx_type_4dnet_eth
staticforward PyTypeObject __pyx_type_4dnet_ip
staticforward PyTypeObject __pyx_type_4dnet_addr
staticforward PyTypeObject __pyx_type_4dnet___addr_ip4_iter
staticforward PyTypeObject __pyx_type_4dnet_arp
staticforward PyTypeObject __pyx_type_4dnet_intf
staticforward PyTypeObject __pyx_type_4dnet_route
staticforward PyTypeObject __pyx_type_4dnet_fw
staticforward PyTypeObject __pyx_type_4dnet_rand
staticforward PyTypeObject __pyx_type_4dnet___rand_xrange
staticforward PyTypeObject __pyx_type_4dnet_tun
static PyTypeObject * __pyx_ptype_4dnet_eth = 0
static PyTypeObject * __pyx_ptype_4dnet_ip = 0
static PyTypeObject * __pyx_ptype_4dnet_addr = 0
static PyTypeObject * __pyx_ptype_4dnet___addr_ip4_iter = 0
static PyTypeObject * __pyx_ptype_4dnet_arp = 0
static PyTypeObject * __pyx_ptype_4dnet_intf = 0
static PyTypeObject * __pyx_ptype_4dnet_route = 0
static PyTypeObject * __pyx_ptype_4dnet_fw = 0
static PyTypeObject * __pyx_ptype_4dnet_rand = 0
static PyTypeObject * __pyx_ptype_4dnet___rand_xrange = 0
static PyTypeObject * __pyx_ptype_4dnet_tun = 0
static PyObject * __pyx_k16
static PyObject * __pyx_k17
static PyObject * __pyx_k18
static PyObject * __pyx_k24
static PyObject * __pyx_k25
static PyObject * __pyx_k26
static PyObject * __pyx_k27
static PyObject * __pyx_k28
static PyObject * __pyx_k29
static PyObject * __pyx_k30
static PyObject * __pyx_k31
static PyObject * __pyx_k34
static PyObject * __pyx_k35
static PyObject * __pyx_k36
static PyObject * __pyx_k37
static PyObject * __pyx_k38
static PyObject * __pyx_k39
static PyObject * __pyx_k40
static PyObject * __pyx_k41
static PyObject * __pyx_k42
static PyObject * __pyx_k43
static PyObject * __pyx_k44
static PyObject * __pyx_k45
static PyObject * __pyx_k46
static PyObject * __pyx_k47
static PyObject * __pyx_k48
static PyObject * __pyx_k49
static PyObject * __pyx_k50
static PyObject * __pyx_k51
static PyObject * __pyx_k52
static PyObject * __pyx_k53
static PyObject * __pyx_k54
static PyObject * __pyx_k55
static PyObject * __pyx_k56
static PyObject * __pyx_k57
static PyObject * __pyx_k58
static PyObject * __pyx_k59
static PyObject * __pyx_n___author__
static PyObject * __pyx_n___copyright__
static PyObject * __pyx_n___license__
static PyObject * __pyx_n___url__
static PyObject * __pyx_n___version__
static PyObject * __pyx_n___iter_append
static PyObject * __pyx_n_ETH_ADDR_LEN
static PyObject * __pyx_n_ETH_ADDR_BITS
static PyObject * __pyx_n_ETH_TYPE_LEN
static PyObject * __pyx_n_ETH_CRC_LEN
static PyObject * __pyx_n_ETH_HDR_LEN
static PyObject * __pyx_n_ETH_LEN_MIN
static PyObject * __pyx_n_ETH_LEN_MAX
static PyObject * __pyx_n_ETH_MTU
static PyObject * __pyx_n_ETH_MIN
static PyObject * __pyx_n_ETH_TYPE_PUP
static PyObject * __pyx_n_ETH_TYPE_IP
static PyObject * __pyx_n_ETH_TYPE_ARP
static PyObject * __pyx_n_ETH_TYPE_REVARP
static PyObject * __pyx_n_ETH_TYPE_8021Q
static PyObject * __pyx_n_ETH_TYPE_IPV6
static PyObject * __pyx_n_ETH_TYPE_MPLS
static PyObject * __pyx_n_ETH_TYPE_MPLS_MCAST
static PyObject * __pyx_n_ETH_TYPE_PPPOEDISC
static PyObject * __pyx_n_ETH_TYPE_PPPOE
static PyObject * __pyx_n_ETH_TYPE_LOOPBACK
static PyObject * __pyx_n_ETH_ADDR_UNSPEC
static PyObject * __pyx_n_ETH_ADDR_BROADCAST
static PyObject * __pyx_n_eth_ntoa
static PyObject * __pyx_n_eth_aton
static PyObject * __pyx_n_eth_pack_hdr
static PyObject * __pyx_n_IP_ADDR_LEN
static PyObject * __pyx_n_IP_ADDR_BITS
static PyObject * __pyx_n_IP_HDR_LEN
static PyObject * __pyx_n_IP_OPT_LEN
static PyObject * __pyx_n_IP_OPT_LEN_MAX
static PyObject * __pyx_n_IP_HDR_LEN_MAX
static PyObject * __pyx_n_IP_LEN_MAX
static PyObject * __pyx_n_IP_LEN_MIN
static PyObject * __pyx_n_IP_TOS_DEFAULT
static PyObject * __pyx_n_IP_RF
static PyObject * __pyx_n_IP_DF
static PyObject * __pyx_n_IP_MF
static PyObject * __pyx_n_IP_OFFMASK
static PyObject * __pyx_n_IP_TTL_DEFAULT
static PyObject * __pyx_n_IP_TTL_MAX
static PyObject * __pyx_n_IP_PROTO_IP
static PyObject * __pyx_n_IP_PROTO_ICMP
static PyObject * __pyx_n_IP_PROTO_IGMP
static PyObject * __pyx_n_IP_PROTO_TCP
static PyObject * __pyx_n_IP_PROTO_UDP
static PyObject * __pyx_n_IP_PROTO_IPV6
static PyObject * __pyx_n_IP_PROTO_GRE
static PyObject * __pyx_n_IP_PROTO_ESP
static PyObject * __pyx_n_IP_PROTO_AH
static PyObject * __pyx_n_IP_PROTO_ICMPV6
static PyObject * __pyx_n_IP_PROTO_RAW
static PyObject * __pyx_n_IP_PROTO_RESERVED
static PyObject * __pyx_n_IP_PROTO_MAX
static PyObject * __pyx_n_IP_ADDR_ANY
static PyObject * __pyx_n_IP_ADDR_BROADCAST
static PyObject * __pyx_n_IP_ADDR_LOOPBACK
static PyObject * __pyx_n_IP_ADDR_MCAST_ALL
static PyObject * __pyx_n_IP_ADDR_MCAST_LOCAL
static PyObject * __pyx_n_ip_ntoa
static PyObject * __pyx_n_ip_aton
static PyObject * __pyx_n_ip_checksum
static PyObject * __pyx_n_ip_cksum_add
static PyObject * __pyx_n_ip_cksum_carry
static PyObject * __pyx_n_ip_pack_hdr
static PyObject * __pyx_n_IP6_ADDR_LEN
static PyObject * __pyx_n_IP6_ADDR_BITS
static PyObject * __pyx_n_IP6_HDR_LEN
static PyObject * __pyx_n_IP6_LEN_MIN
static PyObject * __pyx_n_IP6_LEN_MAX
static PyObject * __pyx_n_IP6_MTU_MIN
static PyObject * __pyx_n_IP6_HLIM_DEFAULT
static PyObject * __pyx_n_IP6_HLIM_MAX
static PyObject * __pyx_n_IP6_ADDR_UNSPEC
static PyObject * __pyx_n_IP6_ADDR_LOOPBACK
static PyObject * __pyx_n_ip6_ntoa
static PyObject * __pyx_n_ip6_aton
static PyObject * __pyx_n_ip6_checksum
static PyObject * __pyx_n_ip6_pack_hdr
static PyObject * __pyx_n_ADDR_TYPE_NONE
static PyObject * __pyx_n_ADDR_TYPE_ETH
static PyObject * __pyx_n_ADDR_TYPE_IP
static PyObject * __pyx_n_ADDR_TYPE_IP6
static PyObject * __pyx_n_ARP_HDR_LEN
static PyObject * __pyx_n_ARP_ETHIP_LEN
static PyObject * __pyx_n_ARP_HRD_ETH
static PyObject * __pyx_n_ARP_HRD_IEEE802
static PyObject * __pyx_n_ARP_PRO_IP
static PyObject * __pyx_n_ARP_OP_REQUEST
static PyObject * __pyx_n_ARP_OP_REPLY
static PyObject * __pyx_n_ARP_OP_REVREQUEST
static PyObject * __pyx_n_ARP_OP_REVREPLY
static PyObject * __pyx_n_arp_pack_hdr_ethip
static PyObject * __pyx_n_icmp_pack_hdr
static PyObject * __pyx_n_TCP_HDR_LEN
static PyObject * __pyx_n_TH_FIN
static PyObject * __pyx_n_TH_SYN
static PyObject * __pyx_n_TH_RST
static PyObject * __pyx_n_TH_PUSH
static PyObject * __pyx_n_TH_ACK
static PyObject * __pyx_n_TH_URG
static PyObject * __pyx_n_TH_ECE
static PyObject * __pyx_n_TH_CWR
static PyObject * __pyx_n_TCP_PORT_MAX
static PyObject * __pyx_n_TCP_WIN_MAX
static PyObject * __pyx_n_TCP_OPT_EOL
static PyObject * __pyx_n_TCP_OPT_NOP
static PyObject * __pyx_n_TCP_OPT_MSS
static PyObject * __pyx_n_TCP_OPT_WSCALE
static PyObject * __pyx_n_TCP_OPT_SACKOK
static PyObject * __pyx_n_TCP_OPT_SACK
static PyObject * __pyx_n_TCP_OPT_ECHO
static PyObject * __pyx_n_TCP_OPT_ECHOREPLY
static PyObject * __pyx_n_TCP_OPT_TIMESTAMP
static PyObject * __pyx_n_TCP_OPT_POCONN
static PyObject * __pyx_n_TCP_OPT_POSVC
static PyObject * __pyx_n_TCP_OPT_CC
static PyObject * __pyx_n_TCP_OPT_CCNEW
static PyObject * __pyx_n_TCP_OPT_CCECHO
static PyObject * __pyx_n_TCP_OPT_ALTSUM
static PyObject * __pyx_n_TCP_OPT_ALTSUMDATA
static PyObject * __pyx_n_TCP_OPT_SKEETER
static PyObject * __pyx_n_TCP_OPT_BUBBA
static PyObject * __pyx_n_TCP_OPT_TRAILSUM
static PyObject * __pyx_n_TCP_OPT_MD5
static PyObject * __pyx_n_TCP_OPT_SCPS
static PyObject * __pyx_n_TCP_OPT_SNACK
static PyObject * __pyx_n_TCP_OPT_REC
static PyObject * __pyx_n_TCP_OPT_CORRUPT
static PyObject * __pyx_n_TCP_OPT_SNAP
static PyObject * __pyx_n_TCP_OPT_TCPCOMP
static PyObject * __pyx_n_TCP_OPT_MAX
static PyObject * __pyx_n_tcp_pack_hdr
static PyObject * __pyx_n_UDP_HDR_LEN
static PyObject * __pyx_n_UDP_PORT_MAX
static PyObject * __pyx_n_udp_pack_hdr
static PyObject * __pyx_n_INTF_TYPE_OTHER
static PyObject * __pyx_n_INTF_TYPE_ETH
static PyObject * __pyx_n_INTF_TYPE_LOOPBACK
static PyObject * __pyx_n_INTF_TYPE_TUN
static PyObject * __pyx_n_INTF_FLAG_UP
static PyObject * __pyx_n_INTF_FLAG_LOOPBACK
static PyObject * __pyx_n_INTF_FLAG_POINTOPOINT
static PyObject * __pyx_n_INTF_FLAG_NOARP
static PyObject * __pyx_n_INTF_FLAG_BROADCAST
static PyObject * __pyx_n_INTF_FLAG_MULTICAST
static PyObject * __pyx_n_FW_OP_ALLOW
static PyObject * __pyx_n_FW_OP_BLOCK
static PyObject * __pyx_n_FW_DIR_IN
static PyObject * __pyx_n_FW_DIR_OUT
static PyObject * __pyx_n_BSD
static PyObject * __pyx_k9p
static PyObject * __pyx_k10p
static PyObject * __pyx_k12p
static PyObject * __pyx_k13p
static PyObject * __pyx_n_ValueError
static PyObject * __pyx_k60p
static PyObject * __pyx_n_append
static PyObject * __pyx_n_OSError
static char __pyx_doc_4dnet_3eth_get [] = "Return the MAC address associated with the device as a\n binary string."
static char __pyx_doc_4dnet_3eth_set [] = "Set the MAC address for the device, returning 0 on success,\n -1 on failure.\n \n Arguments:\n eth_addr -- 6-byte binary string (e.g. \'\\x00\\xde\\xad\\xbe\\xef\\x00\')\n "
static char __pyx_doc_4dnet_3eth_send [] = "Send an Ethernet frame, returning the number of bytes sent\n or -1 on failure.\n \n Arguments:\n frame -- binary string representing an Ethernet frame\n "
static char __pyx_doc_4dnet_eth_ntoa [] = "Convert an Ethernet MAC address from 6-byte packed binary string to\n a printable string (\'00:de:ad:be:ef:00\')."
static PyObject * __pyx_k61p
static char __pyx_doc_4dnet_eth_aton [] = "Convert an Ethernet MAC address from a printable string to a\n packed binary string (\'\\x00\\xde\\xad\\xbe\\xef\\x00\')."
static char __pyx_doc_4dnet_eth_pack_hdr [] = "Return a packed binary string representing an Ethernet header.\n \n Keyword arguments:\n dst -- destination address (6-byte binary string)\n src -- source address (6-byte binary string)\n type -- Ethernet payload type (ETH_TYPE_*) (16-bit integer)\n "
static char __pyx_doc_4dnet_2ip_send [] = "Send an IP packet, returning the number of bytes sent\n or -1 on failure.\n\n Arguments:\n pkt -- binary string representing an IP packet\n "
static char __pyx_doc_4dnet_ip_ntoa [] = "Convert an IP address from a 4-byte packed binary string or\n integer to a printable string (\'10.0.0.1\')."
static PyObject * __pyx_k62p
static char __pyx_doc_4dnet_ip_aton [] = "Convert an IP address from a printable string to a\n packed binary string (\'\\x0a\\x00\\x00\\x01\')."
static PyObject * __pyx_n_TypeError
static char __pyx_doc_4dnet_ip_checksum [] = "Return packed binary string representing an IP packet \n with the IP and transport-layer checksums set.\n \n Arguments:\n pkt -- binary string representing an IP packet\n "
static char __pyx_doc_4dnet_ip_pack_hdr [] = "Return a packed binary string representing an IP header.\n \n Keyword arguments:\n tos -- type of service (8-bit integer)\n len -- length (IP_HDR_LEN + payload) (16-bit integer)\n id -- packet ID (16-bit integer)\n off -- fragmentation offset (16-bit integer)\n ttl -- time-to-live (8-bit integer)\n p -- protocol (IP_PROTO_*) (8-bit integer)\n src -- source address (4-byte binary string)\n dst -- destination address (4-byte binary string)\n "
static char __pyx_doc_4dnet_ip6_ntoa [] = "Convert an IPv6 address from a 16-byte packed binary string to a\n printable string (\'10.0.0.1\')."
static PyObject * __pyx_k63p
static char __pyx_doc_4dnet_ip6_aton [] = "Convert an IPv6 address from a printable string to a\n packed binary string (\'\\x0a\\x00\\x00\\x01\')."
static char __pyx_doc_4dnet_ip6_checksum [] = "Return a packed binary string representing an IPv6 packet \n with the IPv6 and transport-layer checksums set.\n\n Arguments:\n pkt -- binary string representing an IPv6 packet\n "
static char __pyx_doc_4dnet_ip6_pack_hdr [] = "Return a packed binary string representing an IPv6 header.\n \n Keyword arguments:\n fc -- flow class (8-bit integer)\n fl -- flow label (20-bit integer)\n plen -- payload length (16-bit integer)\n nxt -- next header (IP_PROTO_*) (8-bit integer)\n hlim -- hop limit (8-bit integer)\n src -- source address (16-byte binary string)\n dst -- destination address (16-byte binary string)\n "
static PyObject * __pyx_n_ip
static PyObject * __pyx_k64p
static PyObject * __pyx_n_OverflowError
static PyObject * __pyx_n_eth
static PyObject * __pyx_n_ip6
static PyObject * __pyx_k65p
static PyObject * __pyx_k66p
static PyObject * __pyx_k67p
static PyObject * __pyx_k68p
static PyObject * __pyx_k69p
static PyObject * __pyx_k70p
static PyObject * __pyx_k71p
static char __pyx_doc_4dnet_4addr_bcast [] = "Return an addr object for our broadcast address."
static char __pyx_doc_4dnet_4addr_net [] = "Return an addr object for our network address."
static PyObject * __pyx_n_NotImplementedError
static PyObject * __pyx_n___copy__
static PyObject * __pyx_n___int__
static PyObject * __pyx_k73p
static PyObject * __pyx_n_StopIteration
static char __pyx_doc_4dnet_3arp_add [] = "Add an entry to the system ARP table.\n\n Arguments:\n pa -- ADDR_TYPE_IP network address object\n ha -- ADDR_TYPE_ETH network address object\n "
static char __pyx_doc_4dnet_3arp_delete [] = "Delete an entry from the system ARP table.\n\n Arguments:\n pa -- ADDR_TYPE_IP network address object\n "
static char __pyx_doc_4dnet_3arp_get [] = "Return the hardware address for a given protocol address\n in the system ARP table.\n\n Arguments:\n pa -- ADDR_TYPE_IP network address object\n "
static char __pyx_doc_4dnet_3arp_loop [] = "Iterate over the system ARP table, invoking a user callback\n with each entry, returning the status of the callback routine.\n\n Keyword arguments:\n callback -- callback function with ((pa, ha), arg) prototype.\n If this function returns a non-zero value, the loop\n will break early.\n arg -- optional callback argument\n "
static PyObject * __pyx_n_loop
static PyObject * __pyx_n_iter
static char __pyx_doc_4dnet_arp_pack_hdr_ethip [] = "Return a packed binary string representing an Ethernet/IP ARP message.\n \n Keyword arguments:\n op -- operation (ARP_OP_*) (16-bit integer)\n sha -- sender Ethernet address (6-byte binary string)\n spa -- sender IP address (4-byte binary string)\n dha -- destination Ethernet address (6-byte binary string)\n dpa -- destination IP address (4-byte binary string)\n "
static char __pyx_doc_4dnet_icmp_pack_hdr [] = "Return a packed binary string representing an ICMP header.\n\n Keyword arguments:\n type -- ICMP type (8-bit integer)\n code -- ICMP code (8-bit integer)\n "
static char __pyx_doc_4dnet_tcp_pack_hdr [] = "Return a packed binary string representing a TCP header.\n\n Keyword arguments:\n sport -- source port (16-bit integer)\n dport -- destination port (16-bit integer)\n seq -- sequence number (32-bit integer)\n ack -- acknowledgment number (32-bit integer)\n flags -- control flags (TH_*) (8-bit integer bitmask)\n win -- window size (16-bit integer)\n urp -- urgent pointer (16-bit integer)\n "
static char __pyx_doc_4dnet_udp_pack_hdr [] = "Return a packed binary string representing a UDP header.\n\n Keyword arguments:\n sport -- source port (16-bit integer)\n dport -- destination port (16-bit integer)\n ulen -- UDP header + data length (16-bit integer)\n "
static PyObject * __pyx_n_name
static PyObject * __pyx_n_type
static PyObject * __pyx_n_flags
static PyObject * __pyx_n_mtu
static PyObject * __pyx_n_addr
static PyObject * __pyx_n_dst_addr
static PyObject * __pyx_n_link_addr
static PyObject * __pyx_n_alias_addrs
static PyObject * __pyx_n_len
static char __pyx_doc_4dnet_4intf_get [] = "Return the configuration for a network interface as a dict.\n "
static char __pyx_doc_4dnet_4intf_get_src [] = "Return the configuration for the interface whose primary address\n matches the specified source address.\n "
static char __pyx_doc_4dnet_4intf_get_dst [] = "Return the configuration for the best interface with which to\n reach the specified dst address.\n "
static char __pyx_doc_4dnet_4intf_set [] = "Set the configuration for an interface from a dict.\n\n Dict values:\n name -- name of interface to set (string)\n flags -- interface flags (INTF_FLAG_*) (integer bitmask)\n mtu -- interface MTU (integer)\n addr -- primary network address (addr object)\n dst_addr -- point-to-point dst address (addr object)\n link_addr -- link-layer address (addr object)\n alias_addrs -- additional network addresses (list of addr objects)\n "
static char __pyx_doc_4dnet_4intf_loop [] = "Iterate over the system interface table, invoking a user callback\n with each entry, returning the status of the callback routine.\n\n Keyword arguments:\n callback -- callback function with (dict, arg) prototype.\n If this function returns a non-zero value, the loop\n will break early.\n arg -- optional callback argument\n "
static char __pyx_doc_4dnet_5route_add [] = "Add an entry to the system routing table.\n\n Arguments:\n dst -- ADDR_TYPE_IP network address object\n gw -- ADDR_TYPE_IP network address object\n "
static char __pyx_doc_4dnet_5route_delete [] = "Delete an entry from the system routing table.\n\n Arguments:\n dst -- ADDR_TYPE_IP network address object\n "
static char __pyx_doc_4dnet_5route_get [] = "Return the hardware address for a given protocol address\n in the system routing table.\n\n Arguments:\n dst -- ADDR_TYPE_IP network address object\n "
static char __pyx_doc_4dnet_5route_loop [] = "Iterate over the system routing table, invoking a user callback\n with each entry, returning the status of the callback routine.\n\n Keyword arguments:\n callback -- callback function with ((dst, gw), arg) prototype.\n If this function returns a non-zero value, the loop\n will break early.\n arg -- optional callback argument\n "
static PyObject * __pyx_n_device
static PyObject * __pyx_n_op
static PyObject * __pyx_n_dir
static PyObject * __pyx_n_proto
static PyObject * __pyx_n_src
static PyObject * __pyx_n_dst
static PyObject * __pyx_n_sport
static PyObject * __pyx_n_dport
static char __pyx_doc_4dnet_2fw_add [] = "Add a firewall rule specified as a dict.\n\n Dict values:\n device -- interface name (string)\n op -- operation (FW_OP_*) (integer)\n dir -- direction (FW_DIR_*) (integer)\n proto -- IP protocol (IP_PROTO_*) (integer)\n src -- source address / net (addr object)\n dst -- destination address / net (addr object)\n sport -- source port range or ICMP type/mask (list of 2 integers)\n dport -- dest port range or ICMP code/mask (list of 2 integers)\n "
static char __pyx_doc_4dnet_2fw_delete [] = "Delete a firewall rule specified as a dict."
static char __pyx_doc_4dnet_2fw_loop [] = "Iterate over the local firewall ruleset, invoking a user callback\n with each entry, returning the status of the callback routine.\n\n Keyword arguments:\n callback -- callback function with (dict, arg) prototype.\n If this function returns a non-zero value, the loop\n will break early.\n arg -- optional callback argument\n "
static char __pyx_doc_4dnet_4rand_get [] = "Return a string of random bytes.\n \n Arguments:\n len -- number of random bytes to generate\n "
static char __pyx_doc_4dnet_4rand_set [] = "Initialize the PRNG from a known seed.\n \n Arguments:\n string -- binary string seed value\n "
static char __pyx_doc_4dnet_4rand_add [] = "Add additional entropy into the PRNG mix.\n\n Arguments:\n string -- binary string\n "
static char __pyx_doc_4dnet_4rand_uint8 [] = "Return a random 8-bit integer."
static char __pyx_doc_4dnet_4rand_uint16 [] = "Return a random 16-bit integer."
static char __pyx_doc_4dnet_4rand_uint32 [] = "Return a random 32-bit integer."
static char __pyx_doc_4dnet_4rand_xrange [] = "xrange([start,] stop) -> xrange object\n\n Return a random permutation iterator to walk an unsigned integer range,\n like xrange().\n "
static PyObject * __pyx_k119p
static PyObject * __pyx_k120p
static char __pyx_doc_4dnet_3tun_fileno [] = "Return file descriptor for tunnel handle."
static char __pyx_doc_4dnet_3tun_send [] = "Send an IP packet, returning the number of bytes sent\n or -1 on failure.\n\n Arguments:\n pkt -- binary string representing an IP packet\n "
static char __pyx_doc_4dnet_3tun_recv [] = "Return the next packet delivered to the tunnel interface."
static __Pyx_InternTabEntry __pyx_intern_tab []
static __Pyx_StringTabEntry __pyx_string_tab []
static struct PyMethodDef __pyx_methods_4dnet_eth []
static PyNumberMethods __pyx_tp_as_number_eth
static PySequenceMethods __pyx_tp_as_sequence_eth
static PyMappingMethods __pyx_tp_as_mapping_eth
static PyBufferProcs __pyx_tp_as_buffer_eth
static struct PyMethodDef __pyx_methods_4dnet_ip []
static PyNumberMethods __pyx_tp_as_number_ip
static PySequenceMethods __pyx_tp_as_sequence_ip
static PyMappingMethods __pyx_tp_as_mapping_ip
static PyBufferProcs __pyx_tp_as_buffer_ip
static struct PyMethodDef __pyx_methods_4dnet_addr []
static struct PyGetSetDef __pyx_getsets_4dnet_addr []
static PyNumberMethods __pyx_tp_as_number_addr
static PySequenceMethods __pyx_tp_as_sequence_addr
static PyMappingMethods __pyx_tp_as_mapping_addr
static PyBufferProcs __pyx_tp_as_buffer_addr
static struct PyMethodDef __pyx_methods_4dnet___addr_ip4_iter []
static PyNumberMethods __pyx_tp_as_number___addr_ip4_iter
static PySequenceMethods __pyx_tp_as_sequence___addr_ip4_iter
static PyMappingMethods __pyx_tp_as_mapping___addr_ip4_iter
static PyBufferProcs __pyx_tp_as_buffer___addr_ip4_iter
static struct PyMethodDef __pyx_methods_4dnet_arp []
static PyNumberMethods __pyx_tp_as_number_arp
static PySequenceMethods __pyx_tp_as_sequence_arp
static PyMappingMethods __pyx_tp_as_mapping_arp
static PyBufferProcs __pyx_tp_as_buffer_arp
static struct PyMethodDef __pyx_methods_4dnet_intf []
static PyNumberMethods __pyx_tp_as_number_intf
static PySequenceMethods __pyx_tp_as_sequence_intf
static PyMappingMethods __pyx_tp_as_mapping_intf
static PyBufferProcs __pyx_tp_as_buffer_intf
static struct PyMethodDef __pyx_methods_4dnet_route []
static PyNumberMethods __pyx_tp_as_number_route
static PySequenceMethods __pyx_tp_as_sequence_route
static PyMappingMethods __pyx_tp_as_mapping_route
static PyBufferProcs __pyx_tp_as_buffer_route
static struct PyMethodDef __pyx_methods_4dnet_fw []
static PyNumberMethods __pyx_tp_as_number_fw
static PySequenceMethods __pyx_tp_as_sequence_fw
static PyMappingMethods __pyx_tp_as_mapping_fw
static PyBufferProcs __pyx_tp_as_buffer_fw
static struct PyMethodDef __pyx_methods_4dnet_rand []
static PyNumberMethods __pyx_tp_as_number_rand
static PySequenceMethods __pyx_tp_as_sequence_rand
static PyMappingMethods __pyx_tp_as_mapping_rand
static PyBufferProcs __pyx_tp_as_buffer_rand
static struct PyMethodDef __pyx_methods_4dnet___rand_xrange []
static PyNumberMethods __pyx_tp_as_number___rand_xrange
static PySequenceMethods __pyx_tp_as_sequence___rand_xrange
static PyMappingMethods __pyx_tp_as_mapping___rand_xrange
static PyBufferProcs __pyx_tp_as_buffer___rand_xrange
static struct PyMethodDef __pyx_methods_4dnet_tun []
static struct PyGetSetDef __pyx_getsets_4dnet_tun []
static PyNumberMethods __pyx_tp_as_number_tun
static PySequenceMethods __pyx_tp_as_sequence_tun
static PyMappingMethods __pyx_tp_as_mapping_tun
static PyBufferProcs __pyx_tp_as_buffer_tun
static struct PyMethodDef __pyx_methods []
static char * __pyx_filenames []


Define Documentation

#define PY_LONG_LONG   LONG_LONG
 

Definition at line 6 of file dnet.c.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
__pyx_e_4dnet_TEADELTA 
__pyx_e_4dnet_TEAROUNDS 
__pyx_e_4dnet_TEASBOXSIZE 
__pyx_e_4dnet_TEASBOXSHIFT 

Definition at line 44 of file dnet.c.


Function Documentation

static void __Pyx_AddTraceback char *  funcname  )  [static]
 

Definition at line 9272 of file dnet.c.

References __pyx_filename, __pyx_lineno, and __pyx_m.

Referenced by __pyx_f_4dnet_13__rand_xrange___init__(), __pyx_f_4dnet_13__rand_xrange___iter__(), __pyx_f_4dnet_13__rand_xrange___len__(), __pyx_f_4dnet_13__rand_xrange___next__(), __pyx_f_4dnet_15__addr_ip4_iter___init__(), __pyx_f_4dnet_15__addr_ip4_iter___next__(), __pyx_f_4dnet_2fw___dealloc__(), __pyx_f_4dnet_2fw___init__(), __pyx_f_4dnet_2fw___iter__(), __pyx_f_4dnet_2fw_add(), __pyx_f_4dnet_2fw_delete(), __pyx_f_4dnet_2fw_loop(), __pyx_f_4dnet_2ip___dealloc__(), __pyx_f_4dnet_2ip___init__(), __pyx_f_4dnet_2ip_send(), __pyx_f_4dnet_3arp___dealloc__(), __pyx_f_4dnet_3arp___init__(), __pyx_f_4dnet_3arp___iter__(), __pyx_f_4dnet_3arp_add(), __pyx_f_4dnet_3arp_delete(), __pyx_f_4dnet_3arp_get(), __pyx_f_4dnet_3arp_loop(), __pyx_f_4dnet_3eth___dealloc__(), __pyx_f_4dnet_3eth___init__(), __pyx_f_4dnet_3eth_get(), __pyx_f_4dnet_3eth_send(), __pyx_f_4dnet_3eth_set(), __pyx_f_4dnet_3tun_2fd___get__(), __pyx_f_4dnet_3tun_4name___get__(), __pyx_f_4dnet_3tun___dealloc__(), __pyx_f_4dnet_3tun___init__(), __pyx_f_4dnet_3tun_close(), __pyx_f_4dnet_3tun_fileno(), __pyx_f_4dnet_3tun_recv(), __pyx_f_4dnet_3tun_send(), __pyx_f_4dnet_4addr_2ip___get__(), __pyx_f_4dnet_4addr_2ip___set__(), __pyx_f_4dnet_4addr_3eth___get__(), __pyx_f_4dnet_4addr_3eth___set__(), __pyx_f_4dnet_4addr_3ip6___get__(), __pyx_f_4dnet_4addr_3ip6___set__(), __pyx_f_4dnet_4addr_4bits___get__(), __pyx_f_4dnet_4addr_4bits___set__(), __pyx_f_4dnet_4addr_4data___get__(), __pyx_f_4dnet_4addr_4type___get__(), __pyx_f_4dnet_4addr_4type___set__(), __pyx_f_4dnet_4addr___add__(), __pyx_f_4dnet_4addr___cmp__(), __pyx_f_4dnet_4addr___contains__(), __pyx_f_4dnet_4addr___copy__(), __pyx_f_4dnet_4addr___hash__(), __pyx_f_4dnet_4addr___init__(), __pyx_f_4dnet_4addr___int__(), __pyx_f_4dnet_4addr___iter__(), __pyx_f_4dnet_4addr___long__(), __pyx_f_4dnet_4addr___repr__(), __pyx_f_4dnet_4addr_bcast(), __pyx_f_4dnet_4addr_net(), __pyx_f_4dnet_4intf___dealloc__(), __pyx_f_4dnet_4intf___init__(), __pyx_f_4dnet_4intf___iter__(), __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_4intf_loop(), __pyx_f_4dnet_4intf_set(), __pyx_f_4dnet_4rand___dealloc__(), __pyx_f_4dnet_4rand___init__(), __pyx_f_4dnet_4rand_add(), __pyx_f_4dnet_4rand_get(), __pyx_f_4dnet_4rand_set(), __pyx_f_4dnet_4rand_uint16(), __pyx_f_4dnet_4rand_uint32(), __pyx_f_4dnet_4rand_uint8(), __pyx_f_4dnet_4rand_xrange(), __pyx_f_4dnet_5route___dealloc__(), __pyx_f_4dnet_5route___init__(), __pyx_f_4dnet_5route___iter__(), __pyx_f_4dnet_5route_add(), __pyx_f_4dnet_5route_delete(), __pyx_f_4dnet_5route_get(), __pyx_f_4dnet_5route_loop(), __pyx_f_4dnet___arp_callback(), __pyx_f_4dnet___fw_callback(), __pyx_f_4dnet___intf_callback(), __pyx_f_4dnet___iter_append(), __pyx_f_4dnet___memcpy(), __pyx_f_4dnet___oserror(), __pyx_f_4dnet___route_callback(), __pyx_f_4dnet_arp_pack_hdr_ethip(), __pyx_f_4dnet_dict_to_ifent(), __pyx_f_4dnet_dict_to_rule(), __pyx_f_4dnet_eth_aton(), __pyx_f_4dnet_eth_ntoa(), __pyx_f_4dnet_eth_pack_hdr(), __pyx_f_4dnet_icmp_pack_hdr(), __pyx_f_4dnet_ifent_to_dict(), __pyx_f_4dnet_ip6_aton(), __pyx_f_4dnet_ip6_checksum(), __pyx_f_4dnet_ip6_ntoa(), __pyx_f_4dnet_ip6_pack_hdr(), __pyx_f_4dnet_ip_aton(), __pyx_f_4dnet_ip_checksum(), __pyx_f_4dnet_ip_cksum_add(), __pyx_f_4dnet_ip_cksum_carry(), __pyx_f_4dnet_ip_ntoa(), __pyx_f_4dnet_ip_pack_hdr(), __pyx_f_4dnet_rule_to_dict(), __pyx_f_4dnet_tcp_pack_hdr(), __pyx_f_4dnet_udp_pack_hdr(), and DL_EXPORT().

static int __Pyx_ArgTypeTest PyObject *  obj,
PyTypeObject *  type,
int  none_allowed,
char *  name
[static]
 

Definition at line 9129 of file dnet.c.

Referenced by __pyx_f_4dnet_3arp_add(), __pyx_f_4dnet_3arp_delete(), __pyx_f_4dnet_3arp_get(), __pyx_f_4dnet_3tun___init__(), __pyx_f_4dnet_4addr___cmp__(), __pyx_f_4dnet_4addr___contains__(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_5route_add(), __pyx_f_4dnet_5route_delete(), and __pyx_f_4dnet_5route_get().

static PyObject* __Pyx_CreateClass PyObject *  bases,
PyObject *  dict,
PyObject *  name,
char *  modname
[static]
 

static int __Pyx_EndUnpack PyObject *  ,
int 
[static]
 

Definition at line 9237 of file dnet.c.

References __Pyx_UnpackError().

Referenced by __pyx_f_4dnet___arp_callback(), __pyx_f_4dnet___fw_callback(), __pyx_f_4dnet___intf_callback(), and __pyx_f_4dnet___route_callback().

static int __pyx_f_4dnet_13__rand_xrange___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5649 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_e_4dnet_TEASBOXSHIFT, __pyx_e_4dnet_TEASBOXSIZE, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), __pyx_obj_4dnet___rand_xrange::rand, and rand_get().

static PyObject * __pyx_f_4dnet_13__rand_xrange___iter__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 5779 of file dnet.c.

References __Pyx_AddTraceback().

static int __pyx_f_4dnet_13__rand_xrange___len__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 5803 of file dnet.c.

References __Pyx_AddTraceback().

static PyObject * __pyx_f_4dnet_13__rand_xrange___next__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 5822 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_e_4dnet_TEADELTA, __pyx_e_4dnet_TEAROUNDS, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), and __pyx_obj_4dnet___rand_xrange::start.

static int __pyx_f_4dnet_15__addr_ip4_iter___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 2687 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, and __pyx_lineno.

static PyObject * __pyx_f_4dnet_15__addr_ip4_iter___next__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 2721 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, __pyx_ptype_4dnet_addr, __Pyx_Raise(), __Pyx_TypeTest(), and __pyx_obj_4dnet___addr_ip4_iter::cur.

static void __pyx_f_4dnet_2fw___dealloc__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 5287 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_obj_4dnet_fw::fw, and fw_close().

Referenced by __pyx_tp_dealloc_4dnet_fw().

static int __pyx_f_4dnet_2fw___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5048 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), and fw_open().

static PyObject * __pyx_f_4dnet_2fw___iter__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 5232 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __pyx_m.

static PyObject * __pyx_f_4dnet_2fw_add PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5089 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_f_4dnet_dict_to_rule(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), fw_add(), and memset.

static PyObject * __pyx_f_4dnet_2fw_delete PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5138 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_f_4dnet_dict_to_rule(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), fw_delete(), and memset.

static PyObject * __pyx_f_4dnet_2fw_loop PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5187 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___fw_callback(), __pyx_filename, __pyx_k57, __pyx_lineno, and fw_loop().

static void __pyx_f_4dnet_2ip___dealloc__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 895 of file dnet.c.

References __Pyx_AddTraceback(), and ip_close().

Referenced by __pyx_tp_dealloc_4dnet_ip().

static int __pyx_f_4dnet_2ip___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 824 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), and ip_open().

static PyObject * __pyx_f_4dnet_2ip_send PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 865 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), and ip_send().

static void __pyx_f_4dnet_3arp___dealloc__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 3194 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_obj_4dnet_arp::arp, and arp_close().

Referenced by __pyx_tp_dealloc_4dnet_arp().

static int __pyx_f_4dnet_3arp___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 2897 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), and arp_open().

static PyObject * __pyx_f_4dnet_3arp___iter__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 3139 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __pyx_m.

static PyObject * __pyx_f_4dnet_3arp_add PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 2938 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_ptype_4dnet_addr, __Pyx_Raise(), arp_add(), arp_entry::arp_ha, and arp_entry::arp_pa.

static PyObject * __pyx_f_4dnet_3arp_delete PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 2991 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_ptype_4dnet_addr, __Pyx_Raise(), arp_delete(), and arp_entry::arp_pa.

static PyObject * __pyx_f_4dnet_3arp_get PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 3037 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_ptype_4dnet_addr, addr_ntoa(), arp_get(), arp_entry::arp_ha, and arp_entry::arp_pa.

static PyObject * __pyx_f_4dnet_3arp_loop PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 3091 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___arp_callback(), __pyx_filename, __pyx_k43, __pyx_lineno, and arp_loop().

static void __pyx_f_4dnet_3eth___dealloc__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 670 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_obj_4dnet_eth::eth, and eth_close().

Referenced by __pyx_tp_dealloc_4dnet_eth().

static int __pyx_f_4dnet_3eth___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 503 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), char(), and eth_open().

static PyObject * __pyx_f_4dnet_3eth_get PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 549 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), eth_addr::data, __pyx_obj_4dnet_eth::eth, and eth_get().

static PyObject * __pyx_f_4dnet_3eth_send PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 640 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), __pyx_obj_4dnet_eth::eth, and eth_send().

static PyObject * __pyx_f_4dnet_3eth_set PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 594 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), eth_addr::data, __pyx_obj_4dnet_eth::eth, and eth_set().

static PyObject * __pyx_f_4dnet_3tun_2fd___get__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 6004 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and tun_fileno().

Referenced by __pyx_getprop_4dnet_3tun_fd().

static PyObject * __pyx_f_4dnet_3tun_4name___get__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 5981 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and tun_name().

Referenced by __pyx_getprop_4dnet_3tun_name().

static void __pyx_f_4dnet_3tun___dealloc__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 6152 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_obj_4dnet_tun::buf, and tun_close().

Referenced by __pyx_tp_dealloc_4dnet_tun().

static int __pyx_f_4dnet_3tun___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5920 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_k59, __pyx_lineno, __pyx_ptype_4dnet_addr, __Pyx_Raise(), and tun_open().

static PyObject * __pyx_f_4dnet_3tun_close PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 6132 of file dnet.c.

References __Pyx_AddTraceback(), and tun_close().

static PyObject * __pyx_f_4dnet_3tun_fileno PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 6028 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and tun_fileno().

static PyObject * __pyx_f_4dnet_3tun_recv PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 6085 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), __pyx_obj_4dnet_tun::buf, __pyx_obj_4dnet_tun::mtu, and tun_recv().

static PyObject * __pyx_f_4dnet_3tun_send PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 6054 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), and tun_send().

static PyObject * __pyx_f_4dnet_4addr_2ip___get__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 1832 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, __Pyx_Raise(), and addr::addr_type.

Referenced by __pyx_getprop_4dnet_4addr_ip().

static int __pyx_f_4dnet_4addr_2ip___set__ PyObject *  __pyx_v_self,
PyObject *  __pyx_v_value
[static]
 

Definition at line 1880 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, and __Pyx_Raise().

Referenced by __pyx_setprop_4dnet_4addr_ip().

static PyObject * __pyx_f_4dnet_4addr_3eth___get__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 1723 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, __Pyx_Raise(), and addr::addr_type.

Referenced by __pyx_getprop_4dnet_4addr_eth().

static int __pyx_f_4dnet_4addr_3eth___set__ PyObject *  __pyx_v_self,
PyObject *  __pyx_v_value
[static]
 

Definition at line 1771 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, and __Pyx_Raise().

Referenced by __pyx_setprop_4dnet_4addr_eth().

static PyObject * __pyx_f_4dnet_4addr_3ip6___get__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 1957 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, __Pyx_Raise(), and addr::addr_type.

Referenced by __pyx_getprop_4dnet_4addr_ip6().

static int __pyx_f_4dnet_4addr_3ip6___set__ PyObject *  __pyx_v_self,
PyObject *  __pyx_v_value
[static]
 

Definition at line 2005 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, and __Pyx_Raise().

Referenced by __pyx_setprop_4dnet_4addr_ip6().

static PyObject * __pyx_f_4dnet_4addr_4bits___get__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 1579 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and addr::addr_bits.

Referenced by __pyx_getprop_4dnet_4addr_bits().

static int __pyx_f_4dnet_4addr_4bits___set__ PyObject *  __pyx_v_self,
PyObject *  __pyx_arg_value
[static]
 

Definition at line 1602 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __Pyx_Raise().

Referenced by __pyx_setprop_4dnet_4addr_bits().

static PyObject * __pyx_f_4dnet_4addr_4data___get__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 1643 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, __Pyx_Raise(), and addr::addr_type.

Referenced by __pyx_getprop_4dnet_4addr_data().

static PyObject * __pyx_f_4dnet_4addr_4type___get__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 1520 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and addr::addr_type.

Referenced by __pyx_getprop_4dnet_4addr_type().

static int __pyx_f_4dnet_4addr_4type___set__ PyObject *  __pyx_v_self,
PyObject *  __pyx_arg_value
[static]
 

Definition at line 1545 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __Pyx_Raise().

Referenced by __pyx_setprop_4dnet_4addr_type().

static PyObject * __pyx_f_4dnet_4addr___add__ PyObject *  __pyx_v_self,
PyObject *  __pyx_v_other
[static]
 

Definition at line 2147 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __Pyx_Raise().

static int __pyx_f_4dnet_4addr___cmp__ PyObject *  __pyx_v_x,
PyObject *  __pyx_v_y
[static]
 

Definition at line 2287 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_ptype_4dnet_addr, and addr_cmp().

static int __pyx_f_4dnet_4addr___contains__ PyObject *  __pyx_v_self,
PyObject *  __pyx_v_other
[static]
 

Definition at line 2336 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_ptype_4dnet_addr, addr_bcast(), addr_cmp(), and addr_net().

static PyObject * __pyx_f_4dnet_4addr___copy__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 2247 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and __pyx_ptype_4dnet_addr.

static long __pyx_f_4dnet_4addr___hash__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 2387 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, and addr::addr_type.

static int __pyx_f_4dnet_4addr___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 1448 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_k41, __pyx_k42, __pyx_lineno, __pyx_m, __Pyx_Raise(), addr_aton, and char().

static PyObject * __pyx_f_4dnet_4addr___int__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 2499 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, __Pyx_Raise(), and addr::addr_type.

static PyObject * __pyx_f_4dnet_4addr___iter__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 2578 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, __pyx_ptype_4dnet___addr_ip4_iter, __Pyx_Raise(), addr_bcast(), addr_net(), and addr::addr_type.

static PyObject * __pyx_f_4dnet_4addr___long__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 2545 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, and __pyx_lineno.

static PyObject * __pyx_f_4dnet_4addr___repr__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 2647 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, addr_ntoa(), and char().

static PyObject * __pyx_f_4dnet_4addr_bcast PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 2063 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_ptype_4dnet_addr, and addr_bcast().

static PyObject * __pyx_f_4dnet_4addr_net PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 2104 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_ptype_4dnet_addr, and addr_net().

static void __pyx_f_4dnet_4intf___dealloc__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 4206 of file dnet.c.

References __Pyx_AddTraceback(), intf, and intf_close().

Referenced by __pyx_tp_dealloc_4dnet_intf().

static int __pyx_f_4dnet_4intf___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 3837 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), and intf_open().

static PyObject * __pyx_f_4dnet_4intf___iter__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 4151 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __pyx_m.

static PyObject * __pyx_f_4dnet_4intf_get PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 3878 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_f_4dnet_ifent_to_dict(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), char(), intf, intf_get(), and strlcpy.

static PyObject * __pyx_f_4dnet_4intf_get_dst PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 3994 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_f_4dnet_ifent_to_dict(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_ptype_4dnet_addr, __Pyx_Raise(), char(), intf, and intf_get_dst().

static PyObject * __pyx_f_4dnet_4intf_get_src PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 3938 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_f_4dnet_ifent_to_dict(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_ptype_4dnet_addr, __Pyx_Raise(), char(), intf, and intf_get_src().

static PyObject * __pyx_f_4dnet_4intf_loop PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 4106 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___intf_callback(), __pyx_filename, __pyx_k55, __pyx_lineno, intf, and intf_loop().

static PyObject * __pyx_f_4dnet_4intf_set PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 4050 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_f_4dnet_dict_to_ifent(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), char(), intf, intf_set(), and memset.

static void __pyx_f_4dnet_4rand___dealloc__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 5621 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_obj_4dnet_rand::rand, and rand_close().

Referenced by __pyx_tp_dealloc_4dnet_rand().

static int __pyx_f_4dnet_4rand___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5309 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), and rand_open().

static PyObject * __pyx_f_4dnet_4rand_add PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5449 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), __pyx_obj_4dnet_rand::rand, and rand_add().

static PyObject * __pyx_f_4dnet_4rand_get PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5350 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), __pyx_obj_4dnet_rand::rand, and rand_get().

static PyObject * __pyx_f_4dnet_4rand_set PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5423 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), __pyx_obj_4dnet_rand::rand, and rand_set().

static PyObject * __pyx_f_4dnet_4rand_uint16 PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5501 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_obj_4dnet_rand::rand, and rand_uint16().

static PyObject * __pyx_f_4dnet_4rand_uint32 PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5527 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_obj_4dnet_rand::rand, and rand_uint32().

static PyObject * __pyx_f_4dnet_4rand_uint8 PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5475 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_obj_4dnet_rand::rand, and rand_uint8().

static PyObject * __pyx_f_4dnet_4rand_xrange PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 5553 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_k58, __pyx_lineno, and __pyx_ptype_4dnet___rand_xrange.

static void __pyx_f_4dnet_5route___dealloc__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 4627 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_obj_4dnet_route::route, and route_close().

Referenced by __pyx_tp_dealloc_4dnet_route().

static int __pyx_f_4dnet_5route___init__ PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 4333 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), and route_open().

static PyObject * __pyx_f_4dnet_5route___iter__ PyObject *  __pyx_v_self  )  [static]
 

Definition at line 4572 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __pyx_m.

static PyObject * __pyx_f_4dnet_5route_add PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 4374 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_ptype_4dnet_addr, __Pyx_Raise(), route_add(), route_entry::route_dst, and route_entry::route_gw.

static PyObject * __pyx_f_4dnet_5route_delete PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 4427 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_b, __pyx_f, __pyx_f_4dnet___oserror(), __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_ptype_4dnet_addr, __Pyx_Raise(), route_delete(), and route_entry::route_dst.

static PyObject * __pyx_f_4dnet_5route_get PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 4473 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_ArgTypeTest(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_ptype_4dnet_addr, addr_ntoa(), route_entry::route_dst, route_get(), and route_entry::route_gw.

static PyObject * __pyx_f_4dnet_5route_loop PyObject *  __pyx_v_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 4527 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___route_callback(), __pyx_filename, __pyx_k56, __pyx_lineno, and route_loop().

static int __pyx_f_4dnet___arp_callback struct arp_entry __pyx_v_entry,
void *  __pyx_v_arg
[static]
 

Definition at line 2791 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_EndUnpack(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_ptype_4dnet_addr, __Pyx_UnpackItem(), arp_entry::arp_ha, and arp_entry::arp_pa.

Referenced by __pyx_f_4dnet_3arp_loop().

static int __pyx_f_4dnet___fw_callback struct fw_rule __pyx_v_rule,
void *  __pyx_v_arg
[static]
 

Definition at line 4972 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_EndUnpack(), __pyx_f, __pyx_f_4dnet_rule_to_dict(), __pyx_filename, __pyx_lineno, and __Pyx_UnpackItem().

Referenced by __pyx_f_4dnet_2fw_loop().

static int __pyx_f_4dnet___intf_callback struct intf_entry __pyx_v_entry,
void *  __pyx_v_arg
[static]
 

Definition at line 3761 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_EndUnpack(), __pyx_f, __pyx_f_4dnet_ifent_to_dict(), __pyx_filename, __pyx_lineno, and __Pyx_UnpackItem().

Referenced by __pyx_f_4dnet_4intf_loop().

static PyObject * __pyx_f_4dnet___iter_append PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 464 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, and __pyx_lineno.

static PyObject* __pyx_f_4dnet___memcpy char *  __pyx_v_dst,
PyObject *  __pyx_v_src,
int  __pyx_v_n
[static]
 

Definition at line 392 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), char(), and memcpy.

static PyObject* __pyx_f_4dnet___memcpy char(*)  ,
PyObject *  ,
int 
[static]
 

Referenced by __pyx_f_4dnet_3eth_set(), __pyx_f_4dnet_4addr_2ip___set__(), __pyx_f_4dnet_4addr_3eth___set__(), __pyx_f_4dnet_4addr_3ip6___set__(), __pyx_f_4dnet_arp_pack_hdr_ethip(), __pyx_f_4dnet_eth_ntoa(), __pyx_f_4dnet_eth_pack_hdr(), __pyx_f_4dnet_ip6_ntoa(), __pyx_f_4dnet_ip6_pack_hdr(), __pyx_f_4dnet_ip_ntoa(), and __pyx_f_4dnet_ip_pack_hdr().

static PyObject * __pyx_f_4dnet___oserror void   )  [static]
 

Definition at line 440 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and errno.

Referenced by __pyx_f_4dnet_2fw___init__(), __pyx_f_4dnet_2fw_add(), __pyx_f_4dnet_2fw_delete(), __pyx_f_4dnet_2ip___init__(), __pyx_f_4dnet_3arp___init__(), __pyx_f_4dnet_3arp_add(), __pyx_f_4dnet_3arp_delete(), __pyx_f_4dnet_3eth___init__(), __pyx_f_4dnet_3eth_get(), __pyx_f_4dnet_3eth_set(), __pyx_f_4dnet_3tun___init__(), __pyx_f_4dnet_3tun_recv(), __pyx_f_4dnet_4intf___init__(), __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_4intf_set(), __pyx_f_4dnet_4rand___init__(), __pyx_f_4dnet_5route___init__(), __pyx_f_4dnet_5route_add(), and __pyx_f_4dnet_5route_delete().

static int __pyx_f_4dnet___route_callback struct route_entry __pyx_v_entry,
void *  __pyx_v_arg
[static]
 

Definition at line 4227 of file dnet.c.

References __Pyx_AddTraceback(), __Pyx_EndUnpack(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_ptype_4dnet_addr, __Pyx_UnpackItem(), route_entry::route_dst, and route_entry::route_gw.

Referenced by __pyx_f_4dnet_5route_loop().

static PyObject * __pyx_f_4dnet_arp_pack_hdr_ethip PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 3217 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __pyx_k44, __pyx_k45, __pyx_k46, __pyx_k47, __pyx_k48, __pyx_lineno, arp_pack_hdr_ethip, char(), and eth_addr::data.

static PyObject* __pyx_f_4dnet_dict_to_ifent PyObject *  __pyx_v_d,
struct intf_entry __pyx_v_entry
[static]
 

Definition at line 3619 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, char(), intf_entry::intf_addr, intf_entry::intf_alias_num, intf_entry::intf_dst_addr, intf_entry::intf_flags, intf_entry::intf_link_addr, intf_entry::intf_mtu, intf_entry::intf_name, and strlcpy.

static PyObject* __pyx_f_4dnet_dict_to_ifent PyObject *  ,
struct   intf_entry(*)
[static]
 

Referenced by __pyx_f_4dnet_4intf_set().

static PyObject* __pyx_f_4dnet_dict_to_rule PyObject *  __pyx_v_d,
struct fw_rule __pyx_v_rule
[static]
 

Definition at line 4808 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, char(), fw_rule::fw_device, fw_rule::fw_dir, fw_rule::fw_dport, fw_rule::fw_dst, fw_rule::fw_op, fw_rule::fw_proto, fw_rule::fw_sport, fw_rule::fw_src, and strlcpy.

static PyObject* __pyx_f_4dnet_dict_to_rule PyObject *  ,
struct   fw_rule(*)
[static]
 

Referenced by __pyx_f_4dnet_2fw_add(), and __pyx_f_4dnet_2fw_delete().

static PyObject * __pyx_f_4dnet_eth_aton PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 729 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), char(), eth_addr::data, and eth_aton.

static PyObject * __pyx_f_4dnet_eth_ntoa PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 693 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __pyx_lineno, eth_addr::data, and eth_ntoa().

static PyObject * __pyx_f_4dnet_eth_pack_hdr PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 773 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __pyx_k16, __pyx_k17, __pyx_k18, __pyx_lineno, char(), eth_addr::data, and eth_pack_hdr.

static PyObject * __pyx_f_4dnet_icmp_pack_hdr PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 3287 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), and icmp_pack_hdr.

static PyObject* __pyx_f_4dnet_ifent_to_dict struct intf_entry __pyx_v_entry  )  [static]
 

Definition at line 3445 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, __pyx_ptype_4dnet_addr, addr_ntoa(), addr::addr_type, intf_entry::intf_addr, intf_entry::intf_alias_num, intf_entry::intf_dst_addr, intf_entry::intf_flags, intf_entry::intf_link_addr, intf_entry::intf_mtu, intf_entry::intf_name, and intf_entry::intf_type.

static PyObject* __pyx_f_4dnet_ifent_to_dict struct   intf_entry(*)  )  [static]
 

Referenced by __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), and __pyx_f_4dnet___intf_callback().

static PyObject * __pyx_f_4dnet_ip6_aton PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 1294 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), char(), and ip6_aton.

static PyObject * __pyx_f_4dnet_ip6_checksum PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 1338 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), and ip6_checksum().

static PyObject * __pyx_f_4dnet_ip6_ntoa PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 1258 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __pyx_lineno, and ip6_ntoa().

static PyObject * __pyx_f_4dnet_ip6_pack_hdr PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 1367 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __pyx_k34, __pyx_k35, __pyx_k36, __pyx_k37, __pyx_k38, __pyx_k39, __pyx_k40, __pyx_lineno, char(), and ip6_pack_hdr.

static PyObject * __pyx_f_4dnet_ip_aton PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 976 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), char(), and ip_aton.

static PyObject * __pyx_f_4dnet_ip_checksum PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 1022 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), char(), ip_checksum(), and memcpy.

static PyObject * __pyx_f_4dnet_ip_cksum_add PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 1106 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __Pyx_Raise(), char(), and ip_cksum_add().

static PyObject * __pyx_f_4dnet_ip_cksum_carry PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 1151 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and ip_cksum_carry.

static PyObject * __pyx_f_4dnet_ip_ntoa PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 918 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __pyx_lineno, ip_ntoa(), and memcpy.

static PyObject * __pyx_f_4dnet_ip_pack_hdr PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 1176 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __pyx_k24, __pyx_k25, __pyx_k26, __pyx_k27, __pyx_k28, __pyx_k29, __pyx_k30, __pyx_k31, __pyx_lineno, char(), and ip_pack_hdr.

static PyObject* __pyx_f_4dnet_rule_to_dict struct fw_rule __pyx_v_rule  )  [static]
 

Definition at line 4658 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, __pyx_m, __pyx_ptype_4dnet_addr, addr_ntoa(), addr::addr_type, fw_rule::fw_device, fw_rule::fw_dir, fw_rule::fw_dport, fw_rule::fw_dst, fw_rule::fw_op, fw_rule::fw_proto, fw_rule::fw_sport, and fw_rule::fw_src.

static PyObject* __pyx_f_4dnet_rule_to_dict struct   fw_rule(*)  )  [static]
 

Referenced by __pyx_f_4dnet___fw_callback().

static PyObject * __pyx_f_4dnet_tcp_pack_hdr PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 3325 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_k49, __pyx_k50, __pyx_k51, __pyx_k52, __pyx_k53, __pyx_lineno, char(), and tcp_pack_hdr.

static PyObject * __pyx_f_4dnet_udp_pack_hdr PyObject *  __pyx_self,
PyObject *  __pyx_args,
PyObject *  __pyx_kwds
[static]
 

Definition at line 3393 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_k54, __pyx_lineno, char(), and udp_pack_hdr.

static PyObject* __Pyx_GetExcValue void   )  [static]
 

static PyObject * __Pyx_GetName PyObject *  dict,
PyObject *  name
[static]
 

Definition at line 9142 of file dnet.c.

Referenced by __pyx_f_4dnet_13__rand_xrange___init__(), __pyx_f_4dnet_13__rand_xrange___next__(), __pyx_f_4dnet_15__addr_ip4_iter___next__(), __pyx_f_4dnet_2fw___init__(), __pyx_f_4dnet_2fw___iter__(), __pyx_f_4dnet_2fw_add(), __pyx_f_4dnet_2fw_delete(), __pyx_f_4dnet_2ip___init__(), __pyx_f_4dnet_3arp___init__(), __pyx_f_4dnet_3arp___iter__(), __pyx_f_4dnet_3arp_add(), __pyx_f_4dnet_3arp_delete(), __pyx_f_4dnet_3eth___init__(), __pyx_f_4dnet_3eth_get(), __pyx_f_4dnet_3eth_set(), __pyx_f_4dnet_3tun___init__(), __pyx_f_4dnet_3tun_recv(), __pyx_f_4dnet_4addr_2ip___get__(), __pyx_f_4dnet_4addr_2ip___set__(), __pyx_f_4dnet_4addr_3eth___get__(), __pyx_f_4dnet_4addr_3eth___set__(), __pyx_f_4dnet_4addr_3ip6___get__(), __pyx_f_4dnet_4addr_3ip6___set__(), __pyx_f_4dnet_4addr_4bits___set__(), __pyx_f_4dnet_4addr_4data___get__(), __pyx_f_4dnet_4addr_4type___set__(), __pyx_f_4dnet_4addr___add__(), __pyx_f_4dnet_4addr___hash__(), __pyx_f_4dnet_4addr___init__(), __pyx_f_4dnet_4addr___int__(), __pyx_f_4dnet_4addr___iter__(), __pyx_f_4dnet_4intf___init__(), __pyx_f_4dnet_4intf___iter__(), __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_4intf_set(), __pyx_f_4dnet_4rand___init__(), __pyx_f_4dnet_5route___init__(), __pyx_f_4dnet_5route___iter__(), __pyx_f_4dnet_5route_add(), __pyx_f_4dnet_5route_delete(), __pyx_f_4dnet___memcpy(), __pyx_f_4dnet_dict_to_ifent(), __pyx_f_4dnet_dict_to_rule(), __pyx_f_4dnet_eth_aton(), __pyx_f_4dnet_ifent_to_dict(), __pyx_f_4dnet_ip6_aton(), __pyx_f_4dnet_ip_aton(), __pyx_f_4dnet_ip_checksum(), __pyx_f_4dnet_ip_cksum_add(), __pyx_f_4dnet_rule_to_dict(), and DL_EXPORT().

static PyObject* __pyx_getprop_4dnet_3tun_fd PyObject *  o,
void *  x
[static]
 

Definition at line 8029 of file dnet.c.

References __pyx_f_4dnet_3tun_2fd___get__().

static PyObject* __pyx_getprop_4dnet_3tun_name PyObject *  o,
void *  x
[static]
 

Definition at line 8025 of file dnet.c.

References __pyx_f_4dnet_3tun_4name___get__().

static PyObject* __pyx_getprop_4dnet_4addr_bits PyObject *  o,
void *  x
[static]
 

Definition at line 6739 of file dnet.c.

References __pyx_f_4dnet_4addr_4bits___get__().

static PyObject* __pyx_getprop_4dnet_4addr_data PyObject *  o,
void *  x
[static]
 

Definition at line 6753 of file dnet.c.

References __pyx_f_4dnet_4addr_4data___get__().

static PyObject* __pyx_getprop_4dnet_4addr_eth PyObject *  o,
void *  x
[static]
 

Definition at line 6757 of file dnet.c.

References __pyx_f_4dnet_4addr_3eth___get__().

static PyObject* __pyx_getprop_4dnet_4addr_ip PyObject *  o,
void *  x
[static]
 

Definition at line 6771 of file dnet.c.

References __pyx_f_4dnet_4addr_2ip___get__().

static PyObject* __pyx_getprop_4dnet_4addr_ip6 PyObject *  o,
void *  x
[static]
 

Definition at line 6785 of file dnet.c.

References __pyx_f_4dnet_4addr_3ip6___get__().

static PyObject* __pyx_getprop_4dnet_4addr_type PyObject *  o,
void *  x
[static]
 

Definition at line 6725 of file dnet.c.

References __pyx_f_4dnet_4addr_4type___get__().

static int __Pyx_GetStarArgs PyObject **  args,
PyObject **  kwds,
char *  kwd_list[],
int  nargs,
PyObject **  args2,
PyObject **  kwds2
[static]
 

static int __Pyx_GetVtable PyObject *  dict,
void *  vtabptr
[static]
 

static PyObject* __Pyx_Import PyObject *  name,
PyObject *  from_list
[static]
 

static PyTypeObject* __Pyx_ImportType char *  module_name,
char *  class_name,
long  size
[static]
 

static int __Pyx_InitStrings __Pyx_StringTabEntry t  )  [static]
 

Definition at line 9258 of file dnet.c.

References __Pyx_StringTabEntry::n, __Pyx_StringTabEntry::p, and __Pyx_StringTabEntry::s.

Referenced by DL_EXPORT().

static int __Pyx_InternStrings __Pyx_InternTabEntry t  )  [static]
 

Definition at line 9248 of file dnet.c.

References __Pyx_InternTabEntry::p, and __Pyx_InternTabEntry::s.

Referenced by DL_EXPORT().

static int __Pyx_PrintItem PyObject *   )  [static]
 

static int __Pyx_PrintNewline void   )  [static]
 

static void __Pyx_Raise PyObject *  type,
PyObject *  value,
PyObject *  tb
[static]
 

Definition at line 9150 of file dnet.c.

References NULL.

Referenced by __pyx_f_4dnet_13__rand_xrange___init__(), __pyx_f_4dnet_13__rand_xrange___next__(), __pyx_f_4dnet_15__addr_ip4_iter___next__(), __pyx_f_4dnet_2fw___init__(), __pyx_f_4dnet_2fw_add(), __pyx_f_4dnet_2fw_delete(), __pyx_f_4dnet_2ip___init__(), __pyx_f_4dnet_3arp___init__(), __pyx_f_4dnet_3arp_add(), __pyx_f_4dnet_3arp_delete(), __pyx_f_4dnet_3eth___init__(), __pyx_f_4dnet_3eth_get(), __pyx_f_4dnet_3eth_set(), __pyx_f_4dnet_3tun___init__(), __pyx_f_4dnet_3tun_recv(), __pyx_f_4dnet_4addr_2ip___get__(), __pyx_f_4dnet_4addr_2ip___set__(), __pyx_f_4dnet_4addr_3eth___get__(), __pyx_f_4dnet_4addr_3eth___set__(), __pyx_f_4dnet_4addr_3ip6___get__(), __pyx_f_4dnet_4addr_3ip6___set__(), __pyx_f_4dnet_4addr_4bits___set__(), __pyx_f_4dnet_4addr_4data___get__(), __pyx_f_4dnet_4addr_4type___set__(), __pyx_f_4dnet_4addr___add__(), __pyx_f_4dnet_4addr___init__(), __pyx_f_4dnet_4addr___int__(), __pyx_f_4dnet_4addr___iter__(), __pyx_f_4dnet_4intf___init__(), __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_4intf_set(), __pyx_f_4dnet_4rand___init__(), __pyx_f_4dnet_5route___init__(), __pyx_f_4dnet_5route_add(), __pyx_f_4dnet_5route_delete(), __pyx_f_4dnet___memcpy(), __pyx_f_4dnet_eth_aton(), __pyx_f_4dnet_ip6_aton(), __pyx_f_4dnet_ip_aton(), __pyx_f_4dnet_ip_checksum(), and __pyx_f_4dnet_ip_cksum_add().

static void __Pyx_ReRaise void   )  [static]
 

static int __pyx_setprop_4dnet_4addr_bits PyObject *  o,
PyObject *  v,
void *  x
[static]
 

Definition at line 6743 of file dnet.c.

References __pyx_f_4dnet_4addr_4bits___set__().

static int __pyx_setprop_4dnet_4addr_eth PyObject *  o,
PyObject *  v,
void *  x
[static]
 

Definition at line 6761 of file dnet.c.

References __pyx_f_4dnet_4addr_3eth___set__().

static int __pyx_setprop_4dnet_4addr_ip PyObject *  o,
PyObject *  v,
void *  x
[static]
 

Definition at line 6775 of file dnet.c.

References __pyx_f_4dnet_4addr_2ip___set__().

static int __pyx_setprop_4dnet_4addr_ip6 PyObject *  o,
PyObject *  v,
void *  x
[static]
 

Definition at line 6789 of file dnet.c.

References __pyx_f_4dnet_4addr_3ip6___set__().

static int __pyx_setprop_4dnet_4addr_type PyObject *  o,
PyObject *  v,
void *  x
[static]
 

Definition at line 6729 of file dnet.c.

References __pyx_f_4dnet_4addr_4type___set__().

static int __Pyx_SetVtable PyObject *  dict,
void *  vtable
[static]
 

static int __pyx_tp_clear_4dnet___addr_ip4_iter PyObject *  o  )  [static]
 

Definition at line 6949 of file dnet.c.

static int __pyx_tp_clear_4dnet___rand_xrange PyObject *  o  )  [static]
 

Definition at line 7869 of file dnet.c.

static int __pyx_tp_clear_4dnet_addr PyObject *  o  )  [static]
 

Definition at line 6720 of file dnet.c.

static int __pyx_tp_clear_4dnet_arp PyObject *  o  )  [static]
 

Definition at line 7100 of file dnet.c.

static int __pyx_tp_clear_4dnet_eth PyObject *  o  )  [static]
 

Definition at line 6423 of file dnet.c.

static int __pyx_tp_clear_4dnet_fw PyObject *  o  )  [static]
 

Definition at line 7566 of file dnet.c.

static int __pyx_tp_clear_4dnet_intf PyObject *  o  )  [static]
 

Definition at line 7255 of file dnet.c.

static int __pyx_tp_clear_4dnet_ip PyObject *  o  )  [static]
 

Definition at line 6577 of file dnet.c.

static int __pyx_tp_clear_4dnet_rand PyObject *  o  )  [static]
 

Definition at line 7720 of file dnet.c.

static int __pyx_tp_clear_4dnet_route PyObject *  o  )  [static]
 

Definition at line 7411 of file dnet.c.

static int __pyx_tp_clear_4dnet_tun PyObject *  o  )  [static]
 

Definition at line 8020 of file dnet.c.

static void __pyx_tp_dealloc_4dnet___addr_ip4_iter PyObject *  o  )  [static]
 

Definition at line 6938 of file dnet.c.

static void __pyx_tp_dealloc_4dnet___rand_xrange PyObject *  o  )  [static]
 

Definition at line 7858 of file dnet.c.

static void __pyx_tp_dealloc_4dnet_addr PyObject *  o  )  [static]
 

Definition at line 6709 of file dnet.c.

static void __pyx_tp_dealloc_4dnet_arp PyObject *  o  )  [static]
 

Definition at line 7080 of file dnet.c.

References __pyx_f_4dnet_3arp___dealloc__().

static void __pyx_tp_dealloc_4dnet_eth PyObject *  o  )  [static]
 

Definition at line 6403 of file dnet.c.

References __pyx_f_4dnet_3eth___dealloc__().

static void __pyx_tp_dealloc_4dnet_fw PyObject *  o  )  [static]
 

Definition at line 7546 of file dnet.c.

References __pyx_f_4dnet_2fw___dealloc__().

static void __pyx_tp_dealloc_4dnet_intf PyObject *  o  )  [static]
 

Definition at line 7235 of file dnet.c.

References __pyx_f_4dnet_4intf___dealloc__().

static void __pyx_tp_dealloc_4dnet_ip PyObject *  o  )  [static]
 

Definition at line 6557 of file dnet.c.

References __pyx_f_4dnet_2ip___dealloc__().

static void __pyx_tp_dealloc_4dnet_rand PyObject *  o  )  [static]
 

Definition at line 7700 of file dnet.c.

References __pyx_f_4dnet_4rand___dealloc__().

static void __pyx_tp_dealloc_4dnet_route PyObject *  o  )  [static]
 

Definition at line 7391 of file dnet.c.

References __pyx_f_4dnet_5route___dealloc__().

static void __pyx_tp_dealloc_4dnet_tun PyObject *  o  )  [static]
 

Definition at line 8000 of file dnet.c.

References __pyx_f_4dnet_3tun___dealloc__().

static PyObject* __pyx_tp_new_4dnet___addr_ip4_iter PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 6932 of file dnet.c.

static PyObject* __pyx_tp_new_4dnet___rand_xrange PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 7852 of file dnet.c.

static PyObject* __pyx_tp_new_4dnet_addr PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 6703 of file dnet.c.

static PyObject* __pyx_tp_new_4dnet_arp PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 7074 of file dnet.c.

static PyObject* __pyx_tp_new_4dnet_eth PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 6397 of file dnet.c.

static PyObject* __pyx_tp_new_4dnet_fw PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 7540 of file dnet.c.

static PyObject* __pyx_tp_new_4dnet_intf PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 7229 of file dnet.c.

static PyObject* __pyx_tp_new_4dnet_ip PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 6551 of file dnet.c.

static PyObject* __pyx_tp_new_4dnet_rand PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 7694 of file dnet.c.

static PyObject* __pyx_tp_new_4dnet_route PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 7385 of file dnet.c.

static PyObject* __pyx_tp_new_4dnet_tun PyTypeObject *  t,
PyObject *  a,
PyObject *  k
[static]
 

Definition at line 7994 of file dnet.c.

static int __pyx_tp_traverse_4dnet___addr_ip4_iter PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 6943 of file dnet.c.

static int __pyx_tp_traverse_4dnet___rand_xrange PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 7863 of file dnet.c.

static int __pyx_tp_traverse_4dnet_addr PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 6714 of file dnet.c.

static int __pyx_tp_traverse_4dnet_arp PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 7094 of file dnet.c.

static int __pyx_tp_traverse_4dnet_eth PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 6417 of file dnet.c.

static int __pyx_tp_traverse_4dnet_fw PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 7560 of file dnet.c.

static int __pyx_tp_traverse_4dnet_intf PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 7249 of file dnet.c.

static int __pyx_tp_traverse_4dnet_ip PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 6571 of file dnet.c.

static int __pyx_tp_traverse_4dnet_rand PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 7714 of file dnet.c.

static int __pyx_tp_traverse_4dnet_route PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 7405 of file dnet.c.

static int __pyx_tp_traverse_4dnet_tun PyObject *  o,
visitproc  v,
void *  a
[static]
 

Definition at line 8014 of file dnet.c.

static int __Pyx_TypeTest PyObject *  obj,
PyTypeObject *  type
[static]
 

Definition at line 9212 of file dnet.c.

Referenced by __pyx_f_4dnet_15__addr_ip4_iter___next__().

static void __Pyx_UnpackError void   )  [static]
 

Definition at line 9224 of file dnet.c.

Referenced by __Pyx_EndUnpack(), and __Pyx_UnpackItem().

static PyObject * __Pyx_UnpackItem PyObject *  ,
int 
[static]
 

Definition at line 9228 of file dnet.c.

References __Pyx_UnpackError().

Referenced by __pyx_f_4dnet___arp_callback(), __pyx_f_4dnet___fw_callback(), __pyx_f_4dnet___intf_callback(), and __pyx_f_4dnet___route_callback().

static void __Pyx_WriteUnraisable char *  name  )  [static]
 

static char __pyx_k9  []  )  [static]
 

static char __pyx_k8  []  )  [static]
 

static char __pyx_k7  []  )  = "non-IPv6 address" [static]
 

static char __pyx_k6  []  )  = "not a %d-byte binary string: %r" [static]
 

static char __pyx_k5  []  )  [static]
 

static char __pyx_k4  []  )  [static]
 

static char __pyx_k3  []  )  = "\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000" [static]
 

static char __pyx_k2  []  )  = "\x0ff\x0ff\x0ff\x0ff" [static]
 

static char __pyx_k1  []  )  = "Copyright (c) 2003 Dug Song" [static]
 

Referenced by __pyx_f_4dnet_2ip_send(), __pyx_f_4dnet_3eth___init__(), __pyx_f_4dnet_3eth_send(), __pyx_f_4dnet_3tun_send(), __pyx_f_4dnet_4addr___init__(), __pyx_f_4dnet_4addr___repr__(), __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_4intf_set(), __pyx_f_4dnet_4rand_add(), __pyx_f_4dnet_4rand_get(), __pyx_f_4dnet_4rand_set(), __pyx_f_4dnet___memcpy(), __pyx_f_4dnet_arp_pack_hdr_ethip(), __pyx_f_4dnet_dict_to_ifent(), __pyx_f_4dnet_dict_to_rule(), __pyx_f_4dnet_eth_aton(), __pyx_f_4dnet_eth_pack_hdr(), __pyx_f_4dnet_icmp_pack_hdr(), __pyx_f_4dnet_ip6_aton(), __pyx_f_4dnet_ip6_checksum(), __pyx_f_4dnet_ip6_pack_hdr(), __pyx_f_4dnet_ip_aton(), __pyx_f_4dnet_ip_checksum(), __pyx_f_4dnet_ip_cksum_add(), __pyx_f_4dnet_ip_pack_hdr(), __pyx_f_4dnet_tcp_pack_hdr(), __pyx_f_4dnet_udp_pack_hdr(), BoFind(), BoGetDirection(), CreateTCPFlagString(), init_codes(), init_xlatcase(), InitProtoNames(), make_skip(), mSearch(), mSearchCI(), mSearchREG(), mSplit(), NormalizeTelnet(), PrintNetData(), and TreeFind().

DL_EXPORT void   ) 
 

Definition at line 8185 of file dnet.c.

References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __Pyx_InitStrings(), __Pyx_InternStrings(), __pyx_k16, __pyx_k17, __pyx_k18, __pyx_k24, __pyx_k25, __pyx_k26, __pyx_k27, __pyx_k28, __pyx_k29, __pyx_k30, __pyx_k31, __pyx_k34, __pyx_k35, __pyx_k36, __pyx_k37, __pyx_k38, __pyx_k39, __pyx_k40, __pyx_k41, __pyx_k42, __pyx_k43, __pyx_k44, __pyx_k45, __pyx_k46, __pyx_k47, __pyx_k48, __pyx_k49, __pyx_k50, __pyx_k51, __pyx_k52, __pyx_k53, __pyx_k54, __pyx_k55, __pyx_k56, __pyx_k57, __pyx_k58, __pyx_k59, __pyx_lineno, __pyx_m, __pyx_mdoc, __pyx_ptype_4dnet___addr_ip4_iter, __pyx_ptype_4dnet___rand_xrange, __pyx_ptype_4dnet_addr, __pyx_ptype_4dnet_arp, __pyx_ptype_4dnet_eth, __pyx_ptype_4dnet_fw, __pyx_ptype_4dnet_intf, __pyx_ptype_4dnet_ip, __pyx_ptype_4dnet_rand, __pyx_ptype_4dnet_route, and __pyx_ptype_4dnet_tun.

static int __pyx_f_4dnet___fw_callback(struct fw_rule(*), void(*))   )  [static]
 

static int __pyx_f_4dnet___route_callback(struct route_entry(*), void(*))   )  [static]
 

static int __pyx_f_4dnet___intf_callback(struct intf_entry(*), void(*))   )  [static]
 

static int __pyx_f_4dnet___arp_callback(struct arp_entry(*), void(*))   )  [static]
 

Referenced by BitStringOverflow(), boInitBITOP(), boInitStaticBITOP(), CalculateBasePerfStats(), CheckChunkEncoding(), CheckIpOptions(), CheckTagList(), computeDepth(), computeWithin(), CreatePidFile(), Database(), flowcache_init(), Frag3GlobalInit(), GetChar(), gettimeofday(), InitSessionCache(), Insert(), KTriePrefixMatch(), mwmPrepHashedPatternGroups(), PayloadSearchDepth(), PrintCharData(), PrintIpOptions(), PrintNetData(), PrintTcpOptions(), ProcessFlowbitsSize(), read_infile(), Rotate(), Select(), show_bytes(), snort_escape_string(), SnortEventqInit(), StrFound(), SwapNodes(), ubi_btInsert(), and ubi_btRemove().


Variable Documentation

PyObject* __pyx_b [static]
 

Definition at line 35 of file dnet.c.

Referenced by __pyx_f_4dnet_13__rand_xrange___init__(), __pyx_f_4dnet_13__rand_xrange___next__(), __pyx_f_4dnet_15__addr_ip4_iter___next__(), __pyx_f_4dnet_2fw___init__(), __pyx_f_4dnet_2fw___iter__(), __pyx_f_4dnet_2fw_add(), __pyx_f_4dnet_2fw_delete(), __pyx_f_4dnet_2ip___init__(), __pyx_f_4dnet_3arp___init__(), __pyx_f_4dnet_3arp___iter__(), __pyx_f_4dnet_3arp_add(), __pyx_f_4dnet_3arp_delete(), __pyx_f_4dnet_3eth___init__(), __pyx_f_4dnet_3eth_get(), __pyx_f_4dnet_3eth_set(), __pyx_f_4dnet_3tun___init__(), __pyx_f_4dnet_3tun_recv(), __pyx_f_4dnet_4addr_2ip___get__(), __pyx_f_4dnet_4addr_2ip___set__(), __pyx_f_4dnet_4addr_3eth___get__(), __pyx_f_4dnet_4addr_3eth___set__(), __pyx_f_4dnet_4addr_3ip6___get__(), __pyx_f_4dnet_4addr_3ip6___set__(), __pyx_f_4dnet_4addr_4bits___set__(), __pyx_f_4dnet_4addr_4data___get__(), __pyx_f_4dnet_4addr_4type___set__(), __pyx_f_4dnet_4addr___add__(), __pyx_f_4dnet_4addr___init__(), __pyx_f_4dnet_4addr___int__(), __pyx_f_4dnet_4addr___iter__(), __pyx_f_4dnet_4intf___init__(), __pyx_f_4dnet_4intf___iter__(), __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_4intf_set(), __pyx_f_4dnet_4rand___init__(), __pyx_f_4dnet_5route___init__(), __pyx_f_4dnet_5route___iter__(), __pyx_f_4dnet_5route_add(), __pyx_f_4dnet_5route_delete(), __pyx_f_4dnet___memcpy(), __pyx_f_4dnet_dict_to_ifent(), __pyx_f_4dnet_eth_aton(), __pyx_f_4dnet_ip6_aton(), __pyx_f_4dnet_ip_aton(), __pyx_f_4dnet_ip_checksum(), __pyx_f_4dnet_ip_cksum_add(), and DL_EXPORT().

char __pyx_doc_4dnet_2fw_add[] = "Add a firewall rule specified as a dict.\n\n Dict values:\n device -- interface name (string)\n op -- operation (FW_OP_*) (integer)\n dir -- direction (FW_DIR_*) (integer)\n proto -- IP protocol (IP_PROTO_*) (integer)\n src -- source address / net (addr object)\n dst -- destination address / net (addr object)\n sport -- source port range or ICMP type/mask (list of 2 integers)\n dport -- dest port range or ICMP code/mask (list of 2 integers)\n " [static]
 

Definition at line 5088 of file dnet.c.

char __pyx_doc_4dnet_2fw_delete[] = "Delete a firewall rule specified as a dict." [static]
 

Definition at line 5137 of file dnet.c.

char __pyx_doc_4dnet_2fw_loop[] = "Iterate over the local firewall ruleset, invoking a user callback\n with each entry, returning the status of the callback routine.\n\n Keyword arguments:\n callback -- callback function with (dict, arg) prototype.\n If this function returns a non-zero value, the loop\n will break early.\n arg -- optional callback argument\n " [static]
 

Definition at line 5186 of file dnet.c.

char __pyx_doc_4dnet_2ip_send[] = "Send an IP packet, returning the number of bytes sent\n or -1 on failure.\n\n Arguments:\n pkt -- binary string representing an IP packet\n " [static]
 

Definition at line 864 of file dnet.c.

char __pyx_doc_4dnet_3arp_add[] = "Add an entry to the system ARP table.\n\n Arguments:\n pa -- ADDR_TYPE_IP network address object\n ha -- ADDR_TYPE_ETH network address object\n " [static]
 

Definition at line 2937 of file dnet.c.

char __pyx_doc_4dnet_3arp_delete[] = "Delete an entry from the system ARP table.\n\n Arguments:\n pa -- ADDR_TYPE_IP network address object\n " [static]
 

Definition at line 2990 of file dnet.c.

char __pyx_doc_4dnet_3arp_get[] = "Return the hardware address for a given protocol address\n in the system ARP table.\n\n Arguments:\n pa -- ADDR_TYPE_IP network address object\n " [static]
 

Definition at line 3036 of file dnet.c.

char __pyx_doc_4dnet_3arp_loop[] = "Iterate over the system ARP table, invoking a user callback\n with each entry, returning the status of the callback routine.\n\n Keyword arguments:\n callback -- callback function with ((pa, ha), arg) prototype.\n If this function returns a non-zero value, the loop\n will break early.\n arg -- optional callback argument\n " [static]
 

Definition at line 3090 of file dnet.c.

char __pyx_doc_4dnet_3eth_get[] = "Return the MAC address associated with the device as a\n binary string." [static]
 

Definition at line 548 of file dnet.c.

char __pyx_doc_4dnet_3eth_send[] = "Send an Ethernet frame, returning the number of bytes sent\n or -1 on failure.\n \n Arguments:\n frame -- binary string representing an Ethernet frame\n " [static]
 

Definition at line 639 of file dnet.c.

char __pyx_doc_4dnet_3eth_set[] = "Set the MAC address for the device, returning 0 on success,\n -1 on failure.\n \n Arguments:\n eth_addr -- 6-byte binary string (e.g. \'\\x00\\xde\\xad\\xbe\\xef\\x00\')\n " [static]
 

Definition at line 593 of file dnet.c.

char __pyx_doc_4dnet_3tun_fileno[] = "Return file descriptor for tunnel handle." [static]
 

Definition at line 6027 of file dnet.c.

char __pyx_doc_4dnet_3tun_recv[] = "Return the next packet delivered to the tunnel interface." [static]
 

Definition at line 6084 of file dnet.c.

char __pyx_doc_4dnet_3tun_send[] = "Send an IP packet, returning the number of bytes sent\n or -1 on failure.\n\n Arguments:\n pkt -- binary string representing an IP packet\n " [static]
 

Definition at line 6053 of file dnet.c.

char __pyx_doc_4dnet_4addr_bcast[] = "Return an addr object for our broadcast address." [static]
 

Definition at line 2062 of file dnet.c.

char __pyx_doc_4dnet_4addr_net[] = "Return an addr object for our network address." [static]
 

Definition at line 2103 of file dnet.c.

char __pyx_doc_4dnet_4intf_get[] = "Return the configuration for a network interface as a dict.\n " [static]
 

Definition at line 3877 of file dnet.c.

char __pyx_doc_4dnet_4intf_get_dst[] = "Return the configuration for the best interface with which to\n reach the specified dst address.\n " [static]
 

Definition at line 3993 of file dnet.c.

char __pyx_doc_4dnet_4intf_get_src[] = "Return the configuration for the interface whose primary address\n matches the specified source address.\n " [static]
 

Definition at line 3937 of file dnet.c.

char __pyx_doc_4dnet_4intf_loop[] = "Iterate over the system interface table, invoking a user callback\n with each entry, returning the status of the callback routine.\n\n Keyword arguments:\n callback -- callback function with (dict, arg) prototype.\n If this function returns a non-zero value, the loop\n will break early.\n arg -- optional callback argument\n " [static]
 

Definition at line 4105 of file dnet.c.

char __pyx_doc_4dnet_4intf_set[] = "Set the configuration for an interface from a dict.\n\n Dict values:\n name -- name of interface to set (string)\n flags -- interface flags (INTF_FLAG_*) (integer bitmask)\n mtu -- interface MTU (integer)\n addr -- primary network address (addr object)\n dst_addr -- point-to-point dst address (addr object)\n link_addr -- link-layer address (addr object)\n alias_addrs -- additional network addresses (list of addr objects)\n " [static]
 

Definition at line 4049 of file dnet.c.

char __pyx_doc_4dnet_4rand_add[] = "Add additional entropy into the PRNG mix.\n\n Arguments:\n string -- binary string\n " [static]
 

Definition at line 5448 of file dnet.c.

char __pyx_doc_4dnet_4rand_get[] = "Return a string of random bytes.\n \n Arguments:\n len -- number of random bytes to generate\n " [static]
 

Definition at line 5349 of file dnet.c.

char __pyx_doc_4dnet_4rand_set[] = "Initialize the PRNG from a known seed.\n \n Arguments:\n string -- binary string seed value\n " [static]
 

Definition at line 5422 of file dnet.c.

char __pyx_doc_4dnet_4rand_uint16[] = "Return a random 16-bit integer." [static]
 

Definition at line 5500 of file dnet.c.

char __pyx_doc_4dnet_4rand_uint32[] = "Return a random 32-bit integer." [static]
 

Definition at line 5526 of file dnet.c.

char __pyx_doc_4dnet_4rand_uint8[] = "Return a random 8-bit integer." [static]
 

Definition at line 5474 of file dnet.c.

char __pyx_doc_4dnet_4rand_xrange[] = "xrange([start,] stop) -> xrange object\n\n Return a random permutation iterator to walk an unsigned integer range,\n like xrange().\n " [static]
 

Definition at line 5552 of file dnet.c.

char __pyx_doc_4dnet_5route_add[] = "Add an entry to the system routing table.\n\n Arguments:\n dst -- ADDR_TYPE_IP network address object\n gw -- ADDR_TYPE_IP network address object\n " [static]
 

Definition at line 4373 of file dnet.c.

char __pyx_doc_4dnet_5route_delete[] = "Delete an entry from the system routing table.\n\n Arguments:\n dst -- ADDR_TYPE_IP network address object\n " [static]
 

Definition at line 4426 of file dnet.c.

char __pyx_doc_4dnet_5route_get[] = "Return the hardware address for a given protocol address\n in the system routing table.\n\n Arguments:\n dst -- ADDR_TYPE_IP network address object\n " [static]
 

Definition at line 4472 of file dnet.c.

char __pyx_doc_4dnet_5route_loop[] = "Iterate over the system routing table, invoking a user callback\n with each entry, returning the status of the callback routine.\n\n Keyword arguments:\n callback -- callback function with ((dst, gw), arg) prototype.\n If this function returns a non-zero value, the loop\n will break early.\n arg -- optional callback argument\n " [static]
 

Definition at line 4526 of file dnet.c.

char __pyx_doc_4dnet_arp_pack_hdr_ethip[] = "Return a packed binary string representing an Ethernet/IP ARP message.\n \n Keyword arguments:\n op -- operation (ARP_OP_*) (16-bit integer)\n sha -- sender Ethernet address (6-byte binary string)\n spa -- sender IP address (4-byte binary string)\n dha -- destination Ethernet address (6-byte binary string)\n dpa -- destination IP address (4-byte binary string)\n " [static]
 

Definition at line 3216 of file dnet.c.

char __pyx_doc_4dnet_eth_aton[] = "Convert an Ethernet MAC address from a printable string to a\n packed binary string (\'\\x00\\xde\\xad\\xbe\\xef\\x00\')." [static]
 

Definition at line 728 of file dnet.c.

char __pyx_doc_4dnet_eth_ntoa[] = "Convert an Ethernet MAC address from 6-byte packed binary string to\n a printable string (\'00:de:ad:be:ef:00\')." [static]
 

Definition at line 692 of file dnet.c.

char __pyx_doc_4dnet_eth_pack_hdr[] = "Return a packed binary string representing an Ethernet header.\n \n Keyword arguments:\n dst -- destination address (6-byte binary string)\n src -- source address (6-byte binary string)\n type -- Ethernet payload type (ETH_TYPE_*) (16-bit integer)\n " [static]
 

Definition at line 772 of file dnet.c.

char __pyx_doc_4dnet_icmp_pack_hdr[] = "Return a packed binary string representing an ICMP header.\n\n Keyword arguments:\n type -- ICMP type (8-bit integer)\n code -- ICMP code (8-bit integer)\n " [static]
 

Definition at line 3286 of file dnet.c.

char __pyx_doc_4dnet_ip6_aton[] = "Convert an IPv6 address from a printable string to a\n packed binary string (\'\\x0a\\x00\\x00\\x01\')." [static]
 

Definition at line 1293 of file dnet.c.

char __pyx_doc_4dnet_ip6_checksum[] = "Return a packed binary string representing an IPv6 packet \n with the IPv6 and transport-layer checksums set.\n\n Arguments:\n pkt -- binary string representing an IPv6 packet\n " [static]
 

Definition at line 1337 of file dnet.c.

char __pyx_doc_4dnet_ip6_ntoa[] = "Convert an IPv6 address from a 16-byte packed binary string to a\n printable string (\'10.0.0.1\')." [static]
 

Definition at line 1257 of file dnet.c.

char __pyx_doc_4dnet_ip6_pack_hdr[] = "Return a packed binary string representing an IPv6 header.\n \n Keyword arguments:\n fc -- flow class (8-bit integer)\n fl -- flow label (20-bit integer)\n plen -- payload length (16-bit integer)\n nxt -- next header (IP_PROTO_*) (8-bit integer)\n hlim -- hop limit (8-bit integer)\n src -- source address (16-byte binary string)\n dst -- destination address (16-byte binary string)\n " [static]
 

Definition at line 1366 of file dnet.c.

char __pyx_doc_4dnet_ip_aton[] = "Convert an IP address from a printable string to a\n packed binary string (\'\\x0a\\x00\\x00\\x01\')." [static]
 

Definition at line 975 of file dnet.c.

char __pyx_doc_4dnet_ip_checksum[] = "Return packed binary string representing an IP packet \n with the IP and transport-layer checksums set.\n \n Arguments:\n pkt -- binary string representing an IP packet\n " [static]
 

Definition at line 1021 of file dnet.c.

char __pyx_doc_4dnet_ip_ntoa[] = "Convert an IP address from a 4-byte packed binary string or\n integer to a printable string (\'10.0.0.1\')." [static]
 

Definition at line 917 of file dnet.c.

char __pyx_doc_4dnet_ip_pack_hdr[] = "Return a packed binary string representing an IP header.\n \n Keyword arguments:\n tos -- type of service (8-bit integer)\n len -- length (IP_HDR_LEN + payload) (16-bit integer)\n id -- packet ID (16-bit integer)\n off -- fragmentation offset (16-bit integer)\n ttl -- time-to-live (8-bit integer)\n p -- protocol (IP_PROTO_*) (8-bit integer)\n src -- source address (4-byte binary string)\n dst -- destination address (4-byte binary string)\n " [static]
 

Definition at line 1175 of file dnet.c.

char __pyx_doc_4dnet_tcp_pack_hdr[] = "Return a packed binary string representing a TCP header.\n\n Keyword arguments:\n sport -- source port (16-bit integer)\n dport -- destination port (16-bit integer)\n seq -- sequence number (32-bit integer)\n ack -- acknowledgment number (32-bit integer)\n flags -- control flags (TH_*) (8-bit integer bitmask)\n win -- window size (16-bit integer)\n urp -- urgent pointer (16-bit integer)\n " [static]
 

Definition at line 3324 of file dnet.c.

char __pyx_doc_4dnet_udp_pack_hdr[] = "Return a packed binary string representing a UDP header.\n\n Keyword arguments:\n sport -- source port (16-bit integer)\n dport -- destination port (16-bit integer)\n ulen -- UDP header + data length (16-bit integer)\n " [static]
 

Definition at line 3392 of file dnet.c.

statichere char ** __pyx_f = __pyx_filenames
 

Definition at line 9125 of file dnet.c.

Referenced by __pyx_f_4dnet_13__rand_xrange___init__(), __pyx_f_4dnet_13__rand_xrange___next__(), __pyx_f_4dnet_15__addr_ip4_iter___init__(), __pyx_f_4dnet_15__addr_ip4_iter___next__(), __pyx_f_4dnet_2fw___init__(), __pyx_f_4dnet_2fw___iter__(), __pyx_f_4dnet_2fw_add(), __pyx_f_4dnet_2fw_delete(), __pyx_f_4dnet_2fw_loop(), __pyx_f_4dnet_2ip___init__(), __pyx_f_4dnet_2ip_send(), __pyx_f_4dnet_3arp___init__(), __pyx_f_4dnet_3arp___iter__(), __pyx_f_4dnet_3arp_add(), __pyx_f_4dnet_3arp_delete(), __pyx_f_4dnet_3arp_get(), __pyx_f_4dnet_3arp_loop(), __pyx_f_4dnet_3eth___init__(), __pyx_f_4dnet_3eth_get(), __pyx_f_4dnet_3eth_send(), __pyx_f_4dnet_3eth_set(), __pyx_f_4dnet_3tun_2fd___get__(), __pyx_f_4dnet_3tun_4name___get__(), __pyx_f_4dnet_3tun___init__(), __pyx_f_4dnet_3tun_fileno(), __pyx_f_4dnet_3tun_recv(), __pyx_f_4dnet_3tun_send(), __pyx_f_4dnet_4addr_2ip___get__(), __pyx_f_4dnet_4addr_2ip___set__(), __pyx_f_4dnet_4addr_3eth___get__(), __pyx_f_4dnet_4addr_3eth___set__(), __pyx_f_4dnet_4addr_3ip6___get__(), __pyx_f_4dnet_4addr_3ip6___set__(), __pyx_f_4dnet_4addr_4bits___get__(), __pyx_f_4dnet_4addr_4bits___set__(), __pyx_f_4dnet_4addr_4data___get__(), __pyx_f_4dnet_4addr_4type___get__(), __pyx_f_4dnet_4addr_4type___set__(), __pyx_f_4dnet_4addr___add__(), __pyx_f_4dnet_4addr___cmp__(), __pyx_f_4dnet_4addr___contains__(), __pyx_f_4dnet_4addr___copy__(), __pyx_f_4dnet_4addr___hash__(), __pyx_f_4dnet_4addr___init__(), __pyx_f_4dnet_4addr___int__(), __pyx_f_4dnet_4addr___iter__(), __pyx_f_4dnet_4addr___long__(), __pyx_f_4dnet_4addr___repr__(), __pyx_f_4dnet_4addr_bcast(), __pyx_f_4dnet_4addr_net(), __pyx_f_4dnet_4intf___init__(), __pyx_f_4dnet_4intf___iter__(), __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_4intf_loop(), __pyx_f_4dnet_4intf_set(), __pyx_f_4dnet_4rand___init__(), __pyx_f_4dnet_4rand_add(), __pyx_f_4dnet_4rand_get(), __pyx_f_4dnet_4rand_set(), __pyx_f_4dnet_4rand_uint16(), __pyx_f_4dnet_4rand_uint32(), __pyx_f_4dnet_4rand_uint8(), __pyx_f_4dnet_4rand_xrange(), __pyx_f_4dnet_5route___init__(), __pyx_f_4dnet_5route___iter__(), __pyx_f_4dnet_5route_add(), __pyx_f_4dnet_5route_delete(), __pyx_f_4dnet_5route_get(), __pyx_f_4dnet_5route_loop(), __pyx_f_4dnet___arp_callback(), __pyx_f_4dnet___fw_callback(), __pyx_f_4dnet___intf_callback(), __pyx_f_4dnet___iter_append(), __pyx_f_4dnet___memcpy(), __pyx_f_4dnet___oserror(), __pyx_f_4dnet___route_callback(), __pyx_f_4dnet_arp_pack_hdr_ethip(), __pyx_f_4dnet_dict_to_ifent(), __pyx_f_4dnet_dict_to_rule(), __pyx_f_4dnet_eth_aton(), __pyx_f_4dnet_eth_ntoa(), __pyx_f_4dnet_eth_pack_hdr(), __pyx_f_4dnet_icmp_pack_hdr(), __pyx_f_4dnet_ifent_to_dict(), __pyx_f_4dnet_ip6_aton(), __pyx_f_4dnet_ip6_checksum(), __pyx_f_4dnet_ip6_ntoa(), __pyx_f_4dnet_ip6_pack_hdr(), __pyx_f_4dnet_ip_aton(), __pyx_f_4dnet_ip_checksum(), __pyx_f_4dnet_ip_cksum_add(), __pyx_f_4dnet_ip_cksum_carry(), __pyx_f_4dnet_ip_ntoa(), __pyx_f_4dnet_ip_pack_hdr(), __pyx_f_4dnet_rule_to_dict(), __pyx_f_4dnet_tcp_pack_hdr(), __pyx_f_4dnet_udp_pack_hdr(), and DL_EXPORT().

char* __pyx_filename [static]
 

Definition at line 37 of file dnet.c.

Referenced by __Pyx_AddTraceback(), __pyx_f_4dnet_13__rand_xrange___init__(), __pyx_f_4dnet_13__rand_xrange___next__(), __pyx_f_4dnet_15__addr_ip4_iter___init__(), __pyx_f_4dnet_15__addr_ip4_iter___next__(), __pyx_f_4dnet_2fw___init__(), __pyx_f_4dnet_2fw___iter__(), __pyx_f_4dnet_2fw_add(), __pyx_f_4dnet_2fw_delete(), __pyx_f_4dnet_2fw_loop(), __pyx_f_4dnet_2ip___init__(), __pyx_f_4dnet_2ip_send(), __pyx_f_4dnet_3arp___init__(), __pyx_f_4dnet_3arp___iter__(), __pyx_f_4dnet_3arp_add(), __pyx_f_4dnet_3arp_delete(), __pyx_f_4dnet_3arp_get(), __pyx_f_4dnet_3arp_loop(), __pyx_f_4dnet_3eth___init__(), __pyx_f_4dnet_3eth_get(), __pyx_f_4dnet_3eth_send(), __pyx_f_4dnet_3eth_set(), __pyx_f_4dnet_3tun_2fd___get__(), __pyx_f_4dnet_3tun_4name___get__(), __pyx_f_4dnet_3tun___init__(), __pyx_f_4dnet_3tun_fileno(), __pyx_f_4dnet_3tun_recv(), __pyx_f_4dnet_3tun_send(), __pyx_f_4dnet_4addr_2ip___get__(), __pyx_f_4dnet_4addr_2ip___set__(), __pyx_f_4dnet_4addr_3eth___get__(), __pyx_f_4dnet_4addr_3eth___set__(), __pyx_f_4dnet_4addr_3ip6___get__(), __pyx_f_4dnet_4addr_3ip6___set__(), __pyx_f_4dnet_4addr_4bits___get__(), __pyx_f_4dnet_4addr_4bits___set__(), __pyx_f_4dnet_4addr_4data___get__(), __pyx_f_4dnet_4addr_4type___get__(), __pyx_f_4dnet_4addr_4type___set__(), __pyx_f_4dnet_4addr___add__(), __pyx_f_4dnet_4addr___cmp__(), __pyx_f_4dnet_4addr___contains__(), __pyx_f_4dnet_4addr___copy__(), __pyx_f_4dnet_4addr___hash__(), __pyx_f_4dnet_4addr___init__(), __pyx_f_4dnet_4addr___int__(), __pyx_f_4dnet_4addr___iter__(), __pyx_f_4dnet_4addr___long__(), __pyx_f_4dnet_4addr___repr__(), __pyx_f_4dnet_4addr_bcast(), __pyx_f_4dnet_4addr_net(), __pyx_f_4dnet_4intf___init__(), __pyx_f_4dnet_4intf___iter__(), __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_4intf_loop(), __pyx_f_4dnet_4intf_set(), __pyx_f_4dnet_4rand___init__(), __pyx_f_4dnet_4rand_add(), __pyx_f_4dnet_4rand_get(), __pyx_f_4dnet_4rand_set(), __pyx_f_4dnet_4rand_uint16(), __pyx_f_4dnet_4rand_uint32(), __pyx_f_4dnet_4rand_uint8(), __pyx_f_4dnet_4rand_xrange(), __pyx_f_4dnet_5route___init__(), __pyx_f_4dnet_5route___iter__(), __pyx_f_4dnet_5route_add(), __pyx_f_4dnet_5route_delete(), __pyx_f_4dnet_5route_get(), __pyx_f_4dnet_5route_loop(), __pyx_f_4dnet___arp_callback(), __pyx_f_4dnet___fw_callback(), __pyx_f_4dnet___intf_callback(), __pyx_f_4dnet___iter_append(), __pyx_f_4dnet___memcpy(), __pyx_f_4dnet___oserror(), __pyx_f_4dnet___route_callback(), __pyx_f_4dnet_arp_pack_hdr_ethip(), __pyx_f_4dnet_dict_to_ifent(), __pyx_f_4dnet_dict_to_rule(), __pyx_f_4dnet_eth_aton(), __pyx_f_4dnet_eth_ntoa(), __pyx_f_4dnet_eth_pack_hdr(), __pyx_f_4dnet_icmp_pack_hdr(), __pyx_f_4dnet_ifent_to_dict(), __pyx_f_4dnet_ip6_aton(), __pyx_f_4dnet_ip6_checksum(), __pyx_f_4dnet_ip6_ntoa(), __pyx_f_4dnet_ip6_pack_hdr(), __pyx_f_4dnet_ip_aton(), __pyx_f_4dnet_ip_checksum(), __pyx_f_4dnet_ip_cksum_add(), __pyx_f_4dnet_ip_cksum_carry(), __pyx_f_4dnet_ip_ntoa(), __pyx_f_4dnet_ip_pack_hdr(), __pyx_f_4dnet_rule_to_dict(), __pyx_f_4dnet_tcp_pack_hdr(), __pyx_f_4dnet_udp_pack_hdr(), and DL_EXPORT().

char* __pyx_filenames[] [static]
 

Initial value:

 {
  "dnet.pyx",
}

Definition at line 9122 of file dnet.c.

struct PyGetSetDef __pyx_getsets_4dnet_addr[] [static]
 

Initial value:

Definition at line 6806 of file dnet.c.

struct PyGetSetDef __pyx_getsets_4dnet_tun[] [static]
 

Initial value:

 {
  {"name", __pyx_getprop_4dnet_3tun_name, 0, __pyx_k7, 0},
  {"fd", __pyx_getprop_4dnet_3tun_fd, 0, __pyx_k8, 0},
  {0, 0, 0, 0, 0}
}

Definition at line 8041 of file dnet.c.

__Pyx_InternTabEntry __pyx_intern_tab[] [static]
 

Definition at line 6183 of file dnet.c.

PyObject* __pyx_k10p [static]
 

Definition at line 382 of file dnet.c.

PyObject* __pyx_k119p [static]
 

Definition at line 5642 of file dnet.c.

PyObject* __pyx_k120p [static]
 

Definition at line 5643 of file dnet.c.

PyObject* __pyx_k12p [static]
 

Definition at line 383 of file dnet.c.

PyObject* __pyx_k13p [static]
 

Definition at line 384 of file dnet.c.

PyObject* __pyx_k16 [static]
 

Definition at line 152 of file dnet.c.

Referenced by __pyx_f_4dnet_eth_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k17 [static]
 

Definition at line 153 of file dnet.c.

Referenced by __pyx_f_4dnet_eth_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k18 [static]
 

Definition at line 154 of file dnet.c.

Referenced by __pyx_f_4dnet_eth_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k24 [static]
 

Definition at line 155 of file dnet.c.

Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k25 [static]
 

Definition at line 156 of file dnet.c.

Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k26 [static]
 

Definition at line 157 of file dnet.c.

Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k27 [static]
 

Definition at line 158 of file dnet.c.

Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k28 [static]
 

Definition at line 159 of file dnet.c.

Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k29 [static]
 

Definition at line 160 of file dnet.c.

Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k30 [static]
 

Definition at line 161 of file dnet.c.

Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k31 [static]
 

Definition at line 162 of file dnet.c.

Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k34 [static]
 

Definition at line 163 of file dnet.c.

Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k35 [static]
 

Definition at line 164 of file dnet.c.

Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k36 [static]
 

Definition at line 165 of file dnet.c.

Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k37 [static]
 

Definition at line 166 of file dnet.c.

Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k38 [static]
 

Definition at line 167 of file dnet.c.

Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k39 [static]
 

Definition at line 168 of file dnet.c.

Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k40 [static]
 

Definition at line 169 of file dnet.c.

Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k41 [static]
 

Definition at line 170 of file dnet.c.

Referenced by __pyx_f_4dnet_4addr___init__(), and DL_EXPORT().

PyObject* __pyx_k42 [static]
 

Definition at line 171 of file dnet.c.

Referenced by __pyx_f_4dnet_4addr___init__(), and DL_EXPORT().

PyObject* __pyx_k43 [static]
 

Definition at line 172 of file dnet.c.

Referenced by __pyx_f_4dnet_3arp_loop(), and DL_EXPORT().

PyObject* __pyx_k44 [static]
 

Definition at line 173 of file dnet.c.

Referenced by __pyx_f_4dnet_arp_pack_hdr_ethip(), and DL_EXPORT().

PyObject* __pyx_k45 [static]
 

Definition at line 174 of file dnet.c.

Referenced by __pyx_f_4dnet_arp_pack_hdr_ethip(), and DL_EXPORT().

PyObject* __pyx_k46 [static]
 

Definition at line 175 of file dnet.c.

Referenced by __pyx_f_4dnet_arp_pack_hdr_ethip(), and DL_EXPORT().

PyObject* __pyx_k47 [static]
 

Definition at line 176 of file dnet.c.

Referenced by __pyx_f_4dnet_arp_pack_hdr_ethip(), and DL_EXPORT().

PyObject* __pyx_k48 [static]
 

Definition at line 177 of file dnet.c.

Referenced by __pyx_f_4dnet_arp_pack_hdr_ethip(), and DL_EXPORT().

PyObject* __pyx_k49 [static]
 

Definition at line 178 of file dnet.c.

Referenced by __pyx_f_4dnet_tcp_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k50 [static]
 

Definition at line 179 of file dnet.c.

Referenced by __pyx_f_4dnet_tcp_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k51 [static]
 

Definition at line 180 of file dnet.c.

Referenced by __pyx_f_4dnet_tcp_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k52 [static]
 

Definition at line 181 of file dnet.c.

Referenced by __pyx_f_4dnet_tcp_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k53 [static]
 

Definition at line 182 of file dnet.c.

Referenced by __pyx_f_4dnet_tcp_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k54 [static]
 

Definition at line 183 of file dnet.c.

Referenced by __pyx_f_4dnet_udp_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_k55 [static]
 

Definition at line 184 of file dnet.c.

Referenced by __pyx_f_4dnet_4intf_loop(), and DL_EXPORT().

PyObject* __pyx_k56 [static]
 

Definition at line 185 of file dnet.c.

Referenced by __pyx_f_4dnet_5route_loop(), and DL_EXPORT().

PyObject* __pyx_k57 [static]
 

Definition at line 186 of file dnet.c.

Referenced by __pyx_f_4dnet_2fw_loop(), and DL_EXPORT().

PyObject* __pyx_k58 [static]
 

Definition at line 187 of file dnet.c.

Referenced by __pyx_f_4dnet_4rand_xrange(), and DL_EXPORT().

PyObject* __pyx_k59 [static]
 

Definition at line 188 of file dnet.c.

Referenced by __pyx_f_4dnet_3tun___init__(), and DL_EXPORT().

PyObject* __pyx_k60p [static]
 

Definition at line 388 of file dnet.c.

PyObject* __pyx_k61p [static]
 

Definition at line 723 of file dnet.c.

PyObject* __pyx_k62p [static]
 

Definition at line 970 of file dnet.c.

PyObject* __pyx_k63p [static]
 

Definition at line 1288 of file dnet.c.

PyObject* __pyx_k64p [static]
 

Definition at line 1443 of file dnet.c.

PyObject* __pyx_k65p [static]
 

Definition at line 1638 of file dnet.c.

PyObject* __pyx_k66p [static]
 

Definition at line 1718 of file dnet.c.

PyObject* __pyx_k67p [static]
 

Definition at line 1766 of file dnet.c.

PyObject* __pyx_k68p [static]
 

Definition at line 1827 of file dnet.c.

PyObject* __pyx_k69p [static]
 

Definition at line 1875 of file dnet.c.

PyObject* __pyx_k70p [static]
 

Definition at line 1952 of file dnet.c.

PyObject* __pyx_k71p [static]
 

Definition at line 2000 of file dnet.c.

PyObject* __pyx_k73p [static]
 

Definition at line 2642 of file dnet.c.

PyObject* __pyx_k9p [static]
 

Definition at line 381 of file dnet.c.

int __pyx_lineno [static]
 

Definition at line 36 of file dnet.c.

Referenced by __Pyx_AddTraceback(), __pyx_f_4dnet_13__rand_xrange___init__(), __pyx_f_4dnet_13__rand_xrange___next__(), __pyx_f_4dnet_15__addr_ip4_iter___init__(), __pyx_f_4dnet_15__addr_ip4_iter___next__(), __pyx_f_4dnet_2fw___init__(), __pyx_f_4dnet_2fw___iter__(), __pyx_f_4dnet_2fw_add(), __pyx_f_4dnet_2fw_delete(), __pyx_f_4dnet_2fw_loop(), __pyx_f_4dnet_2ip___init__(), __pyx_f_4dnet_2ip_send(), __pyx_f_4dnet_3arp___init__(), __pyx_f_4dnet_3arp___iter__(), __pyx_f_4dnet_3arp_add(), __pyx_f_4dnet_3arp_delete(), __pyx_f_4dnet_3arp_get(), __pyx_f_4dnet_3arp_loop(), __pyx_f_4dnet_3eth___init__(), __pyx_f_4dnet_3eth_get(), __pyx_f_4dnet_3eth_send(), __pyx_f_4dnet_3eth_set(), __pyx_f_4dnet_3tun_2fd___get__(), __pyx_f_4dnet_3tun_4name___get__(), __pyx_f_4dnet_3tun___init__(), __pyx_f_4dnet_3tun_fileno(), __pyx_f_4dnet_3tun_recv(), __pyx_f_4dnet_3tun_send(), __pyx_f_4dnet_4addr_2ip___get__(), __pyx_f_4dnet_4addr_2ip___set__(), __pyx_f_4dnet_4addr_3eth___get__(), __pyx_f_4dnet_4addr_3eth___set__(), __pyx_f_4dnet_4addr_3ip6___get__(), __pyx_f_4dnet_4addr_3ip6___set__(), __pyx_f_4dnet_4addr_4bits___get__(), __pyx_f_4dnet_4addr_4bits___set__(), __pyx_f_4dnet_4addr_4data___get__(), __pyx_f_4dnet_4addr_4type___get__(), __pyx_f_4dnet_4addr_4type___set__(), __pyx_f_4dnet_4addr___add__(), __pyx_f_4dnet_4addr___cmp__(), __pyx_f_4dnet_4addr___contains__(), __pyx_f_4dnet_4addr___copy__(), __pyx_f_4dnet_4addr___hash__(), __pyx_f_4dnet_4addr___init__(), __pyx_f_4dnet_4addr___int__(), __pyx_f_4dnet_4addr___iter__(), __pyx_f_4dnet_4addr___long__(), __pyx_f_4dnet_4addr___repr__(), __pyx_f_4dnet_4addr_bcast(), __pyx_f_4dnet_4addr_net(), __pyx_f_4dnet_4intf___init__(), __pyx_f_4dnet_4intf___iter__(), __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_4intf_loop(), __pyx_f_4dnet_4intf_set(), __pyx_f_4dnet_4rand___init__(), __pyx_f_4dnet_4rand_add(), __pyx_f_4dnet_4rand_get(), __pyx_f_4dnet_4rand_set(), __pyx_f_4dnet_4rand_uint16(), __pyx_f_4dnet_4rand_uint32(), __pyx_f_4dnet_4rand_uint8(), __pyx_f_4dnet_4rand_xrange(), __pyx_f_4dnet_5route___init__(), __pyx_f_4dnet_5route___iter__(), __pyx_f_4dnet_5route_add(), __pyx_f_4dnet_5route_delete(), __pyx_f_4dnet_5route_get(), __pyx_f_4dnet_5route_loop(), __pyx_f_4dnet___arp_callback(), __pyx_f_4dnet___fw_callback(), __pyx_f_4dnet___intf_callback(), __pyx_f_4dnet___iter_append(), __pyx_f_4dnet___memcpy(), __pyx_f_4dnet___oserror(), __pyx_f_4dnet___route_callback(), __pyx_f_4dnet_arp_pack_hdr_ethip(), __pyx_f_4dnet_dict_to_ifent(), __pyx_f_4dnet_dict_to_rule(), __pyx_f_4dnet_eth_aton(), __pyx_f_4dnet_eth_ntoa(), __pyx_f_4dnet_eth_pack_hdr(), __pyx_f_4dnet_icmp_pack_hdr(), __pyx_f_4dnet_ifent_to_dict(), __pyx_f_4dnet_ip6_aton(), __pyx_f_4dnet_ip6_checksum(), __pyx_f_4dnet_ip6_ntoa(), __pyx_f_4dnet_ip6_pack_hdr(), __pyx_f_4dnet_ip_aton(), __pyx_f_4dnet_ip_checksum(), __pyx_f_4dnet_ip_cksum_add(), __pyx_f_4dnet_ip_cksum_carry(), __pyx_f_4dnet_ip_ntoa(), __pyx_f_4dnet_ip_pack_hdr(), __pyx_f_4dnet_rule_to_dict(), __pyx_f_4dnet_tcp_pack_hdr(), __pyx_f_4dnet_udp_pack_hdr(), and DL_EXPORT().

PyObject* __pyx_m [static]
 

Definition at line 34 of file dnet.c.

Referenced by __Pyx_AddTraceback(), __pyx_f_4dnet_15__addr_ip4_iter___next__(), __pyx_f_4dnet_2fw___iter__(), __pyx_f_4dnet_3arp___iter__(), __pyx_f_4dnet_4addr_2ip___get__(), __pyx_f_4dnet_4addr_2ip___set__(), __pyx_f_4dnet_4addr_3eth___get__(), __pyx_f_4dnet_4addr_3eth___set__(), __pyx_f_4dnet_4addr_3ip6___get__(), __pyx_f_4dnet_4addr_3ip6___set__(), __pyx_f_4dnet_4addr_4data___get__(), __pyx_f_4dnet_4addr___hash__(), __pyx_f_4dnet_4addr___init__(), __pyx_f_4dnet_4addr___int__(), __pyx_f_4dnet_4addr___iter__(), __pyx_f_4dnet_4intf___iter__(), __pyx_f_4dnet_5route___iter__(), __pyx_f_4dnet_dict_to_rule(), __pyx_f_4dnet_ifent_to_dict(), __pyx_f_4dnet_rule_to_dict(), and DL_EXPORT().

char __pyx_mdoc[] = "dumb networking library\n\nThis module provides a simplified interface to several low-level\nnetworking routines, including network address manipulation, kernel\narp(4) cache and route(4) table lookup and manipulation, network\nfirewalling, network interface lookup and manipulation, IP tunnelling,\nand raw IP packet and Ethernet frame transmission.\n" [static]
 

Definition at line 40 of file dnet.c.

Referenced by DL_EXPORT().

struct PyMethodDef __pyx_methods[] [static]
 

Initial value:

 {
  {"__iter_append", (PyCFunction)__pyx_f_4dnet___iter_append, METH_VARARGS|METH_KEYWORDS, 0},
  {"eth_ntoa", (PyCFunction)__pyx_f_4dnet_eth_ntoa, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_eth_ntoa},
  {"eth_aton", (PyCFunction)__pyx_f_4dnet_eth_aton, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_eth_aton},
  {"eth_pack_hdr", (PyCFunction)__pyx_f_4dnet_eth_pack_hdr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_eth_pack_hdr},
  {"ip_ntoa", (PyCFunction)__pyx_f_4dnet_ip_ntoa, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_ip_ntoa},
  {"ip_aton", (PyCFunction)__pyx_f_4dnet_ip_aton, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_ip_aton},
  {"ip_checksum", (PyCFunction)__pyx_f_4dnet_ip_checksum, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_ip_checksum},
  {"ip_cksum_add", (PyCFunction)__pyx_f_4dnet_ip_cksum_add, METH_VARARGS|METH_KEYWORDS, 0},
  {"ip_cksum_carry", (PyCFunction)__pyx_f_4dnet_ip_cksum_carry, METH_VARARGS|METH_KEYWORDS, 0},
  {"ip_pack_hdr", (PyCFunction)__pyx_f_4dnet_ip_pack_hdr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_ip_pack_hdr},
  {"ip6_ntoa", (PyCFunction)__pyx_f_4dnet_ip6_ntoa, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_ip6_ntoa},
  {"ip6_aton", (PyCFunction)__pyx_f_4dnet_ip6_aton, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_ip6_aton},
  {"ip6_checksum", (PyCFunction)__pyx_f_4dnet_ip6_checksum, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_ip6_checksum},
  {"ip6_pack_hdr", (PyCFunction)__pyx_f_4dnet_ip6_pack_hdr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_ip6_pack_hdr},
  {"arp_pack_hdr_ethip", (PyCFunction)__pyx_f_4dnet_arp_pack_hdr_ethip, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_arp_pack_hdr_ethip},
  {"icmp_pack_hdr", (PyCFunction)__pyx_f_4dnet_icmp_pack_hdr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_icmp_pack_hdr},
  {"tcp_pack_hdr", (PyCFunction)__pyx_f_4dnet_tcp_pack_hdr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_tcp_pack_hdr},
  {"udp_pack_hdr", (PyCFunction)__pyx_f_4dnet_udp_pack_hdr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_udp_pack_hdr},
  {0, 0, 0, 0}
}

Definition at line 8163 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet___addr_ip4_iter[] [static]
 

Initial value:

 {
  {0, 0, 0, 0}
}

Definition at line 6954 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet___rand_xrange[] [static]
 

Initial value:

 {
  {0, 0, 0, 0}
}

Definition at line 7874 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet_addr[] [static]
 

Initial value:

 {
  {"bcast", (PyCFunction)__pyx_f_4dnet_4addr_bcast, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4addr_bcast},
  {"net", (PyCFunction)__pyx_f_4dnet_4addr_net, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4addr_net},
  {"__copy__", (PyCFunction)__pyx_f_4dnet_4addr___copy__, METH_VARARGS|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
}

Definition at line 6799 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet_arp[] [static]
 

Initial value:

 {
  {"add", (PyCFunction)__pyx_f_4dnet_3arp_add, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_3arp_add},
  {"delete", (PyCFunction)__pyx_f_4dnet_3arp_delete, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_3arp_delete},
  {"get", (PyCFunction)__pyx_f_4dnet_3arp_get, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_3arp_get},
  {"loop", (PyCFunction)__pyx_f_4dnet_3arp_loop, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_3arp_loop},
  {0, 0, 0, 0}
}

Definition at line 7105 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet_eth[] [static]
 

Initial value:

 {
  {"get", (PyCFunction)__pyx_f_4dnet_3eth_get, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_3eth_get},
  {"set", (PyCFunction)__pyx_f_4dnet_3eth_set, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_3eth_set},
  {"send", (PyCFunction)__pyx_f_4dnet_3eth_send, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_3eth_send},
  {0, 0, 0, 0}
}

Definition at line 6428 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet_fw[] [static]
 

Initial value:

 {
  {"add", (PyCFunction)__pyx_f_4dnet_2fw_add, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_2fw_add},
  {"delete", (PyCFunction)__pyx_f_4dnet_2fw_delete, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_2fw_delete},
  {"loop", (PyCFunction)__pyx_f_4dnet_2fw_loop, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_2fw_loop},
  {0, 0, 0, 0}
}

Definition at line 7571 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet_intf[] [static]
 

Initial value:

 {
  {"get", (PyCFunction)__pyx_f_4dnet_4intf_get, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4intf_get},
  {"get_src", (PyCFunction)__pyx_f_4dnet_4intf_get_src, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4intf_get_src},
  {"get_dst", (PyCFunction)__pyx_f_4dnet_4intf_get_dst, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4intf_get_dst},
  {"set", (PyCFunction)__pyx_f_4dnet_4intf_set, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4intf_set},
  {"loop", (PyCFunction)__pyx_f_4dnet_4intf_loop, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4intf_loop},
  {0, 0, 0, 0}
}

Definition at line 7260 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet_ip[] [static]
 

Initial value:

 {
  {"send", (PyCFunction)__pyx_f_4dnet_2ip_send, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_2ip_send},
  {0, 0, 0, 0}
}

Definition at line 6582 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet_rand[] [static]
 

Initial value:

 {
  {"get", (PyCFunction)__pyx_f_4dnet_4rand_get, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4rand_get},
  {"set", (PyCFunction)__pyx_f_4dnet_4rand_set, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4rand_set},
  {"add", (PyCFunction)__pyx_f_4dnet_4rand_add, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4rand_add},
  {"uint8", (PyCFunction)__pyx_f_4dnet_4rand_uint8, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4rand_uint8},
  {"uint16", (PyCFunction)__pyx_f_4dnet_4rand_uint16, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4rand_uint16},
  {"uint32", (PyCFunction)__pyx_f_4dnet_4rand_uint32, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4rand_uint32},
  {"xrange", (PyCFunction)__pyx_f_4dnet_4rand_xrange, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_4rand_xrange},
  {0, 0, 0, 0}
}

Definition at line 7725 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet_route[] [static]
 

Initial value:

 {
  {"add", (PyCFunction)__pyx_f_4dnet_5route_add, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_5route_add},
  {"delete", (PyCFunction)__pyx_f_4dnet_5route_delete, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_5route_delete},
  {"get", (PyCFunction)__pyx_f_4dnet_5route_get, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_5route_get},
  {"loop", (PyCFunction)__pyx_f_4dnet_5route_loop, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_5route_loop},
  {0, 0, 0, 0}
}

Definition at line 7416 of file dnet.c.

struct PyMethodDef __pyx_methods_4dnet_tun[] [static]
 

Initial value:

 {
  {"fileno", (PyCFunction)__pyx_f_4dnet_3tun_fileno, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_3tun_fileno},
  {"send", (PyCFunction)__pyx_f_4dnet_3tun_send, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_3tun_send},
  {"recv", (PyCFunction)__pyx_f_4dnet_3tun_recv, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_3tun_recv},
  {"close", (PyCFunction)__pyx_f_4dnet_3tun_close, METH_VARARGS|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
}

Definition at line 8033 of file dnet.c.

PyObject* __pyx_n___author__ [static]
 

Definition at line 224 of file dnet.c.

PyObject* __pyx_n___copy__ [static]
 

Definition at line 2144 of file dnet.c.

PyObject* __pyx_n___copyright__ [static]
 

Definition at line 225 of file dnet.c.

PyObject* __pyx_n___int__ [static]
 

Definition at line 2542 of file dnet.c.

PyObject* __pyx_n___iter_append [static]
 

Definition at line 229 of file dnet.c.

PyObject* __pyx_n___license__ [static]
 

Definition at line 226 of file dnet.c.

PyObject* __pyx_n___url__ [static]
 

Definition at line 227 of file dnet.c.

PyObject* __pyx_n___version__ [static]
 

Definition at line 228 of file dnet.c.

PyObject* __pyx_n_addr [static]
 

Definition at line 3439 of file dnet.c.

PyObject* __pyx_n_ADDR_TYPE_ETH [static]
 

Definition at line 309 of file dnet.c.

PyObject* __pyx_n_ADDR_TYPE_IP [static]
 

Definition at line 310 of file dnet.c.

PyObject* __pyx_n_ADDR_TYPE_IP6 [static]
 

Definition at line 311 of file dnet.c.

PyObject* __pyx_n_ADDR_TYPE_NONE [static]
 

Definition at line 308 of file dnet.c.

PyObject* __pyx_n_alias_addrs [static]
 

Definition at line 3442 of file dnet.c.

PyObject* __pyx_n_append [static]
 

Definition at line 461 of file dnet.c.

PyObject* __pyx_n_ARP_ETHIP_LEN [static]
 

Definition at line 313 of file dnet.c.

PyObject* __pyx_n_ARP_HDR_LEN [static]
 

Definition at line 312 of file dnet.c.

PyObject* __pyx_n_ARP_HRD_ETH [static]
 

Definition at line 314 of file dnet.c.

PyObject* __pyx_n_ARP_HRD_IEEE802 [static]
 

Definition at line 315 of file dnet.c.

PyObject* __pyx_n_ARP_OP_REPLY [static]
 

Definition at line 318 of file dnet.c.

PyObject* __pyx_n_ARP_OP_REQUEST [static]
 

Definition at line 317 of file dnet.c.

PyObject* __pyx_n_ARP_OP_REVREPLY [static]
 

Definition at line 320 of file dnet.c.

PyObject* __pyx_n_ARP_OP_REVREQUEST [static]
 

Definition at line 319 of file dnet.c.

PyObject* __pyx_n_arp_pack_hdr_ethip [static]
 

Definition at line 321 of file dnet.c.

PyObject* __pyx_n_ARP_PRO_IP [static]
 

Definition at line 316 of file dnet.c.

PyObject* __pyx_n_BSD [static]
 

Definition at line 379 of file dnet.c.

PyObject* __pyx_n_device [static]
 

Definition at line 4648 of file dnet.c.

PyObject* __pyx_n_dir [static]
 

Definition at line 4650 of file dnet.c.

PyObject* __pyx_n_dport [static]
 

Definition at line 4655 of file dnet.c.

PyObject* __pyx_n_dst [static]
 

Definition at line 4653 of file dnet.c.

PyObject* __pyx_n_dst_addr [static]
 

Definition at line 3440 of file dnet.c.

PyObject* __pyx_n_eth [static]
 

Definition at line 1635 of file dnet.c.

PyObject* __pyx_n_ETH_ADDR_BITS [static]
 

Definition at line 231 of file dnet.c.

PyObject* __pyx_n_ETH_ADDR_BROADCAST [static]
 

Definition at line 251 of file dnet.c.

PyObject* __pyx_n_ETH_ADDR_LEN [static]
 

Definition at line 230 of file dnet.c.

PyObject* __pyx_n_ETH_ADDR_UNSPEC [static]
 

Definition at line 250 of file dnet.c.

PyObject* __pyx_n_eth_aton [static]
 

Definition at line 253 of file dnet.c.

PyObject* __pyx_n_ETH_CRC_LEN [static]
 

Definition at line 233 of file dnet.c.

PyObject* __pyx_n_ETH_HDR_LEN [static]
 

Definition at line 234 of file dnet.c.

PyObject* __pyx_n_ETH_LEN_MAX [static]
 

Definition at line 236 of file dnet.c.

PyObject* __pyx_n_ETH_LEN_MIN [static]
 

Definition at line 235 of file dnet.c.

PyObject* __pyx_n_ETH_MIN [static]
 

Definition at line 238 of file dnet.c.

PyObject* __pyx_n_ETH_MTU [static]
 

Definition at line 237 of file dnet.c.

PyObject* __pyx_n_eth_ntoa [static]
 

Definition at line 252 of file dnet.c.

PyObject* __pyx_n_eth_pack_hdr [static]
 

Definition at line 254 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_8021Q [static]
 

Definition at line 243 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_ARP [static]
 

Definition at line 241 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_IP [static]
 

Definition at line 240 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_IPV6 [static]
 

Definition at line 244 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_LEN [static]
 

Definition at line 232 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_LOOPBACK [static]
 

Definition at line 249 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_MPLS [static]
 

Definition at line 245 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_MPLS_MCAST [static]
 

Definition at line 246 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_PPPOE [static]
 

Definition at line 248 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_PPPOEDISC [static]
 

Definition at line 247 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_PUP [static]
 

Definition at line 239 of file dnet.c.

PyObject* __pyx_n_ETH_TYPE_REVARP [static]
 

Definition at line 242 of file dnet.c.

PyObject* __pyx_n_flags [static]
 

Definition at line 3437 of file dnet.c.

PyObject* __pyx_n_FW_DIR_IN [static]
 

Definition at line 377 of file dnet.c.

PyObject* __pyx_n_FW_DIR_OUT [static]
 

Definition at line 378 of file dnet.c.

PyObject* __pyx_n_FW_OP_ALLOW [static]
 

Definition at line 375 of file dnet.c.

PyObject* __pyx_n_FW_OP_BLOCK [static]
 

Definition at line 376 of file dnet.c.

PyObject* __pyx_n_icmp_pack_hdr [static]
 

Definition at line 322 of file dnet.c.

PyObject* __pyx_n_INTF_FLAG_BROADCAST [static]
 

Definition at line 373 of file dnet.c.

PyObject* __pyx_n_INTF_FLAG_LOOPBACK [static]
 

Definition at line 370 of file dnet.c.

PyObject* __pyx_n_INTF_FLAG_MULTICAST [static]
 

Definition at line 374 of file dnet.c.

PyObject* __pyx_n_INTF_FLAG_NOARP [static]
 

Definition at line 372 of file dnet.c.

PyObject* __pyx_n_INTF_FLAG_POINTOPOINT [static]
 

Definition at line 371 of file dnet.c.

PyObject* __pyx_n_INTF_FLAG_UP [static]
 

Definition at line 369 of file dnet.c.

PyObject* __pyx_n_INTF_TYPE_ETH [static]
 

Definition at line 366 of file dnet.c.

PyObject* __pyx_n_INTF_TYPE_LOOPBACK [static]
 

Definition at line 367 of file dnet.c.

PyObject* __pyx_n_INTF_TYPE_OTHER [static]
 

Definition at line 365 of file dnet.c.

PyObject* __pyx_n_INTF_TYPE_TUN [static]
 

Definition at line 368 of file dnet.c.

PyObject* __pyx_n_ip [static]
 

Definition at line 1441 of file dnet.c.

PyObject* __pyx_n_ip6 [static]
 

Definition at line 1636 of file dnet.c.

PyObject* __pyx_n_IP6_ADDR_BITS [static]
 

Definition at line 295 of file dnet.c.

PyObject* __pyx_n_IP6_ADDR_LEN [static]
 

Definition at line 294 of file dnet.c.

PyObject* __pyx_n_IP6_ADDR_LOOPBACK [static]
 

Definition at line 303 of file dnet.c.

PyObject* __pyx_n_IP6_ADDR_UNSPEC [static]
 

Definition at line 302 of file dnet.c.

PyObject* __pyx_n_ip6_aton [static]
 

Definition at line 305 of file dnet.c.

PyObject* __pyx_n_ip6_checksum [static]
 

Definition at line 306 of file dnet.c.

PyObject* __pyx_n_IP6_HDR_LEN [static]
 

Definition at line 296 of file dnet.c.

PyObject* __pyx_n_IP6_HLIM_DEFAULT [static]
 

Definition at line 300 of file dnet.c.

PyObject* __pyx_n_IP6_HLIM_MAX [static]
 

Definition at line 301 of file dnet.c.

PyObject* __pyx_n_IP6_LEN_MAX [static]
 

Definition at line 298 of file dnet.c.

PyObject* __pyx_n_IP6_LEN_MIN [static]
 

Definition at line 297 of file dnet.c.

PyObject* __pyx_n_IP6_MTU_MIN [static]
 

Definition at line 299 of file dnet.c.

PyObject* __pyx_n_ip6_ntoa [static]
 

Definition at line 304 of file dnet.c.

PyObject* __pyx_n_ip6_pack_hdr [static]
 

Definition at line 307 of file dnet.c.

PyObject* __pyx_n_IP_ADDR_ANY [static]
 

Definition at line 283 of file dnet.c.

PyObject* __pyx_n_IP_ADDR_BITS [static]
 

Definition at line 256 of file dnet.c.

PyObject* __pyx_n_IP_ADDR_BROADCAST [static]
 

Definition at line 284 of file dnet.c.

PyObject* __pyx_n_IP_ADDR_LEN [static]
 

Definition at line 255 of file dnet.c.

PyObject* __pyx_n_IP_ADDR_LOOPBACK [static]
 

Definition at line 285 of file dnet.c.

PyObject* __pyx_n_IP_ADDR_MCAST_ALL [static]
 

Definition at line 286 of file dnet.c.

PyObject* __pyx_n_IP_ADDR_MCAST_LOCAL [static]
 

Definition at line 287 of file dnet.c.

PyObject* __pyx_n_ip_aton [static]
 

Definition at line 289 of file dnet.c.

PyObject* __pyx_n_ip_checksum [static]
 

Definition at line 290 of file dnet.c.

PyObject* __pyx_n_ip_cksum_add [static]
 

Definition at line 291 of file dnet.c.

PyObject* __pyx_n_ip_cksum_carry [static]
 

Definition at line 292 of file dnet.c.

PyObject* __pyx_n_IP_DF [static]
 

Definition at line 265 of file dnet.c.

PyObject* __pyx_n_IP_HDR_LEN [static]
 

Definition at line 257 of file dnet.c.

PyObject* __pyx_n_IP_HDR_LEN_MAX [static]
 

Definition at line 260 of file dnet.c.

PyObject* __pyx_n_IP_LEN_MAX [static]
 

Definition at line 261 of file dnet.c.

PyObject* __pyx_n_IP_LEN_MIN [static]
 

Definition at line 262 of file dnet.c.

PyObject* __pyx_n_IP_MF [static]
 

Definition at line 266 of file dnet.c.

PyObject* __pyx_n_ip_ntoa [static]
 

Definition at line 288 of file dnet.c.

PyObject* __pyx_n_IP_OFFMASK [static]
 

Definition at line 267 of file dnet.c.

PyObject* __pyx_n_IP_OPT_LEN [static]
 

Definition at line 258 of file dnet.c.

PyObject* __pyx_n_IP_OPT_LEN_MAX [static]
 

Definition at line 259 of file dnet.c.

PyObject* __pyx_n_ip_pack_hdr [static]
 

Definition at line 293 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_AH [static]
 

Definition at line 278 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_ESP [static]
 

Definition at line 277 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_GRE [static]
 

Definition at line 276 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_ICMP [static]
 

Definition at line 271 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_ICMPV6 [static]
 

Definition at line 279 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_IGMP [static]
 

Definition at line 272 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_IP [static]
 

Definition at line 270 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_IPV6 [static]
 

Definition at line 275 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_MAX [static]
 

Definition at line 282 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_RAW [static]
 

Definition at line 280 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_RESERVED [static]
 

Definition at line 281 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_TCP [static]
 

Definition at line 273 of file dnet.c.

PyObject* __pyx_n_IP_PROTO_UDP [static]
 

Definition at line 274 of file dnet.c.

PyObject* __pyx_n_IP_RF [static]
 

Definition at line 264 of file dnet.c.

PyObject* __pyx_n_IP_TOS_DEFAULT [static]
 

Definition at line 263 of file dnet.c.

PyObject* __pyx_n_IP_TTL_DEFAULT [static]
 

Definition at line 268 of file dnet.c.

PyObject* __pyx_n_IP_TTL_MAX [static]
 

Definition at line 269 of file dnet.c.

PyObject* __pyx_n_iter [static]
 

Definition at line 3136 of file dnet.c.

PyObject* __pyx_n_len [static]
 

Definition at line 3616 of file dnet.c.

PyObject* __pyx_n_link_addr [static]
 

Definition at line 3441 of file dnet.c.

PyObject* __pyx_n_loop [static]
 

Definition at line 3135 of file dnet.c.

PyObject* __pyx_n_mtu [static]
 

Definition at line 3438 of file dnet.c.

PyObject* __pyx_n_name [static]
 

Definition at line 3435 of file dnet.c.

PyObject* __pyx_n_NotImplementedError [static]
 

Definition at line 2143 of file dnet.c.

PyObject* __pyx_n_op [static]
 

Definition at line 4649 of file dnet.c.

PyObject* __pyx_n_OSError [static]
 

Definition at line 500 of file dnet.c.

PyObject* __pyx_n_OverflowError [static]
 

Definition at line 1542 of file dnet.c.

PyObject* __pyx_n_proto [static]
 

Definition at line 4651 of file dnet.c.

PyObject* __pyx_n_sport [static]
 

Definition at line 4654 of file dnet.c.

PyObject* __pyx_n_src [static]
 

Definition at line 4652 of file dnet.c.

PyObject* __pyx_n_StopIteration [static]
 

Definition at line 2718 of file dnet.c.

PyObject* __pyx_n_TCP_HDR_LEN [static]
 

Definition at line 323 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_ALTSUM [static]
 

Definition at line 348 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_ALTSUMDATA [static]
 

Definition at line 349 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_BUBBA [static]
 

Definition at line 351 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_CC [static]
 

Definition at line 345 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_CCECHO [static]
 

Definition at line 347 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_CCNEW [static]
 

Definition at line 346 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_CORRUPT [static]
 

Definition at line 357 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_ECHO [static]
 

Definition at line 340 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_ECHOREPLY [static]
 

Definition at line 341 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_EOL [static]
 

Definition at line 334 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_MAX [static]
 

Definition at line 360 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_MD5 [static]
 

Definition at line 353 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_MSS [static]
 

Definition at line 336 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_NOP [static]
 

Definition at line 335 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_POCONN [static]
 

Definition at line 343 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_POSVC [static]
 

Definition at line 344 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_REC [static]
 

Definition at line 356 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_SACK [static]
 

Definition at line 339 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_SACKOK [static]
 

Definition at line 338 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_SCPS [static]
 

Definition at line 354 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_SKEETER [static]
 

Definition at line 350 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_SNACK [static]
 

Definition at line 355 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_SNAP [static]
 

Definition at line 358 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_TCPCOMP [static]
 

Definition at line 359 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_TIMESTAMP [static]
 

Definition at line 342 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_TRAILSUM [static]
 

Definition at line 352 of file dnet.c.

PyObject* __pyx_n_TCP_OPT_WSCALE [static]
 

Definition at line 337 of file dnet.c.

PyObject* __pyx_n_tcp_pack_hdr [static]
 

Definition at line 361 of file dnet.c.

PyObject* __pyx_n_TCP_PORT_MAX [static]
 

Definition at line 332 of file dnet.c.

PyObject* __pyx_n_TCP_WIN_MAX [static]
 

Definition at line 333 of file dnet.c.

PyObject* __pyx_n_TH_ACK [static]
 

Definition at line 328 of file dnet.c.

PyObject* __pyx_n_TH_CWR [static]
 

Definition at line 331 of file dnet.c.

PyObject* __pyx_n_TH_ECE [static]
 

Definition at line 330 of file dnet.c.

PyObject* __pyx_n_TH_FIN [static]
 

Definition at line 324 of file dnet.c.

PyObject* __pyx_n_TH_PUSH [static]
 

Definition at line 327 of file dnet.c.

PyObject* __pyx_n_TH_RST [static]
 

Definition at line 326 of file dnet.c.

PyObject* __pyx_n_TH_SYN [static]
 

Definition at line 325 of file dnet.c.

PyObject* __pyx_n_TH_URG [static]
 

Definition at line 329 of file dnet.c.

PyObject* __pyx_n_type [static]
 

Definition at line 3436 of file dnet.c.

PyObject* __pyx_n_TypeError [static]
 

Definition at line 1018 of file dnet.c.

PyObject* __pyx_n_UDP_HDR_LEN [static]
 

Definition at line 362 of file dnet.c.

PyObject* __pyx_n_udp_pack_hdr [static]
 

Definition at line 364 of file dnet.c.

PyObject* __pyx_n_UDP_PORT_MAX [static]
 

Definition at line 363 of file dnet.c.

PyObject* __pyx_n_ValueError [static]
 

Definition at line 386 of file dnet.c.

PyTypeObject* __pyx_ptype_4dnet___addr_ip4_iter = 0 [static]
 

Definition at line 144 of file dnet.c.

Referenced by __pyx_f_4dnet_4addr___iter__(), and DL_EXPORT().

PyTypeObject* __pyx_ptype_4dnet___rand_xrange = 0 [static]
 

Definition at line 150 of file dnet.c.

Referenced by __pyx_f_4dnet_4rand_xrange(), and DL_EXPORT().

PyTypeObject* __pyx_ptype_4dnet_addr = 0 [static]
 

Definition at line 143 of file dnet.c.

Referenced by __pyx_f_4dnet_15__addr_ip4_iter___next__(), __pyx_f_4dnet_3arp_add(), __pyx_f_4dnet_3arp_delete(), __pyx_f_4dnet_3arp_get(), __pyx_f_4dnet_3tun___init__(), __pyx_f_4dnet_4addr___cmp__(), __pyx_f_4dnet_4addr___contains__(), __pyx_f_4dnet_4addr___copy__(), __pyx_f_4dnet_4addr_bcast(), __pyx_f_4dnet_4addr_net(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_5route_add(), __pyx_f_4dnet_5route_delete(), __pyx_f_4dnet_5route_get(), __pyx_f_4dnet___arp_callback(), __pyx_f_4dnet___route_callback(), __pyx_f_4dnet_ifent_to_dict(), __pyx_f_4dnet_rule_to_dict(), and DL_EXPORT().

PyTypeObject* __pyx_ptype_4dnet_arp = 0 [static]
 

Definition at line 145 of file dnet.c.

Referenced by DL_EXPORT().

PyTypeObject* __pyx_ptype_4dnet_eth = 0 [static]
 

Definition at line 141 of file dnet.c.

Referenced by DL_EXPORT().

PyTypeObject* __pyx_ptype_4dnet_fw = 0 [static]
 

Definition at line 148 of file dnet.c.

Referenced by DL_EXPORT().

PyTypeObject* __pyx_ptype_4dnet_intf = 0 [static]
 

Definition at line 146 of file dnet.c.

Referenced by DL_EXPORT().

PyTypeObject* __pyx_ptype_4dnet_ip = 0 [static]
 

Definition at line 142 of file dnet.c.

Referenced by DL_EXPORT().

PyTypeObject* __pyx_ptype_4dnet_rand = 0 [static]
 

Definition at line 149 of file dnet.c.

Referenced by DL_EXPORT().

PyTypeObject* __pyx_ptype_4dnet_route = 0 [static]
 

Definition at line 147 of file dnet.c.

Referenced by DL_EXPORT().

PyTypeObject* __pyx_ptype_4dnet_tun = 0 [static]
 

Definition at line 151 of file dnet.c.

Referenced by DL_EXPORT().

__Pyx_StringTabEntry __pyx_string_tab[] [static]
 

Initial value:

 {
  {&__pyx_k9p, __pyx_k9, sizeof(__pyx_k9)},
  {&__pyx_k10p, __pyx_k10, sizeof(__pyx_k10)},
  {&__pyx_k12p, __pyx_k12, sizeof(__pyx_k12)},
  {&__pyx_k13p, __pyx_k13, sizeof(__pyx_k13)},
  {&__pyx_k60p, __pyx_k60, sizeof(__pyx_k60)},
  {&__pyx_k61p, __pyx_k61, sizeof(__pyx_k61)},
  {&__pyx_k62p, __pyx_k62, sizeof(__pyx_k62)},
  {&__pyx_k63p, __pyx_k63, sizeof(__pyx_k63)},
  {&__pyx_k64p, __pyx_k64, sizeof(__pyx_k64)},
  {&__pyx_k65p, __pyx_k65, sizeof(__pyx_k65)},
  {&__pyx_k66p, __pyx_k66, sizeof(__pyx_k66)},
  {&__pyx_k67p, __pyx_k67, sizeof(__pyx_k67)},
  {&__pyx_k68p, __pyx_k68, sizeof(__pyx_k68)},
  {&__pyx_k69p, __pyx_k69, sizeof(__pyx_k69)},
  {&__pyx_k70p, __pyx_k70, sizeof(__pyx_k70)},
  {&__pyx_k71p, __pyx_k71, sizeof(__pyx_k71)},
  {&__pyx_k73p, __pyx_k73, sizeof(__pyx_k73)},
  {&__pyx_k119p, __pyx_k119, sizeof(__pyx_k119)},
  {&__pyx_k120p, __pyx_k120, sizeof(__pyx_k120)},
  {0, 0, 0}
}

Definition at line 6374 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer___addr_ip4_iter [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7018 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer___rand_xrange [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7938 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer_addr [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 6876 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer_arp [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7173 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer_eth [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 6495 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer_fw [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7638 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer_intf [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7329 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer_ip [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 6647 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer_rand [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7796 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer_route [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7484 of file dnet.c.

PyBufferProcs __pyx_tp_as_buffer_tun [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
}

Definition at line 8107 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping___addr_ip4_iter [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
}

Definition at line 7012 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping___rand_xrange [static]
 

Initial value:

Definition at line 7932 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping_addr [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
}

Definition at line 6870 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping_arp [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
}

Definition at line 7167 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping_eth [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
}

Definition at line 6489 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping_fw [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
}

Definition at line 7632 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping_intf [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
}

Definition at line 7323 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping_ip [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
}

Definition at line 6641 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping_rand [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
}

Definition at line 7790 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping_route [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
}

Definition at line 7478 of file dnet.c.

PyMappingMethods __pyx_tp_as_mapping_tun [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
}

Definition at line 8101 of file dnet.c.

PyNumberMethods __pyx_tp_as_number___addr_ip4_iter [static]
 

Definition at line 6958 of file dnet.c.

PyNumberMethods __pyx_tp_as_number___rand_xrange [static]
 

Definition at line 7878 of file dnet.c.

PyNumberMethods __pyx_tp_as_number_addr [static]
 

Definition at line 6816 of file dnet.c.

PyNumberMethods __pyx_tp_as_number_arp [static]
 

Definition at line 7113 of file dnet.c.

PyNumberMethods __pyx_tp_as_number_eth [static]
 

Definition at line 6435 of file dnet.c.

PyNumberMethods __pyx_tp_as_number_fw [static]
 

Definition at line 7578 of file dnet.c.

PyNumberMethods __pyx_tp_as_number_intf [static]
 

Definition at line 7269 of file dnet.c.

PyNumberMethods __pyx_tp_as_number_ip [static]
 

Definition at line 6587 of file dnet.c.

PyNumberMethods __pyx_tp_as_number_rand [static]
 

Definition at line 7736 of file dnet.c.

PyNumberMethods __pyx_tp_as_number_route [static]
 

Definition at line 7424 of file dnet.c.

PyNumberMethods __pyx_tp_as_number_tun [static]
 

Definition at line 8047 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence___addr_ip4_iter [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
}

Definition at line 6999 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence___rand_xrange [static]
 

Initial value:

 {
  __pyx_f_4dnet_13__rand_xrange___len__, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7919 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence_addr [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  __pyx_f_4dnet_4addr___contains__, 
  0, 
  0, 
}

Definition at line 6857 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence_arp [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7154 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence_eth [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
}

Definition at line 6476 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence_fw [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7619 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence_intf [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7310 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence_ip [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
}

Definition at line 6628 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence_rand [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7777 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence_route [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
}

Definition at line 7465 of file dnet.c.

PySequenceMethods __pyx_tp_as_sequence_tun [static]
 

Initial value:

 {
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
  0, 
}

Definition at line 8088 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet___addr_ip4_iter
 

Definition at line 7025 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet___rand_xrange
 

Definition at line 7945 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet_addr
 

Definition at line 6883 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet_arp
 

Definition at line 7180 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet_eth
 

Definition at line 6502 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet_fw
 

Definition at line 7645 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet_intf
 

Definition at line 7336 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet_ip
 

Definition at line 6654 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet_rand
 

Definition at line 7803 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet_route
 

Definition at line 7491 of file dnet.c.

statichere PyTypeObject __pyx_type_4dnet_tun
 

Definition at line 8114 of file dnet.c.


Generated on Sun May 14 14:51:21 2006 by  doxygen 1.4.2