当前位置: 技术问答>linux和unix
linux ping 程序校验码问题
来源: 互联网 发布时间:2017-04-14
本文导语: linux ping程序中只设置了ICMP,校验码也只计算ICMP。IP的校验码怎么没计算 | Linux是有协议栈的,ICMP组包完成后就会下发到IP层,IP层自动就给你算好了。不用担心。 | ...
linux ping程序中只设置了ICMP,校验码也只计算ICMP。IP的校验码怎么没计算
|
Linux是有协议栈的,ICMP组包完成后就会下发到IP层,IP层自动就给你算好了。不用担心。
|
IP_HDRINCL (since Linux 2.0)
If enabled, the user supplies an IP header in front of the user data. Only valid for SOCK_RAW sockets.
See raw(7) for more information. When this flag is enabled the values set by IP_OPTIONS, IP_TTL and
IP_TOS are ignored.
If enabled, the user supplies an IP header in front of the user data. Only valid for SOCK_RAW sockets.
See raw(7) for more information. When this flag is enabled the values set by IP_OPTIONS, IP_TTL and
IP_TOS are ignored.