insane.h
来自「Linux 虚拟网络接口 实例 In the Linux (or Unix) 」· C头文件 代码 · 共 26 行
H
26 行
#ifndef __INSANE_H__#define __INSANE_H__enum insane_mode { INSANE_PASS = 0, /* every packet is transmitted (default) */ INSANE_PERCENT, /* pass some percent of the packets */ INSANE_TIME, /* work (and fail) on a timely basis */};#define INSANE_NAMELEN 16struct insane_userinfo { char name[INSANE_NAMELEN]; int mode; int arg1; int arg2;};/* These are the two ioctl commands needed to interact with insane */#define SIOCINSANESETINFO SIOCDEVPRIVATE#define SIOCINSANEGETINFO (SIOCDEVPRIVATE+1)#endif /* __INSANE_H__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?