Johannes Gumbel | 12 Apr 2006 10:00

routing problems in scapy6

Hi,

I've gotten some problems when playing with scapy6. My biggest problem is
that scapys own routing selection algorithm doesn't seem to work 100%.

>>> conf.route6
::1/128                      :: lo    ::1
fe80::213:ceff:fe0d:ebc3/128 :: lo    ::1
fe80::250:56ff:fec0:1/128    :: lo    ::1
fe80::250:56ff:fec0:8/128    :: lo    ::1
fe80::/64                    :: eth1  fe80::213:ceff:fe0d:ebc3
fe80::/64                    :: vmnet1 fe80::250:56ff:fec0:1
fe80::/64                    :: vmnet8 fe80::250:56ff:fec0:8

My problem is that these rules are without exception:

scapy6.Route6.route_iface:
...
for d,p,nh,i,a in self.routes:
	    if i != iface:
		continue

	    if in6_isincluded(addr, d, p):
		pathes.append((p,(i,a,nh)))
...

As you can see there is no exception for e.g. ff02.

This means that even scapy6 internally fails to send packets to
ff02::1:ffe5:d2d, which it tries to do when I send packets to
fe80::20c:29ff:fee5:d2d.

(btw, I'm using the latest version of scapy6, downloaded it yesterday)

I'd like to simply add exceptions to the "special" prefixes that should be
allowed to go through any interface, however, I'm just starting to learn
ipv6 (and scapy) and I'm not that confident I won't fuck anything else up.

-j

---------------------------------------------------------------------
Desinscription: envoyez un message a: scapy.ml-unsubscribe <at> secdev.org
Pour obtenir de l'aide, ecrivez a: scapy.ml-help <at> secdev.org


Gmane