This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: dumb question re getnetbyname
Ulrich Drepper <drepper@cygnus.com> writes:
|> Zack Weinberg <zack@rabi.columbia.edu> writes:
|>
|> > Is the `net' argument to getnetbyname in host or network byte order?
|>
|> I assume you mean getnetbyaddr?
|>
|> The XSH draft getnetbyaddr but not the actual semantic. The n_net
|> element in struct netent is defined to contain the value on host byte
|> order so I assume the parameter has to be in the same byte order.
SunOS4 (still usefull, isn't it?) manpage says that the argument of
getnetbyaddr is in host order.
Andreas.