已阅读5页,还剩4页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
IP协议族协议头结构(含 c声明 和 rfc 字符图示)/IP协议族协议头结构(含c声明和rfc字符图示)/Jurassic2003.3.6created./*+TCPHeaderFormat012301234567890123456789012345678901+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|SourcePort|DestinationPort|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|SequenceNumber|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|AcknowledgmentNumber|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Data|U|A|P|R|S|F|Offset|Reserved|R|C|S|S|Y|I|Window|G|K|H|T|N|N|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Checksum|UrgentPointer|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Options|Padding|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|data|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+TCPHeaderFormatRFC-793-*/typedefstruct_tcphdrunsignedshortsource;/原端口地址unsignedshortdest;/目的端口地址unsignedlongseq;/序号unsignedlongack_seq;/确认号unsignedshortdoff:4;/首部长度unsignedshortresl:4;/保留unsignedshortcwr:1;/控制unsignedshortece:1;unsignedshorturg:1;unsignedshortack:1;unsignedshortpsh:1;unsignedshortrst:1;unsignedshortsyn:1;unsignedshortfin:1;unsignedshortwindow;unsignedshortcheck;unsignedshorturg_ptr;tcphdr;/*+IPHeaderFormat012301234567890123456789012345678901+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Version|IHL|TypeofService|TotalLength|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Identification|Flags|FragmentOffset|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|TimetoLive|Protocol|HeaderChecksum|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|SourceAddress|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|DestinationAddress|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Options|Padding|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+IPHeaderFormatRFC-791-*/typedefstruct_iphdrunsignedcharversion:4;/版本unsignedcharihl:4;/首部长度unsignedchartos;/服务类型unsignedshorttot_len;/总长度unsignedshortid;/标志unsignedshortfrag_off;/分片偏移unsignedcharttl;/生存时间unsignedcharprotocol;/协议unsignedcharcheck;/检验和unsignedlongsaddr;/源IP地址unsignedlongdaaddr;/目的IP地址iphdr;/*+UDPHeaderFormat0781516232431+-+-+-+-+|sourceaddress|+-+-+-+-+|destinationaddress|+-+-+-+-+|zero|protocol|UDPlength|+-+-+-+-+UDPHeaderFormatRFC-768-*/typedefstruct_udphdrunsignedshortsource;unsignedshortdest;unsignedshortlen;unsignedshortcheck;udphdr;/*+ICMPHeaderFormat012301234567890123456789012345678901+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Type|Code|Checksum|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|unused|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|InternetHeader+64bitsofOriginalDataDatagram|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ICMPHeaderFormatRFC-792-*/typedefstruct_icmphdrunsignedchartype;/类型unsignedcharcode;/代码unsignedshortchecksum;/校验和unionstructunsignedshortid;/标识符unsignedshortsequence;/序号echo;unsignedlonggateway;/目标路由器的IP地址structunsignedshortunused;/unsignedshortmtu;frag;un;icmphdr;/*+IGMPHeaderFormat012301234567890123456789012345678901+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Type|Code|Checksum|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Identifier|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|GroupAddress|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|+AccessKey+|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+IGMPHeaderFormatRFC-988-*/typedefstruct_igmphdrunsignedchartype;unsignedcharcode;/*FornewerIGMP*/unsignedshortcsum;unsignedlonggroup;igmphdr;/*+IPv6HeaderFormat+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Ver.|IHL|TOS|TotalLength|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|Identification|Flags|FragmentOffset|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|1|1|1|1|1|0|Offset|Reserved|SourceIPaddresspart1|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|1|1|1|1|1|0|Offset|Reserved|DestinationIPaddresspart1|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+:Options:+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+:SADDRCode|Lenadr.part2|SourceIPaddresspart2:+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+:DADDRCode|Lenadr.part2|DestinationIPaddresspart2:+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+:Data:+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+IPv6HeaderFormatRFC-1365-*/typedefstruct_ipv6hdrunsignedcharversion:4;unsignedcharpriority:4;unsignedcharflow_lbl3;unsignedshortpayload_len;unsignedcharnexthdr;unsignedcharhop_limit;/structin6_addrsaddr;/structin6_addrdaddr;ipv6hdr;/code当然,为了口中餐,为了未来贴身mm,为了给她备房备车:),不得不停了下来。下面的是未整理的结构。有时间的话,我会继续整理,也欢迎网友补充。code/*ThisisanEthernetframeheader.*/typedefstruct_ethhdr/unsignedcharh_destETH_ALEN;/destinationethaddr/unsignedcharh_sourceETH_ALEN;/sourceetheraddr/unsignedshorth_proto;/packettypeIDfieldethhdr;/FDDI/*Define802.2Type1header*/structfddi_8022_1_hdr/_u8dsap;/*destinationserviceaccesspoint*/_u8ssap;/*sourceserviceaccesspoint*/_u8ctrl;/*controlbyte#1*/_attribute_(packed);/*Define802.2Type2header*/structfddi_8022_2_hdr/_u8dsap;/*destinationserviceaccesspoint*/_u8ssap;/*sourceserviceaccesspoint*/_u8ctrl_1;/*controlbyte#1*/_u8ctrl_2;/*controlbyte#2*/_attribute_(packed);/*Define802.2SNAPheader*/#defineFDDI_K_OUI_LEN3/structfddi_snap_hdr/_u8dsap;/*always0xAA*/_u8ssap;/*always0xAA*/_u8ctrl;/*always0x03*/_u8ouiFDDI_K_OUI_LEN;/*organizationaluniversalid*/_u16ethertype;/*packettype
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 公司保洁外包合同
- 公司直招签外包合同
- 内部财务外包合同
- 制剂室服务外包合同
- 动画宣传片外包合同
- 北京中原外包合同
- 医院绩效外包合同
- 单位让签外包合同
- 厂里自动化外包合同
- 叶面肥销售外包合同
- 2026年安徽省淮南市重点学校小升初数学考试真题试卷(含答案)
- GA/T 2327-2025法庭科学资金数据分析软件技术要求
- 2025年实验室电气安全培训课件
- 防水工程施工企业安全生产隐患自查自纠整改落实报告
- 小学语文阅读理解高频词汇集
- 品质多漏错反培训课件
- 三查八对培训课件
- 2025年职工职业技能竞赛(泵站运行工赛项)参考试指导题库(含答案)
- 农业土地租赁合同模板范本
- 产科大出血的麻醉与手术团队协同处理
- 2024~2025学年上海市普陀区统编版五年级下册期末考试语文试卷
评论
0/150
提交评论