Skip to content
Snippets Groups Projects
Commit 82cdf6bc authored by Phil's avatar Phil
Browse files

Fixed construct_source_candidate_set() consider UL addresses (ticket #305)

parent 63f61100
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ def construct_source_candidate_set(addr, plen, laddr, loname): ...@@ -26,7 +26,7 @@ def construct_source_candidate_set(addr, plen, laddr, loname):
""" """
cset = [] cset = []
if in6_isgladdr(addr): if in6_isgladdr(addr) or in6_isuladdr(addr):
cset = filter(lambda x: x[1] == IPV6_ADDR_GLOBAL, laddr) cset = filter(lambda x: x[1] == IPV6_ADDR_GLOBAL, laddr)
elif in6_islladdr(addr): elif in6_islladdr(addr):
cset = filter(lambda x: x[1] == IPV6_ADDR_LINKLOCAL, laddr) cset = filter(lambda x: x[1] == IPV6_ADDR_LINKLOCAL, laddr)
......
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