读了一下 inet_aton 的源码(
https://android.googlesource.com/platform/bionic/+/donut-release/libc/inet/inet_aton.c),好像挺宽松的,发现了一些有趣的玩法:$ ping 127.1
PING 127.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.054 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.077 ms
$ ping "0x08080808 hello world"
PING 0x08080808 hello world (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=45 time=354.877 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=45 time=586.866 ms