The value passed to getservbyport is compared with another integer
(s_port in struct servent), which ist set to `ntohs(something)'.
In case of telnet, this is ntohs(23) == 0x1700. The value of
htonl(23) is 0x17000000 which is *wrong*.
Michael.
-- Michael "Tired" Riepe <riepe@ifwsn4.ifw.uni-hannover.de> "Beware the storm that gathers here!" (The Prophet's Song)