X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=blobdiff_plain;f=src%2Fra.c;h=814a17decfe706dbde3da71d3749d9ff8dc7a594;hp=b249288279955446ecf59e061a4015b0314b3302;hb=a300c7335c5ad78fb053e7c73b45e95e1f3c2ad1;hpb=2ce1c6dcec4afa1c7bd16e79cfcae247b88450ec diff --git a/src/ra.c b/src/ra.c index b249288..814a17d 100644 --- a/src/ra.c +++ b/src/ra.c @@ -1,3 +1,17 @@ +/** + * Copyright (C) 2012-2013 Steven Barth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License v2 as published by + * the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + #include #include #include @@ -236,7 +250,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);