- 论坛徽章:
- 0
|
在FreeBSD中能否实现响应ping命令时只返回固定的包长?如对端用1000 bytes的包长ping,我只返回56 bytes?
如:
C:\>ping www.sina.com.cn -l 1000
Pinging jupiter.sina.com.cn [218.30.66.101] with 1000 bytes of data:
Reply from 218.30.66.101: bytes=56 (sent 1000) time=43ms TTL=244
Reply from 218.30.66.101: bytes=56 (sent 1000) time=42ms TTL=244
Reply from 218.30.66.101: bytes=56 (sent 1000) time=42ms TTL=244
Reply from 218.30.66.101: bytes=56 (sent 1000) time=42ms TTL=244
Ping statistics for 218.30.66.101:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 42ms, Maximum = 43ms, Average = 42ms
C:\>
[ 本帖最后由 bbssdd01 于 2008-4-8 17:23 编辑 ] |
|