#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 [] |
|
|
|
|
|
|
|
|
|
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(). |
|
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(). |
|
Definition at line 5779 of file dnet.c. References __Pyx_AddTraceback(). |
|
Definition at line 5803 of file dnet.c. References __Pyx_AddTraceback(). |
|
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. |
|
Definition at line 2687 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, and __pyx_lineno. |
|
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. |
|
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(). |
|
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(). |
|
Definition at line 5232 of file dnet.c. References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __pyx_m. |
|
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. |
|
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. |
|
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(). |
|
Definition at line 895 of file dnet.c. References __Pyx_AddTraceback(), and ip_close(). Referenced by __pyx_tp_dealloc_4dnet_ip(). |
|
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(). |
|
Definition at line 865 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), and ip_send(). |
|
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(). |
|
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(). |
|
Definition at line 3139 of file dnet.c. References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __pyx_m. |
|
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. |
|
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. |
|
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. |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 6132 of file dnet.c. References __Pyx_AddTraceback(), and tun_close(). |
|
Definition at line 6028 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and tun_fileno(). |
|
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(). |
|
Definition at line 6054 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), and tun_send(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 2147 of file dnet.c. References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __Pyx_Raise(). |
|
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(). |
|
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(). |
|
Definition at line 2247 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and __pyx_ptype_4dnet_addr. |
|
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. |
|
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(). |
|
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. |
|
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. |
|
Definition at line 2545 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, and __pyx_lineno. |
|
Definition at line 2647 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, addr_ntoa(), and char(). |
|
Definition at line 2063 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_ptype_4dnet_addr, and addr_bcast(). |
|
Definition at line 2104 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, __pyx_ptype_4dnet_addr, and addr_net(). |
|
Definition at line 4206 of file dnet.c. References __Pyx_AddTraceback(), intf, and intf_close(). Referenced by __pyx_tp_dealloc_4dnet_intf(). |
|
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(). |
|
Definition at line 4151 of file dnet.c. References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __pyx_m. |
|
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. |
|
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(). |
|
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(). |
|
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(). |
|
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. |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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. |
|
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(). |
|
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(). |
|
Definition at line 4572 of file dnet.c. References __Pyx_AddTraceback(), __pyx_b, __pyx_f, __pyx_filename, __Pyx_GetName(), __pyx_lineno, and __pyx_m. |
|
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. |
|
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. |
|
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. |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 464 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, and __pyx_lineno. |
|
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. |
|
|
|
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(). |
|
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. |
|
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. |
|
Referenced by __pyx_f_4dnet_4intf_set(). |
|
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. |
|
Referenced by __pyx_f_4dnet_2fw_add(), and __pyx_f_4dnet_2fw_delete(). |
|
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. |
|
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(). |
|
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. |
|
Definition at line 3287 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), and icmp_pack_hdr. |
|
|
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(). |
|
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. |
|
Definition at line 1338 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, char(), and ip6_checksum(). |
|
Definition at line 1258 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_f_4dnet___memcpy(), __pyx_filename, __pyx_lineno, and ip6_ntoa(). |
|
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. |
|
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. |
|
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. |
|
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(). |
|
Definition at line 1151 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_lineno, and ip_cksum_carry. |
|
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. |
|
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. |
|
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. |
|
Referenced by __pyx_f_4dnet___fw_callback(). |
|
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. |
|
Definition at line 3393 of file dnet.c. References __Pyx_AddTraceback(), __pyx_f, __pyx_filename, __pyx_k54, __pyx_lineno, char(), and udp_pack_hdr. |
|
|
|
|
Definition at line 8029 of file dnet.c. References __pyx_f_4dnet_3tun_2fd___get__(). |
|
Definition at line 8025 of file dnet.c. References __pyx_f_4dnet_3tun_4name___get__(). |
|
Definition at line 6739 of file dnet.c. References __pyx_f_4dnet_4addr_4bits___get__(). |
|
Definition at line 6753 of file dnet.c. References __pyx_f_4dnet_4addr_4data___get__(). |
|
Definition at line 6757 of file dnet.c. References __pyx_f_4dnet_4addr_3eth___get__(). |
|
Definition at line 6771 of file dnet.c. References __pyx_f_4dnet_4addr_2ip___get__(). |
|
Definition at line 6785 of file dnet.c. References __pyx_f_4dnet_4addr_3ip6___get__(). |
|
Definition at line 6725 of file dnet.c. References __pyx_f_4dnet_4addr_4type___get__(). |
|
|
|
|
|
|
|
|
|
Definition at line 9258 of file dnet.c. References __Pyx_StringTabEntry::n, __Pyx_StringTabEntry::p, and __Pyx_StringTabEntry::s. Referenced by DL_EXPORT(). |
|
Definition at line 9248 of file dnet.c. References __Pyx_InternTabEntry::p, and __Pyx_InternTabEntry::s. Referenced by DL_EXPORT(). |
|
|
|
|
|
|
|
|
Definition at line 6743 of file dnet.c. References __pyx_f_4dnet_4addr_4bits___set__(). |
|
Definition at line 6761 of file dnet.c. References __pyx_f_4dnet_4addr_3eth___set__(). |
|
Definition at line 6775 of file dnet.c. References __pyx_f_4dnet_4addr_2ip___set__(). |
|
Definition at line 6789 of file dnet.c. References __pyx_f_4dnet_4addr_3ip6___set__(). |
|
Definition at line 6729 of file dnet.c. References __pyx_f_4dnet_4addr_4type___set__(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 7080 of file dnet.c. References __pyx_f_4dnet_3arp___dealloc__(). |
|
Definition at line 6403 of file dnet.c. References __pyx_f_4dnet_3eth___dealloc__(). |
|
Definition at line 7546 of file dnet.c. References __pyx_f_4dnet_2fw___dealloc__(). |
|
Definition at line 7235 of file dnet.c. References __pyx_f_4dnet_4intf___dealloc__(). |
|
Definition at line 6557 of file dnet.c. References __pyx_f_4dnet_2ip___dealloc__(). |
|
Definition at line 7700 of file dnet.c. References __pyx_f_4dnet_4rand___dealloc__(). |
|
Definition at line 7391 of file dnet.c. References __pyx_f_4dnet_5route___dealloc__(). |
|
Definition at line 8000 of file dnet.c. References __pyx_f_4dnet_3tun___dealloc__(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 9212 of file dnet.c. Referenced by __pyx_f_4dnet_15__addr_ip4_iter___next__(). |
|
Definition at line 9224 of file dnet.c. Referenced by __Pyx_EndUnpack(), and __Pyx_UnpackItem(). |
|
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(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: {
"dnet.pyx",
}
|
|
Initial value: { {"type", __pyx_getprop_4dnet_4addr_type, __pyx_setprop_4dnet_4addr_type, __pyx_k1, 0}, {"bits", __pyx_getprop_4dnet_4addr_bits, __pyx_setprop_4dnet_4addr_bits, __pyx_k2, 0}, {"data", __pyx_getprop_4dnet_4addr_data, 0, __pyx_k3, 0}, {"eth", __pyx_getprop_4dnet_4addr_eth, __pyx_setprop_4dnet_4addr_eth, __pyx_k4, 0}, {"ip", __pyx_getprop_4dnet_4addr_ip, __pyx_setprop_4dnet_4addr_ip, __pyx_k5, 0}, {"ip6", __pyx_getprop_4dnet_4addr_ip6, __pyx_setprop_4dnet_4addr_ip6, __pyx_k6, 0}, {0, 0, 0, 0, 0} } |
|
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 152 of file dnet.c. Referenced by __pyx_f_4dnet_eth_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 153 of file dnet.c. Referenced by __pyx_f_4dnet_eth_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 154 of file dnet.c. Referenced by __pyx_f_4dnet_eth_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 155 of file dnet.c. Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 156 of file dnet.c. Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 157 of file dnet.c. Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 158 of file dnet.c. Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 159 of file dnet.c. Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 160 of file dnet.c. Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 161 of file dnet.c. Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 162 of file dnet.c. Referenced by __pyx_f_4dnet_ip_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 163 of file dnet.c. Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 164 of file dnet.c. Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 165 of file dnet.c. Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 166 of file dnet.c. Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 167 of file dnet.c. Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 168 of file dnet.c. Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 169 of file dnet.c. Referenced by __pyx_f_4dnet_ip6_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 170 of file dnet.c. Referenced by __pyx_f_4dnet_4addr___init__(), and DL_EXPORT(). |
|
Definition at line 171 of file dnet.c. Referenced by __pyx_f_4dnet_4addr___init__(), and DL_EXPORT(). |
|
Definition at line 172 of file dnet.c. Referenced by __pyx_f_4dnet_3arp_loop(), and DL_EXPORT(). |
|
Definition at line 173 of file dnet.c. Referenced by __pyx_f_4dnet_arp_pack_hdr_ethip(), and DL_EXPORT(). |
|
Definition at line 174 of file dnet.c. Referenced by __pyx_f_4dnet_arp_pack_hdr_ethip(), and DL_EXPORT(). |
|
Definition at line 175 of file dnet.c. Referenced by __pyx_f_4dnet_arp_pack_hdr_ethip(), and DL_EXPORT(). |
|
Definition at line 176 of file dnet.c. Referenced by __pyx_f_4dnet_arp_pack_hdr_ethip(), and DL_EXPORT(). |
|
Definition at line 177 of file dnet.c. Referenced by __pyx_f_4dnet_arp_pack_hdr_ethip(), and DL_EXPORT(). |
|
Definition at line 178 of file dnet.c. Referenced by __pyx_f_4dnet_tcp_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 179 of file dnet.c. Referenced by __pyx_f_4dnet_tcp_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 180 of file dnet.c. Referenced by __pyx_f_4dnet_tcp_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 181 of file dnet.c. Referenced by __pyx_f_4dnet_tcp_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 182 of file dnet.c. Referenced by __pyx_f_4dnet_tcp_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 183 of file dnet.c. Referenced by __pyx_f_4dnet_udp_pack_hdr(), and DL_EXPORT(). |
|
Definition at line 184 of file dnet.c. Referenced by __pyx_f_4dnet_4intf_loop(), and DL_EXPORT(). |
|
Definition at line 185 of file dnet.c. Referenced by __pyx_f_4dnet_5route_loop(), and DL_EXPORT(). |
|
Definition at line 186 of file dnet.c. Referenced by __pyx_f_4dnet_2fw_loop(), and DL_EXPORT(). |
|
Definition at line 187 of file dnet.c. Referenced by __pyx_f_4dnet_4rand_xrange(), and DL_EXPORT(). |
|
Definition at line 188 of file dnet.c. Referenced by __pyx_f_4dnet_3tun___init__(), and DL_EXPORT(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 40 of file dnet.c. Referenced by DL_EXPORT(). |
|
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} } |
|
Initial value: { {0, 0, 0, 0} } |
|
Initial value: { {0, 0, 0, 0} } |
|
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} } |
|
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} } |
|
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} } |
|
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} } |
|
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} } |
|
Initial value: { {"send", (PyCFunction)__pyx_f_4dnet_2ip_send, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4dnet_2ip_send}, {0, 0, 0, 0} } |
|
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} } |
|
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} } |
|
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 144 of file dnet.c. Referenced by __pyx_f_4dnet_4addr___iter__(), and DL_EXPORT(). |
|
Definition at line 150 of file dnet.c. Referenced by __pyx_f_4dnet_4rand_xrange(), and DL_EXPORT(). |
|
|
Definition at line 145 of file dnet.c. Referenced by DL_EXPORT(). |
|
Definition at line 141 of file dnet.c. Referenced by DL_EXPORT(). |
|
Definition at line 148 of file dnet.c. Referenced by DL_EXPORT(). |
|
Definition at line 146 of file dnet.c. Referenced by DL_EXPORT(). |
|
Definition at line 142 of file dnet.c. Referenced by DL_EXPORT(). |
|
Definition at line 149 of file dnet.c. Referenced by DL_EXPORT(). |
|
Definition at line 147 of file dnet.c. Referenced by DL_EXPORT(). |
|
Definition at line 151 of file dnet.c. Referenced by DL_EXPORT(). |
|
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} } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, } |
|
Initial value: { __pyx_f_4dnet_13__rand_xrange___len__, 0, 0, } |
|
Initial value: { 0, 0, 0, } |
|
Initial value: { 0, 0, 0, } |
|
Initial value: { 0, 0, 0, } |
|
Initial value: { 0, 0, 0, } |
|
Initial value: { 0, 0, 0, } |
|
Initial value: { 0, 0, 0, } |
|
Initial value: { 0, 0, 0, } |
|
Initial value: { 0, 0, 0, } |
|
Initial value: { 0, 0, 0, } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } |
|
Initial value: { __pyx_f_4dnet_13__rand_xrange___len__, 0, 0, 0, 0, 0, 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, __pyx_f_4dnet_4addr___contains__, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } |
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|