当前位置: 技术问答>linux和unix
请教个TCPIP详解V1 icmpaddrmask的问题
来源: 互联网 发布时间:2016-04-04
本文导语: sun% icmpaddrmask 140.252.13.63 received mask = ffffffe0, from 140.252.13.33 (from ourself) sun% icmpaddrmask sun received mask = ff000000, from 140.252.13.33 sun% icmpaddrmask localhost received mask = ff000000, from 127.0.0.1 广播和本机ip及l...
sun% icmpaddrmask 140.252.13.63
received mask = ffffffe0, from 140.252.13.33 (from ourself)
sun% icmpaddrmask sun
received mask = ff000000, from 140.252.13.33
sun% icmpaddrmask localhost
received mask = ff000000, from 127.0.0.1
广播和本机ip及localhost不是都直接丢到loopback driver里的吗,为什么广播的时候本机返回的mask不是ff000000呢?
自己运行网上的icmpaddrmask总是timeout,还请帮忙解答一下,谢谢。
received mask = ffffffe0, from 140.252.13.33 (from ourself)
sun% icmpaddrmask sun
received mask = ff000000, from 140.252.13.33
sun% icmpaddrmask localhost
received mask = ff000000, from 127.0.0.1
广播和本机ip及localhost不是都直接丢到loopback driver里的吗,为什么广播的时候本机返回的mask不是ff000000呢?
自己运行网上的icmpaddrmask总是timeout,还请帮忙解答一下,谢谢。
|
广播报文是先给驱动,然后再报上来给协议栈,所以是实际的网络掩码。而本机地址直接被短路了,不到驱动,所以是ff000000。