Re: IOR problem on IRIX
- From: Stéphane Genaud <genaud icps u-strasbg fr>
- To: orbit-list gnome org
- Subject: Re: IOR problem on IRIX
- Date: Mon, 25 Sep 2000 19:50:10 +0200
Elliot Lee wrote:
>
> On Mon, 25 Sep 2000, [iso-8859-1] Stéphane Genaud wrote:
>
> > When i decode the ior (with
> > http://www.parc.xerox.com/istl/projects/ILU/parseIOR/)
> > i have the host number seems to be kind of broadcast : it's IP is
> > 255.255.255.255
> > The brief parsing gives :
> >
> > object key is
> > <#00#00#00#00#A07#CA#88#8A#BB#B8L#00#00#00#01#CD#00#FB#E2#E6#C4#18q>;
> > no trustworthy most-specific-type info; unrecognized ORB;
> > reachable with IIOP 1.0 at host "255.255.255.255", port 2256
> >
> > If i swap the client and the server, i.e the server on the linux box,
> > and the client on
> > the IRIX system, all work fine. I have in ~/.orbitrc :
> > ORBIIOPIPv4=1
> > -ORBIIOPIPv4=1
> >
> > Decoding IOR generated on the linux box gives the exact IP of the linux
> > system.
> > Any idea why is 255.255.255.255 encoded in the IOR ?
>
> Maybe gethostbyname() or gethostbyaddr() is not working because /etc/hosts
> broken on the IRIX box - you need to be able to turn gethostname() into an
> IP address and back into a hostname...
Well, i have tested gethostbyname() and gethostbyaddr() on the IRIX box
with
the following lines and it seems to be working fine. Furthermore, i
tested
it on another IRIX Box and it produced the same encoding.
Is there any debugging flag that could be turned on to see what is put
in
the host field ? I have tried to find this in the sources, but lost
myself
after i looked in the CDR_codec struct.
Thanks.
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
struct hostent *e,*f;
void main(int argc,char *argv[]) {
e = gethostbyname(argv[1]);
printf("addr[0]=%s\n",inet_ntoa(*((struct in_addr
*)e->h_addr_list[0])));
f = gethostbyaddr (e->h_addr_list[0],e->h_length,e->h_addrtype);
printf("name=%s",f->h_name);
printf("addr[0]=%s\n",inet_ntoa(*((struct in_addr
*)f->h_addr_list[0])));
}
S.G.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]