]> git.decadent.org.uk Git - odhcp6c.git/blobdiff - src/ra.c
Update license headers
[odhcp6c.git] / src / ra.c
index b249288279955446ecf59e061a4015b0314b3302..814a17decfe706dbde3da71d3749d9ff8dc7a594 100644 (file)
--- a/src/ra.c
+++ b/src/ra.c
@@ -1,3 +1,17 @@
+/**
+ * Copyright (C) 2012-2013 Steven Barth <steven@midlink.org>
+ *
+ * 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 <fcntl.h>
 #include <stdio.h>
 #include <signal.h>
@@ -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);