⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tcphdr.h

📁 一个网络流量分析的完整的程序
💻 H
字号:
/* * Reconstruction of the TCP header structure, slightly modified.  With * provisions for little- and big-endian architectures. */ #include <sys/types.h>#include <endian.h>struct tcphdr {	u_int16_t	source;	u_int16_t	dest;	u_int32_t	seq;	u_int32_t	ack_seq;#if __BYTE_ORDER == __LITTLE_ENDIAN	u_int16_t	res1:4,			doff:4,			fin:1,			syn:1,			rst:1,			psh:1,			ack:1,			urg:1,			res2:2;#elif __BYTE_ORDER == __BIG_ENDIAN	u_int16_t	doff:4,			res1:4,			res2:2,			urg:1,			ack:1,			psh:1,			rst:1,			syn:1,			fin:1;#endif	u_int16_t	window;	u_int16_t	check;	u_int16_t	urg_ptr;};

⌨️ 快捷键说明

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