Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!gatech!ncsuvx!cscosl.ncsu.edu!map From: map@cscosl.ncsu.edu (Mark Parris) Newsgroups: comp.unix.ultrix Subject: Problem with getservbyname (Ultrix-32 V3.0 (Rev 64) ) Message-ID: <3459@ncsuvx.ncsu.edu> Date: 21 Jul 89 18:49:41 GMT Sender: news@ncsuvx.ncsu.edu Reply-To: mcnc!cscosl!map (Mark Parris) Distribution: usa Organization: Operating Systems Laboratory (OSL), NCSU, Raleigh NC Lines: 20 I've encountered what appears to be a bug with the getservbyname C library call under Ultrix 3.0. Any help would be appreciated. When I attempt to get the port address of a service using getservbyname the port number that is returned is the actual port number times 256 (or shifted 8?) mod 65535. I can use this number in the getservbyport and it returns the same port. The true port value returns a null. Is this a documented bug? If so, is there a fix for it? If not, any ideas on what I might be doing wrong? Any suggestions would be appreciated. Thanks, Mark Parris *** Please email, I will post a summary of responses. *** ----------------------------------------------------------------------------- Mark Parris mcnc.org!cscosl!map Please E-mail. I will summarize.