资源简介
非常不错的很是用的可以按炸ungdeyuanma源码程序
代码片段和文件信息
/* Generated by Pyrex 0.9.3 on Mon Jan 9 17:49:45 2006 */
#include “Python.h“
#include “structmember.h“
#ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG
#endif
#include “dnet.h“
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 * int); /*proto*/
static int __Pyx_EndUnpack(Pyobject * int); /*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[] int 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 Pyobject *__Pyx_GetName(Pyobject *dict Pyobject *name); /*proto*/
static Pyobject *__pyx_m;
static Pyobject *__pyx_b;
static int __pyx_lineno;
static char *__pyx_filename;
staticforward 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
};
staticforward PyTypeobject __pyx_type_4dnet_eth;
struct __pyx_obj_4dnet_eth {
Pyobject_HEAD
eth_t (*eth);
};
staticforward PyTypeobject __pyx_type_4dnet_ip;
struct __pyx_obj_4dnet_ip {
Pyobject_HEAD
ip_t (*ip);
};
staticforward PyTypeobject __pyx_type_4dnet_addr;
struct __pyx_obj_4dnet_addr {
Pyobject_HEAD
struct addr _addr;
};
staticforward PyTypeobject __pyx_type_4dnet___addr_ip4_iter;
struct __pyx_obj_4dnet___addr_ip4_iter {
Pyobject_HEAD
unsigned long cur;
unsigned long ma
评论
共有 条评论