Ignore link-local IPv6 routing table entries

If we have a client on the "main" routing table, then we must ignore all IPv6
link-local subnet declarations that appear in this routing table, possibly
"masking out" the intended network route.
Signed-off-by: default avatarApollon Oikonomopoulos <apollon@noc.grnet.gr>
parent e014fb6a
......@@ -138,6 +138,11 @@ def parse_routing_table(table="main", family=4):
m = re.match("^([^\\s]+) dev %s" % def_dev, route)
if not m:
continue
if family == 6 and m.group(1).startswith("fe80:"):
# Skip link-local declarations in "main" table
continue
def_net = m.group(1)
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment