📄 ip -
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>安全文章</title>
</head>
<body>
<table width="768" border="1" height="46" bordercolor="5296ff" class="9ptzh">
<tr>
<td height="43" bordercolor="ffffff" bgcolor="ffffff">
<table width="758" bgcolor="ffffff" bordercolor="ffffff" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="145" > </td>
<td width="609" height="40" align="center"><img border="0" src="163.gif" width="491" height="54"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="752" height="18" align="center" valign="top">
<p align="left"> <a href="http://www.aqwl.com">首页</a>
| <a href="http://202.102.201.180/cnhk/gj.htm">软件下载</a> | <a href="911.htm">最新技术</a>
| <a href="911.htm">在线杀毒</a> | <a href="911.htm">安全新闻</a>
| <a href="911.htm">技术文库</a> | <a href="http://www.aq.ah163.net/cnhk/cgi-bin/lb/leoboard.cgi" target="_blank">技术论坛</a>
| <a href="911.htm" target="_blank">本站介绍</a> |</p>
</td><!-- 本站不可更改的<img src=http://202.103.132.176/cgi-bin/Count.cgi?df=cnhk.dat&ft=4 border=0>计数器2002年3月1日起 -->
</tr>
</table>
<table width="765" border="1" cellspacing="0" height="310" bordercolor="#ADCBEF">
<tr>
<td valign="top" width="96" height="377" bgcolor="#ADCBEF">
</td>
<td valign="top" width="504" height="377">
<table border="0" cellPadding="0" cellSpacing="0" width="560" height="40">
<tbody>
<tr>
<th class="f24" height="19">IP头格式</th>
</tr>
<tr>
<td height="21">
<hr SIZE="1" bgcolor="#d9d9d9">
</td>
</tr>
</tbody>
</table>
<p>先是常用的IP头格式。<br>
<br>
IP头格式<br>
===========<br>
<br>
版本号 (4位)<br>
IP头长度 (4位)<br>
服务类型 (8位)<br>
数据包长度 (16位)<br>
标识段 (16位)<br>
标志段 (16位)<br>
生存时间 (8位)<br>
传输协议 (8位)<br>
头校验和 (16位)<br>
发送地址 (16位)<br>
目标地址 (16位)<br>
选项<br>
填充<br>
<br>
<br>
<br>
简单说明<br>
============<br>
<br>
1. IP头长度计算所用单位为32位字,
常用来计算数据开始偏移量<br>
2. 数据包长度用字节表示, 包括头的长度,
因此最大长度为65535<br>
字节<br>
3. 生存时间表示数据被丢失前保存在网络上的时间,
以秒计.<br>
4. 头校验和的算法为取所有16位字的16位和的补码.<br>
5. 选项长度是可变的, 填充区域随选项长度变化,
用于确保长度<br>
为整字节的倍数.<br>
<br>
<br>
<br>
C 描述<br>
============<br>
<br>
struct iphdr {<br>
BYTE versionihl;<br>
BYTE tos;<br>
WORD tot_len;<br>
WORD id;<br>
WORD frag_off;<br>
BYTE ttl;<br>
BYTE protocol;<br>
WORD check;<br>
DWORD saddr;<br>
DWORD daddr;<br>
/* Put options here. */<br>
};<br>
<br>
<br>
<br>
</td>
</tr>
</table>
<p><font face="宋体">
建议您使用 <font face="Verdana, Arial, Helvetica, sans-serif">IE</font>
浏览器 <font color="#FF0000" face="Verdana, Tahoma, Times New Roman, 宋体, MS Sans Serif">800×600</font>
分辩率浏览以获最佳效果<br>
<br>
中国网络安全中心<br>
<font face="Verdana, Tahoma, Times New Roman, 宋体, MS Sans Serif">Copyright ©
2000-2001 CN NetSafe Group. All RightsReserved.</font></font><br>
如有任何问题及建议请写信至<a href="mailto:cnhk2003@sina.com"><font color="#000000" face="Verdana, Tahoma, Times New Roman, 宋体, MS Sans Serif">cnhk2003@sina.com</font></a>
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -