home tags events about login
one honk maybe more

benjojo posted 07 Apr 2026 11:05 +0000

inet_aton wins again

Here I was waiting for output on a tcpdump -ni any host 3306... that should have been port 3306, but of course in the world of inet_aton "3306" is a valid IP address of 0.0.12.234!

Thanks inet_aton!

benjojo replied 07 Apr 2026 13:57 +0000
in reply to: https://toot.io/users/hisold/statuses/116363687499422688

@hisold

[14:57:14] ben@metropolis:~$ ping 2130706433
PING 2130706433 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.084 ms
^C
--- 2130706433 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.084/0.084/0.084/0.000 ms

yup