This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: dumb question re getnetbyname
- To: Zack Weinberg <zack@rabi.columbia.edu>
- Subject: Re: dumb question re getnetbyname
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 29 Apr 1999 11:29:07 -0700
- Cc: libc-hacker@cygnus.com
- References: <199904291718.NAA09535@blastula.phys.columbia.edu>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------