sön 2007-05-20 klockan 23:53 -0600 skrev Adrian Chadd:

>   use inet_ntoa() for now; my optimised code was getting the octets backward
>   on my PPC; even when I tried using ntohl(). I'll fix this one day..

ntohl is a nop on PPC and other big-endian systems..

You need to parse the address in host order, then use htonl to mangle it
into the common network byte order..

Or alternatively parse it raw into network byte order by using a char*.

Regards
Henrik

Attachment: signature.asc
Description: Detta är en digitalt signerad meddelandedel

Reply via email to