Fix priority for on-link routes for prefixes
authorSteven Barth <steven@midlink.org>
Wed, 20 Mar 2013 10:24:30 +0000 (11:24 +0100)
committerSteven Barth <steven@midlink.org>
Wed, 20 Mar 2013 10:24:30 +0000 (11:24 +0100)
src/ra.c

index b249288279955446ecf59e061a4015b0314b3302..4ed5371a160d4b63dc7e1ac80a6d74a38ba2e726 100644 (file)
--- a/src/ra.c
+++ b/src/ra.c
@@ -236,7 +236,7 @@ bool ra_process(void)
                                struct nd_opt_prefix_info *pinfo = (struct nd_opt_prefix_info*)opt;
                                entry.router = any;
                                entry.target = pinfo->nd_opt_pi_prefix;
-                               entry.priority = 0;
+                               entry.priority = 256;
                                entry.length = pinfo->nd_opt_pi_prefix_len;
                                entry.valid = ntohl(pinfo->nd_opt_pi_valid_time);
                                entry.preferred = ntohl(pinfo->nd_opt_pi_preferred_time);