IP头和TCP头数据结构(C#版)
来源:互联网 发布:tcp监听端口 编辑:程序博客网 时间:2024/05/05 19:40
IP头和TCP头数据结构(C#版)
public struct ip_hdr //IP头
{
public byte h_lenver; //4位首部长度+4位IP版本号
public byte tos; //8位服务类型TOS
public ushort total_len; //16位总长度(字节)
public ushort ident; //16位标识
public ushort frag_and_flags; //3位标志位+13报片偏移
public byte ttl; //8位生存时间 TTL
public byte proto; //8位协议 (TCP, UDP 或其他)
public ushort checksum; //16位IP首部校验和
public uint sourceIP; //32位源IP地址
public uint destIP; //32位目的IP地址
}
public struct tcp_hdr //TCP头
{
public ushort th_sport; //16位源端口
public ushort th_dport; //16位目的端口
public uint th_seq; //32位序列号
public uint th_ack; //32位确认号
public byte th_lenres; //4位首部长度/6位保留字
public byte th_flag; //6位标志位
public ushort th_win; //16位窗口大小
public ushort th_sum; //16位校验和
public ushort th_urp; //16位紧急数据偏移量
}
public struct ip_hdr //IP头
{
public byte h_lenver; //4位首部长度+4位IP版本号
public byte tos; //8位服务类型TOS
public ushort total_len; //16位总长度(字节)
public ushort ident; //16位标识
public ushort frag_and_flags; //3位标志位+13报片偏移
public byte ttl; //8位生存时间 TTL
public byte proto; //8位协议 (TCP, UDP 或其他)
public ushort checksum; //16位IP首部校验和
public uint sourceIP; //32位源IP地址
public uint destIP; //32位目的IP地址
}
public struct tcp_hdr //TCP头
{
public ushort th_sport; //16位源端口
public ushort th_dport; //16位目的端口
public uint th_seq; //32位序列号
public uint th_ack; //32位确认号
public byte th_lenres; //4位首部长度/6位保留字
public byte th_flag; //6位标志位
public ushort th_win; //16位窗口大小
public ushort th_sum; //16位校验和
public ushort th_urp; //16位紧急数据偏移量
}
- IP头和TCP头数据结构(C#版)
- IP头、TCP头、UDP头
- IP头、TCP头、UDP头
- IP头TCP头的checksum校验和计算
- TCP/IP头格式
- TCP/IP头结构
- TCP/IP头格式
- TCP/UDP/IP头
- TCP/IP头格式
- TCP/IP头
- TCP/IP头结构
- TCP/IP头结构
- linux下原始ip数据包包头(tcp头、udp头)的获取和分析
- pcap头+Ethernet头+IP头+TCP头
- IP头,TCP头,UDP头,MAC帧头定义
- IP头,TCP头,UDP头,MAC帧头定义
- IP头,TCP头,UDP头,MAC帧头定义
- IP头,TCP头,UDP头,MAC帧头定义
- 世界上最经典的话语
- 花生壳使用方法
- 个人网站后SP时代走上专业化转型之路
- 互联网成为中国公益活行动的辽阔平台
- BitComet(比特彗星) 0.90 [2007年06月19日][4,564KB]
- IP头和TCP头数据结构(C#版)
- 我的第一个J2ME程序
- C语言之void 指针问题
- C语言视频教程 谭浩强编,曾怡教授讲解!
- 常用数据库JDBC连接写法
- 技术视点:Web Services带来了什么
- 严蔚敏《数据结构(C语言版)视频教程》下载地址
- 孙鑫老师 java从入门到精通 视频教程 批量下载
- 有关内存管理的一些问题