dumb question re getnetbyname
Andreas Schwab
schwab@issan.cs.uni-dortmund.de
Fri Apr 30 01:27:00 GMT 1999
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.
More information about the Libc-hacker
mailing list