>#if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) > curr_skt->sin_family = AF_INET; /*Internet family */ >#else > curr_skt->sin_family = htons(AF_INET); /*Internet family */ >#endif > >I suspect that this code is wrong and the address family should always be >given in host order. This just happens to work on sun and aix because they >run on big-endian processors. Not sure about linux.
I think you're right; I don't think I've ever seen anyone ever use htons on the address family. --Ken _______________________________________________ OpenAFS-devel mailing list [email protected] https://lists.openafs.org/mailman/listinfo/openafs-devel
