[6346] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: vax,mips getservbyport()

daemon@ATHENA.MIT.EDU (dkk@ATHENA.MIT.EDU)
Tue Nov 6 03:01:36 1990

From: dkk@ATHENA.MIT.EDU
Date: Tue, 6 Nov 90 03:01:26 -0500
To: Ken Raeburn <Raeburn@MIT.Edu>
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: Ken Raeburn's message of Mon, 5 Nov 90 16:14:42 -0500,


> Did you remember to use htons(79) instead of 79?
> The network routines usually want net-order values...

No, that was the problem.  Thanks.

May I suggest that the man page description of getservbyport() mention
that network byte order is necessary?  The description of struct
servent, for the returned data, mentions (under s_port) that port
numbers are returned in net byte order, but I didn't read that before
because it didn't seem relevant to the passed args.


home help back first fref pref prev next nref lref last post