Hi guys: Recently, I just got in touch with toybox. And I have some puzzles about ping implementation.
(1) toybox uses unprivileged ICMP sockets to avoid unnecessary root privilege. However, it depends highly on kernel support. I can not use ping since my kernle is not linux and it does not support such usage. (2) toybox uses unprivileged ICMP but does not set socket with flag IP_HDRINCL. So, it is impossible to get ttl info when gets reply from aim host since we can not get ip header. Currently toybox will print "ttl = 0". I wonder if it is a balance of simple and feature. I assume there are some reasons I do not find. So, i just send a patch to fix some trivial issues in ping.c. Hope someone can solve my puzzles. best wishes.
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
