Commit 3af9f09d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't attempt to install source-specific routes if not supported.

parent ebbbc095
...@@ -1017,6 +1017,12 @@ kernel_route(int operation, int table, ...@@ -1017,6 +1017,12 @@ kernel_route(int operation, int table,
ipv4 = v4mapped(gate); ipv4 = v4mapped(gate);
use_src = !is_default(src, src_plen); use_src = !is_default(src, src_plen);
if(use_src) {
if(ipv4 || !has_ipv6_subtrees) {
errno = ENOSYS;
return -1;
}
}
kdebugf("kernel_route: %s %s from %s " kdebugf("kernel_route: %s %s from %s "
"table %d metric %d dev %d nexthop %s\n", "table %d metric %d dev %d nexthop %s\n",
......
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