Re: kaa rpc and IPV6

A Mennucc <[email protected]> Tue, 01 Nov 2011 17:26:27 +0100
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>
Il 01/11/2011 15:49, Jason Tackaberry ha scritto:

kaa.Socket (which kaa.rpc uses) will prefer IPv6 over IPv4, but
definitely shouldn't do that at the expense of breaking IPv4.
There's something particular about your configuration that
kaa.Socket isn't handling properly.

Can you provide the output of:

$ ip addr ls

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
state UNKNOWN

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500
qdisc pfifo_fast state UP qlen 1000

link/ether 90:e6:ba:70:a8:3c brd ff:ff:ff:ff:ff:ff

inet 192.168.0.23/24 brd 192.168.0.255 scope global
eth0

inet6 fe80::92e6:baff:fe70:a83c/64 scope link

valid_lft forever preferred_lft forever

$
ip ro ls

# ip ro ls

192.168.0.0/24 dev eth0 proto kernel scope link src
192.168.0.23

default via 192.168.0.1 dev eth0

$
ip -6 ro ls

# ip -6 ro ls

fe80::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440
hoplimit 0

$
host localhost

# host -v localhost.

Trying "localhost"

Received 102 bytes from 8.8.4.4#53 in 49 ms

Trying "localhost"

Host localhost. not found: 3(NXDOMAIN)

Received 102 bytes from 8.8.4.4#53 in 47 ms

(this is correct AFAIK : localhost is not something you
should get from DNS, ever)

$
cat /etc/hosts

see attachment

$
python -c 'import socket; print socket.getaddrinfo("localhost",
19999, socket.AF_INET6, socket.SOCK_STREAM, 0,
socket.AI_V4MAPPED | socket.AI_ALL)'

[(2, 1, 6, '', ('127.0.0.1', 19999))]

but if in /etc/hosts I add 'localhost' to the line that starts
'::1' ( where ip6-localhost is ) , then this changes to

[(10, 1, 6, '', ('::1', 19999, 0, 0)), (2, 1, 6, '', ('127.0.0.1',
19999))]

$
python -c 'import socket; print socket.getaddrinfo("127.0.0.1",
19999, socket.AF_INET6, socket.SOCK_STREAM, 0,
socket.AI_V4MAPPED | socket.AI_ALL)'

[(10, 1, 6, '', ('::ffff:127.0.0.1', 19999, 0, 0))]

(and this does not change as above)

Thanks for the thorough troubleshooting! Hopefully the output of
above will help converge on the problem.

I can also tell that the freevo-box is running Debian/squeeze/i386 ,
and uses Python 2.6.6

thank you!

a.

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel
hosts (text/plain, 607 B)
127.0.0.1	localhost localhost.localdomain
192.168.0.43    frivolo.wifi
192.168.0.23    frivolo frivolo.fixed

::1		ip6-localhost ip6-loopback
fe00::0		ip6-localnet
ff00::0		ip6-mcastprefix
ff02::1		ip6-allnodes
ff02::2		ip6-allrouters
ff02::3		ip6-allhosts

192.84.155.215 tonelli.sns.it tonelli

192.168.0.1	flip flip.fixed
192.168.0.21    etabeta etabeta.fixed
192.168.0.22    snoopy snoopy.fixed
192.168.0.24    pingu pingu.fixed
192.168.0.26    minnie minnie.fixed
192.168.0.28    pluto pluto.fixed

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
signature.asc (application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6wHbMACgkQ9B/tjjP8QKQ2MwCfSOyIF4LmPIB/+cqL0QYQVxRX
SAQAoIaFPcxMoQMJlga0/QyDN1uSRApw
=3GbS
-----END PGP SIGNATURE-----