/* Generated by Pyrex 0.9.4.1 on Sat Jan 20 06:39:10 2007 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"
#ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG
#endif
#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
#define PyInt_FromSsize_t(z) PyInt_FromLong(z)
#define PyInt_AsSsize_t(o) PyInt_AsLong(o)
#endif
#ifdef __cplusplus
#define __PYX_EXTERN_C extern "C"
#else
#define __PYX_EXTERN_C extern
#endif
__PYX_EXTERN_C double pow(double, double);
#include "dnet.h"
typedef struct {const char *s; const void **p;} __Pyx_CApiTabEntry; /*proto*/
typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/
typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/
static PyObject *__Pyx_UnpackItem(PyObject *, Py_ssize_t); /*proto*/
static int __Pyx_EndUnpack(PyObject *, Py_ssize_t); /*proto*/
static int __Pyx_PrintItem(PyObject *); /*proto*/
static int __Pyx_PrintNewline(void); /*proto*/
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
static void __Pyx_ReRaise(void); /*proto*/
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
static PyObject *__Pyx_GetExcValue(void); /*proto*/
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name); /*proto*/
static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
static int __Pyx_GetStarArgs(PyObject **args, PyObject **kwds, char *kwd_list[], Py_ssize_t nargs, PyObject **args2, PyObject **kwds2); /*proto*/
static void __Pyx_WriteUnraisable(char *name); /*proto*/
static void __Pyx_AddTraceback(char *funcname); /*proto*/
static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size); /*proto*/
static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/
static int __Pyx_GetVtable(PyObject *dict, void *vtabptr); /*proto*/
static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name, char *modname); /*proto*/
static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
static int __Pyx_InitCApi(PyObject *module); /*proto*/
static int __Pyx_ImportModuleCApi(__Pyx_CApiTabEntry *t); /*proto*/
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
static PyObject *__pyx_m;
static PyObject *__pyx_b;
static int __pyx_lineno;
static char *__pyx_filename;
static char **__pyx_f;
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";
/* Declarations from dnet */
enum {
__pyx_e_4dnet_TEADELTA = 2654435769,
__pyx_e_4dnet_TEAROUNDS = 32,
__pyx_e_4dnet_TEASBOXSIZE = 128,
__pyx_e_4dnet_TEASBOXSHIFT = 7,
};
struct __pyx_obj_4dnet_eth {
PyObject_HEAD
eth_t (*eth);
};
struct __pyx_obj_4dnet_ip {
PyObject_HEAD
ip_t (*ip);
};
struct __pyx_obj_4dnet_addr {
PyObject_HEAD
struct addr _addr;
};
struct __pyx_obj_4dnet___addr_ip4_iter {
PyObject_HEAD
unsigned long cur;
unsigned long max;
};
struct __pyx_obj_4dnet_arp {
PyObject_HEAD
arp_t (*arp);
};
struct __pyx_obj_4dnet_intf {
PyObject_HEAD
intf_t (*intf);
};
struct __pyx_obj_4dnet_route {
PyObject_HEAD
route_t (*route);
};
struct __pyx_obj_4dnet_fw {
PyObject_HEAD
fw_t (*fw);
};
struct __pyx_obj_4dnet_rand {
PyObject_HEAD
rand_t (*rand);
};
struct __pyx_obj_4dnet___rand_xrange {
PyObject_HEAD
rand_t (*rand);
unsigned long cur;
unsigned long enc;
unsigned long max;
unsigned long mask;
unsigned long start;
unsigned long sboxmask;
unsigned int (sbox[128]);
int left;
int right;
int kshift;
};
struct __pyx_obj_4dnet_tun {
PyObject_HEAD
tun_t (*tun);
char (*buf);
int mtu;
};
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_f_4dnet___memcpy(char (*),PyObject *,int )); /*proto*/
static PyObject *(__pyx_f_4dnet___oserror(void)); /*proto*/
static int (__pyx_f_4dnet___arp_callback(struct arp_entry (*),void (*))); /*proto*/
static PyObject *(__pyx_f_4dnet_ifent_to_dict(struct intf_entry (*))); /*proto*/
static PyObject *(__pyx_f_4dnet_dict_to_ifent(PyObject *,struct intf_entry (*))); /*proto*/
static int (__pyx_f_4dnet___intf_callback(struct intf_entry (*),void (*))); /*proto*/
static int (__pyx_f_4dnet___route_callback(struct route_entry (*),void (*))); /*proto*/
static PyObject *(__pyx_f_4dnet_rule_to_dict(struct fw_rule (*))); /*proto*/
static PyObject *(__pyx_f_4dnet_dict_to_rule(PyObject *,struct fw_rule (*))); /*proto*/
static int (__pyx_f_4dnet___fw_callback(struct fw_rule (*),void (*))); /*proto*/
/* Implementation of dnet */
static char (__pyx_k1[]) = "Address type (ADDR_TYPE_*) integer.";
static char (__pyx_k2[]) = "Address bitlength integer.";
static char (__pyx_k3[]) = "Raw address string.";
static char (__pyx_k4[]) = "Ethernet MAC address as binary string.";
static char (__pyx_k5[]) = "IPv4 address as binary string.";
static char (__pyx_k6[]) = "IPv6 address as binary string.";
static char (__pyx_k7[]) = "Tunnel interface name.";
static char (__pyx_k8[]) = "File descriptor for tunnel handle.";
static char (__pyx_k9[]) = "Dug Song <dugsong@monkey.org>";
static char (__pyx_k10[]) = "Copyright (c) 2003 Dug Song";
static char (__pyx_k12[]) = "http://libdnet.sourceforge.net/";
static char (__pyx_k13[]) = "1.12";
static char (__pyx_k14[]) = "\x000\x000\x000\x000\x000\x000";
static char (__pyx_k15[]) = "\x0ff\x0ff\x0ff\x0ff\x0ff\x0ff";
static char (__pyx_k19[]) = "\x000\x000\x000\x000";
static char (__pyx_k20[]) = "\x0ff\x0ff\x0ff\x0ff";
static char (__pyx_k21[]) = "\x07f\x000\x000\x001";
static char (__pyx_k22[]) = "\x0e0\x000\x000\x001";
static char (__pyx_k23[]) = "\x0e0\x000\x000\x0ff";
static char (__pyx_k32[]) = "\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000";
static char (__pyx_k33[]) = "\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x001";
static PyObject *__pyx_n___author__;
static PyObject *__pyx_n___copyright__;
static PyObject *__pyx_n___license__;
static PyObject *__pyx_n
没有合适的资源?快使用搜索试试~ 我知道了~
libdnet-1.12.tgz
5星 · 超过95%的资源 需积分: 46 53 下载量 32 浏览量
2016-08-01
13:36:59
上传
评论
收藏 947KB TGZ 举报
温馨提示
共267个文件
c:136个
h:42个
in:28个
libdnet-1.12.tgz
资源推荐
资源详情
资源评论
收起资源包目录
libdnet-1.12.tgz (267个子文件)
dnet.3 19KB
dnet.3 19KB
dnet.8 6KB
dnet.8 6KB
Makefile.am 659B
Makefile.am 659B
Makefile.am 622B
Makefile.am 622B
Makefile.am 457B
Makefile.am 457B
Makefile.am 408B
Makefile.am 408B
Makefile.am 273B
Makefile.am 273B
Makefile.am 254B
Makefile.am 254B
Makefile.am 211B
Makefile.am 211B
Makefile.am 167B
Makefile.am 167B
Makefile.am 120B
Makefile.am 120B
dnet.c 376KB
dnet.c 376KB
intf.c 17KB
intf.c 17KB
route-bsd.c 11KB
route-bsd.c 11KB
fw-pktfilter.c 10KB
fw-pktfilter.c 10KB
arp-ioctl.c 10KB
arp-ioctl.c 10KB
check_addr.c 10KB
check_addr.c 10KB
addr.c 10KB
addr.c 10KB
blob.c 8KB
blob.c 8KB
intf-win32.c 8KB
intf-win32.c 8KB
addr-util.c 7KB
addr-util.c 7KB
fw-pf.c 7KB
fw-pf.c 7KB
fw-ipfw.c 7KB
fw-ipfw.c 7KB
arp-bsd.c 7KB
arp-bsd.c 7KB
route-linux.c 6KB
route-linux.c 6KB
eth-dlpi.c 6KB
eth-dlpi.c 6KB
fw-ipf.c 6KB
fw-ipf.c 6KB
fw-ipchains.c 6KB
fw-ipchains.c 6KB
ip-cooked.c 5KB
ip-cooked.c 5KB
fw.c 4KB
fw.c 4KB
check_blob.c 4KB
check_blob.c 4KB
intf.c 4KB
intf.c 4KB
aton.c 4KB
aton.c 4KB
arp.c 4KB
arp.c 4KB
route-hpux.c 4KB
route-hpux.c 4KB
ip-util.c 4KB
ip-util.c 4KB
rand.c 4KB
rand.c 4KB
route-win32.c 3KB
route-win32.c 3KB
eth-bsd.c 3KB
eth-bsd.c 3KB
err.c 3KB
err.c 3KB
strsep.c 3KB
strsep.c 3KB
tun-bsd.c 3KB
tun-bsd.c 3KB
arp-win32.c 3KB
arp-win32.c 3KB
eth-win32.c 3KB
eth-win32.c 3KB
strlcat.c 3KB
strlcat.c 3KB
strlcpy.c 2KB
strlcpy.c 2KB
memcmp.c 2KB
memcmp.c 2KB
tun-solaris.c 2KB
tun-solaris.c 2KB
route.c 2KB
route.c 2KB
eth-linux.c 2KB
eth-linux.c 2KB
共 267 条
- 1
- 2
- 3
资源评论
- ylk19902018-12-14安装上去正常,谢谢
Alex267
- 粉丝: 8
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 南京邮电大学数学实验:熟练掌握 Matlab 软件的基本命令和操作
- 2017校招真题校园招聘真题算法题(37道)Python源码.zip
- 基于单片机protues仿真的多功能自动饮水机系统设计(仿真图、源代码、演示视频)
- 二叉树7-1-1.cpp
- android 9.0 原生模拟器 签名文件
- 技术面试最后反问面试官的话 校招面试非技术问题有哪些 非技术问题如何回答.png
- NB-IOT-BC26全网通模块Altium+ CADENCE +PADS三种格式(原理图SCH+PCB封装库)文件.zip
- 基于微信小程序开发的校园失物招领系统源码毕业设计(优质项目源码).zip
- 词向量是一种将自然语言中的单词转换为数值向量的技术,它能够捕捉词义和上下文信息
- nmap与masscan的简单使用
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功