[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kxd: getnameinfo failed




I'm trying to use kx between two x86 redhat 8 machines, but kxd
complains that getnameinfo fails. Some debugging reveals that this
call at line 230 recv_conn, kxd.c fails with -6 (EAI_FAMILY) as return
value:

     ret = getnameinfo((struct sockaddr *)&kc->thataddr, kc->thataddr_len,
		       remoteaddr, sizeof(remoteaddr), 
		       NULL, 0, NI_NUMERICHOST);

Name resolving works fine on the machines.

Gdb claims that the address is AF_INET, but the address looks
unfamiliar to me.

(gdb) print /x *((struct sockaddr_in *) kc->thataddr)
$6 = {sin_family = 0x2, sin_port = 0x8093, sin_addr = {s_addr = 0x400f6980}, 
  sin_zero = {0xe0, 0x86, 0x0, 0x42, 0xd8, 0x6b, 0xf, 0x40}}


Does anybody have any idea of what goes wrong?

/Lalle