IP、TCP、UDP Header Struct
来源:互联网 发布:修改sql字段的属性 编辑:程序博客网 时间:2024/06/02 00:54
IP头结构体
typedef struct _IPHeader // 20字节的IP头
{
UCHAR iphVerLen; // 4位首部长度+4位IP版本号 | Version (4 bits) + Internet header length (4 bits)
UCHAR ipTOS; // 8位服务类型 | TOS Type of service
USHORT ipLength; // 16位封包总长度,即整个IP报的长度 | Total length
USHORT ipID; // 16位封包标识,惟一标识发送的每一个数据报 | Identification
USHORT ipFlags; // 3位标志位+13报片偏移 | Flags (3 bits) + Fragment offset (13 bits)
UCHAR ipTTL; // 8位生存时间,就是TTL | Time to live
UCHAR ipProtocol; // 8位协议,TCP、UDP、ICMP等 | Protocol
USHORT ipChecksum; // 16位IP首部校验和 | Header checksum
ULONG ipSource; // 32位源IP地址 | Source address
ULONG ipDestination; // 32位目标IP地址 | Destination address
} IPHeader, *PIPHeader;
TCP头视图
TCP头结构体
typedef struct _TCPHeader // 20字节的TCP头
{
USHORT sourcePort; // 16位源端口号 | Source port
USHORT destinationPort; // 16位目的端口号 | Destination port
ULONG sequenceNumber; // 32位序列号 | Sequence Number
ULONG acknowledgeNumber; // 32位确认号 | Acknowledgement number
UCHAR dataoffset; // 高4位表示数据偏移,低6位保留字 | Header length
UCHAR flags; // 6位标志位 | packet flags
USHORT windows; // 16位窗口大小 | Window size
USHORT checksum; // 16位校验和 | Header Checksum
USHORT urgentPointer; // 16位紧急数据偏移量 | Urgent pointer...still don't know what this is...
} TCPHeader, *PTCPHeader;
UDP头视图
UDP头结构体
typedef struct _UDPHeader
{
USHORT sourcePort; // 16位源端口号 | Source port
USHORT destinationPort; // 16位目的端口号 | Destination port
USHORT len; // 16位封包长度 | Sequence Number
USHORT checksum; // 16位校验和 | Acknowledgement number
} UDPHeader, *PUDPHeader;
转载:http://hi.baidu.com/wudu_ya/item/ba11ac36757420ee2784f4ac
- IP、TCP、UDP Header Struct
- IP TCP UDP header structure
- TCP、UDP、ICMP、IP header
- TCP-IP header
- TCP , IP segment struct
- TCP,UDP,IP 详解
- tcp,udp,ip functions
- TCP/IP-11-UDP
- TCP/UDP/IP基本知识
- IP/TCP/UDP checksum
- TCP/IP udp.c
- IP TCP UDP 结构
- TCP、IP、UDP协议
- TCP/UDP/IP头
- TCP/IP UDP
- TCP/IP、UDP、Socket
- TCP/UDP/IP分片
- TCP,UDP,IP总结
- 临时表空间收缩--Oracle 11g 新特性
- 分页(个人笔记,不具参考)
- Oracle “CONNECT BY” 使用
- 构造函数的一个小错误
- 《NLP with LingPipe》2.4 CrossValidation
- IP、TCP、UDP Header Struct
- mysql索引类型normal,unique,full text
- SPFA算法详解
- vmware samba“无法映射网络驱动器,找不到网络路径”(device cannot be mapped because no network is found)
- 创建多媒体APP 之 捕获图像:简单的拍录视频
- oracle exp/imp命令
- Discuz用户密码存储方式
- 计算机视觉方面的代码
- Linux 内核参数优化(for oracle)