[torquedev] get_fullhostname question

Matti Bickel cat5 at minet.uni-jena.de
Sat Aug 18 03:57:40 MDT 2007


Hi folks.
I'm trying to rewrite get_fullhostname in lib/Libnet/get_hostname.c
There's this snippet:

if ((pcolon = strchr(shortname,':')) != NULL) {
     *pcolon = '\0';
     if (*(pcolon - 1) == '\\') {
       pbkslh = pcolon - 1;
       *pbkslh = '\0';
     }
}

Obviously, there's some cutting going on. Having only cursory glances at
the code, i don't understand why that's needed in DNS code.

Can somebody illustrate example input for this function?
-- 
Regards, Matti Bickel
Signed/Encrypted email preferred (key 4849EC6C)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torquedev/attachments/20070818/e161c1dc/attachment.bin


More information about the torquedev mailing list