snap.h

来自「一个学习SNMP项目:tmoerlan.」· C头文件 代码 · 共 30 行

H
30
字号
/* * INET		An implementation of the TCP/IP protocol suite for the LINUX *		operating system.  INET is implemented using the  BSD Socket *		interface as the means of communication with the user level. * *		Definitions for the SNAP protocol. * */#ifndef _SNAP_H#define _SNAP_H#include <sys/cdefs.h>#include <sys/types.h>struct snaphdr {  u_int32_t saddr;  u_int32_t daddr;  u_int8_t version;		/* SNAP version */  u_int8_t flags;		/* any flags */  u_int16_t sport;		/* source port (for errors) */  u_int16_t entry_point;	/* entry point (# instrs) */  u_int16_t code_sizeb;		/* code size in bytes */  u_int16_t heap_sizeb;		/* heap size in bytes */  u_int16_t stack_sizeb;	/* stack size in bytes */};#define IPPROTO_SNAP 130#endif	/* snap.h */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?