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

📄 tcp.h

📁 mgcp协议源代码。支持多种编码:g711
💻 H
字号:
/**************************************************************************** **** File: tcp.h**** Author: Mike Borella**** Comments: Generic TCP header structure - an attempt at OS independence*******************************************************************************/#define TH_FIN  0x01#define TH_SYN  0x02#define TH_RST  0x04#define TH_PUSH 0x08#define TH_ACK  0x10#define TH_URG  0x20#define TCPOPT_EOL      0#define TCPOPT_NOP      1#define TCPOPT_MAXSEG   2extern unsigned int current_ip_src_port;extern unsigned int current_ip_dst_port;/* * TCP header */typedef struct _TCPHdr{        u_int16_t th_sport;               /* source port */        u_int16_t th_dport;               /* destination port */        u_int32_t th_seq;                 /* sequence number */        u_int32_t th_ack;                 /* acknowledgement number */#ifdef WORDS_BIGENDIAN        u_int8_t  th_off:4,               /* data offset */                  th_x2:4;                /* (unused) */#else        u_int8_t  th_x2:4,                /* (unused) */                  th_off:4;               /* data offset */#endif        u_int8_t  th_flags;        u_int16_t th_win;                 /* window */        u_int16_t th_sum;                 /* checksum */        u_int16_t th_urp;                 /* urgent pointer */} TCPHdr;void dump_tcp(u_char *, int);

⌨️ 快捷键说明

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