summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-09 16:19:07 +0000
committerRoy Marples <roy@marples.name>2020-04-09 16:19:07 +0000
commitdb58572fd54a12ee5959d86e2b77b0d3621f9adf (patch)
tree640a40dee09bce57193f5ec50d255bcb16e19122 /src/ipv6nd.c
parentd839b2ed96bbcd37362a7c7385c4dfe6d161909b (diff)
downloaddhcpcd-db58572fd54a12ee5959d86e2b77b0d3621f9adf.tar.xz
Linux: Note router preference when adding routes
This appears to just be cosmetic.
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index 2860e67c..7ce34001 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -101,13 +101,6 @@ __CTASSERT(sizeof(struct nd_opt_rdnss) == 8);
#define ND_RA_FLAG_RTPREF_RSV 0x10
#endif
-/* RTPREF_MEDIUM has to be 0! */
-#define RTPREF_HIGH 1
-#define RTPREF_MEDIUM 0
-#define RTPREF_LOW (-1)
-#define RTPREF_RESERVED (-2)
-#define RTPREF_INVALID (-3) /* internal */
-
#define EXPIRED_MAX 5 /* Remember 5 expired routers to avoid
logspam. */
@@ -580,7 +573,7 @@ ipv6nd_startexpire(struct interface *ifp)
RTR_CARRIER_EXPIRE, ipv6nd_expire, ifp);
}
-static int
+int
ipv6nd_rtpref(struct ra *rap)
{