Issue #186: Scapy backtraces when sending a packet with a route6 entry that has no srcaddr

This commit is contained in:
Guillaume Valadon 2013-07-23 14:03:07 +02:00
parent 429082158f
commit 02ebc34fda
1 changed files with 4 additions and 0 deletions

View File

@ -233,6 +233,10 @@ class Route6:
if srcaddr is not None:
res.append((p[0], (tmp[0], srcaddr, tmp[2])))
if res == []:
warning("Found a route for IPv6 destination '%s', but no possible source address." % dst)
return (LOOPBACK_NAME, "::", "::") # XXX Linux specific
# Symptom : 2 routes with same weight (our weight is plen)
# Solution :
# - dst is unicast global. Check if it is 6to4 and we have a source