Skip to content
Snippets Groups Projects
Commit 02ebc34f authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

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

parent 42908215
No related branches found
No related tags found
No related merge requests found
...@@ -233,6 +233,10 @@ class Route6: ...@@ -233,6 +233,10 @@ class Route6:
if srcaddr is not None: if srcaddr is not None:
res.append((p[0], (tmp[0], srcaddr, tmp[2]))) 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) # Symptom : 2 routes with same weight (our weight is plen)
# Solution : # Solution :
# - dst is unicast global. Check if it is 6to4 and we have a source # - dst is unicast global. Check if it is 6to4 and we have a source
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment