 justin Australian join:1999-05-28 Brooklyn, NY
Host: IPv6 Business Connectiv.. Home/Office setup .. Console/Handheld g.. Console Tech
| netstat segmentation fault Is this still the current net-tools?
»www.tazenda.demon.co.uk/phil/net-tools/
Because version 1.60 netstat segmentation faults on more than one of our boxes, and the way I fix it is to edit netstat.c and change "int inode" to "unsigned int inode" in the three places that is used, and recompile.
It coredumps because the hash function hashes a negative inode number to a negative hash array number.
I'm writing this because I spent quite a while googling for the problem and while I saw a number of posts complaining about core dumping netstat I never saw a post explaining the reason. |