ChinaUnix.net
相关文章推荐:

IP首部的identification

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28922/showart_334938.html

by atyu30 - BSD文档中心 - 2007-07-05 16:54:49 阅读(974) 回复(0)

相关讨论

ip数据报的格式如图3-1所示。普通的ip首部长为20个字节,除非含有选项字段。 图3-1 ip数据报格式及首部中的各字段 分析 图3-1中的首部。最高位在左边,记为0bit;最低位在右边,记为31bit。 4个字节的32bit值以下面的次序传输:首先是0~7bit,其次8~15bit,然后16~23bit,最后是24~31bit。这种传输次序称作bigendian字节序。由于 TCP /ip首部中所有的二进制整数在网络中传输时都要求以这种次序,因此它又称作网络字节序。以其...

by godchild_pan - 网络技术文档中心 - 2007-05-12 19:49:10 阅读(673) 回复(0)

看了一个源代码,里面有个关于tcp/ip首部校验和的算法,不太明白啊,望大家解释下原理 tcp->check=check_sum((unsigned short *)tcp,sizeof(struct tcphdr)); unsigned short check_sum(unsigned short * addr, int len) { register int nleft=len; register int sum=0; register short *w=addr; short answer=0; while(nleft>1) { sum=sum+*w++; nleft=nleft-2; } if(nleft==1) { ...

by wheniwasyoung - C/C++ - 2009-09-04 23:27:06 阅读(5994) 回复(8)

我想设置最小延迟 但不知道方法对不对 请问是不是我下面的方法 如果不对正确的方法是什么 感激涕零:em02: #include #include #include ip.h> int main(void) { struct ip ip; ip.ip_tos = ipTOS_TOP(ipTOS_LOWDELAY); ............. exit(0); }

by fcloudf - C/C++ - 2007-07-18 19:19:06 阅读(1405) 回复(0)

RT.在没有root权限的情况下

by lifeixiao - C/C++ - 2005-12-29 15:53:33 阅读(891) 回复(2)

sum=(sum>>16)+(sum&0xffff); sum+=(sum>>16); answer=~sum; 这里又移16位是什么意思?是和网络字节序有关么? 谢谢赐教 刚才整理了一下,写了个详解,请看:http://blog.chinaunix.net/u1/53217/showart_1145005.html [ 本帖最后由 zuii 于 2008-8-23 10:39 编辑 ]

by zuii - C/C++ - 2008-06-18 21:17:04 阅读(2215) 回复(4)

tracert工具的原理 Traceroute程序的设计是利用ICMP及ip header的TTL(Time To Live)栏位(field)。首先,traceroute送出一个TTL是1的ip datagram(其实,每次送出的为3个40字节的包,包括源地址,目的地址和包发出的时间标签)到目的地,当路径上的第一个路由器(router)收到这个datagram时,它将TTL减1。此时,TTL变为0了,所以该路由器会将此datagram丢掉,并送回一个「ICMP time exceeded」消息(包括发ip包的源地址,ip包的...

网络技术

by jian_g_ - 网络技术文档中心 - 2008-01-05 21:22:40 阅读(2682) 回复(0)

ip协议头是前32位是: 4位版本+4位首部长度+8位服务类型+16位总长度 问一下如何给4位版本号赋值,并取出他的值啊~~

by hua_xg - C/C++ - 2007-07-07 17:18:35 阅读(4077) 回复(15)

Feature Overview The PPPoE RADIUS Port identification feature enables an L2TP access concentrator (LAC) and an LT2P network server (LNS) to identify and forward NAS-Port and NAS-Port-Type attribute values for PPP over Ethernet (PPPoE) over ATM and PPPoE over IEEE 802.1Q VLANs. Before the introduction of the PPPoE RADIUS Port identification feature, if you were using PPP over ATM, you could use t...

by 兰德华庭 - 网络技术文档中心 - 2014-11-17 01:04:53 阅读(5595) 回复(2)

# ssh root@10.0.0.200 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST identification HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. ...

by atyu30 - BSD文档中心 - 2007-09-29 11:25:11 阅读(993) 回复(0)

在scsi inquery查询中,可以分别查询Unit serial number 和 Device identification。不知道这两个有什么区别呢? 谢谢

by xiegang112 - Veritas技术交流区 - 2009-02-02 09:50:40 阅读(2078) 回复(4)