* Problem with getservbyname on ALPHA/OSF1 box
@ 1998-04-15 4:00 howard
1998-04-16 4:00 ` Paul Black
1998-04-22 4:00 ` Burkhard Neidecker-Lutz
0 siblings, 2 replies; 3+ messages in thread
From: howard @ 1998-04-15 4:00 UTC (permalink / raw)
Hi guys
I've been porting an application to a DEC alpha box and I am having trouble
with getservbyname. Specifically after my call to getservbyname, the value of
the s_port field in the servent structure returned is 37146, which is nowhere
close to the value of the service I asked for. The s_name and s_proto fields
are fine, they are exactly what I asked for and exactly what is in the
services file. I checked, and we are definitely using the services file. Does
this ring a bell to anybody?
Thanks
Howard Lander
howard@tibinc.com
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with getservbyname on ALPHA/OSF1 box
1998-04-15 4:00 Problem with getservbyname on ALPHA/OSF1 box howard
@ 1998-04-16 4:00 ` Paul Black
1998-04-22 4:00 ` Burkhard Neidecker-Lutz
1 sibling, 0 replies; 3+ messages in thread
From: Paul Black @ 1998-04-16 4:00 UTC (permalink / raw)
howard@tibinc.com wrote:
> I've been porting an application to a DEC alpha box and I am having
trouble
> with getservbyname. Specifically after my call to getservbyname, the
value of
> the s_port field in the servent structure returned is 37146, which is
nowhere
> close to the value of the service I asked for. The s_name and
s_proto fields
> are fine, they are exactly what I asked for and exactly what is in
the
> services file. I checked, and we are definitely using the services
file. Does
> this ring a bell to anybody?
Were you by any chance after 6801 as the result?
If so, think network order.
Paul
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with getservbyname on ALPHA/OSF1 box
1998-04-15 4:00 Problem with getservbyname on ALPHA/OSF1 box howard
1998-04-16 4:00 ` Paul Black
@ 1998-04-22 4:00 ` Burkhard Neidecker-Lutz
1 sibling, 0 replies; 3+ messages in thread
From: Burkhard Neidecker-Lutz @ 1998-04-22 4:00 UTC (permalink / raw)
In article <6h2mrf$eq$1@nnrp1.dejanews.com> howard@tibinc.com writes:
>Hi guys
>
>I've been porting an application to a DEC alpha box and I am having trouble
>with getservbyname. Specifically after my call to getservbyname, the value of
>the s_port field in the servent structure returned is 37146, which is nowhere
>close to the value of the service I asked for.
Wild guess: The service you wanted has the number 6801 instead of 37146 ?
Could this be that the field is in network byte order (big-endian)
and you access it directly in host byte order (little-endian) without
the ntohs() call ?
Burkhard Neidecker-Lutz
EUROMEDIA - Distributed Multimedia Archives for Cooperative TV Production
CEC Karlsruhe , European Applied Research Center, Digital Equipment Corp.
email: neideck@kar.dec.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-04-22 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-15 4:00 Problem with getservbyname on ALPHA/OSF1 box howard
1998-04-16 4:00 ` Paul Black
1998-04-22 4:00 ` Burkhard Neidecker-Lutz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox