From f58713916fa2b38d97edfc06723cfff4a6c2cbfa Mon Sep 17 00:00:00 2001 From: Florian Obser Date: Thu, 21 Nov 2019 03:55:23 +0000 Subject: Configure the default route with RTP_NONE so that the kernel assigns different priorities for wired vs. wireless interfaces for us. Gleaned from dhclient. --- sbin/slaacd/slaacd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/slaacd') diff --git a/sbin/slaacd/slaacd.c b/sbin/slaacd/slaacd.c index 55e26042874..da49bff057a 100644 --- a/sbin/slaacd/slaacd.c +++ b/sbin/slaacd/slaacd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slaacd.c,v 1.42 2019/11/11 05:48:46 florian Exp $ */ +/* $OpenBSD: slaacd.c,v 1.43 2019/11/21 03:55:22 florian Exp $ */ /* * Copyright (c) 2017 Florian Obser @@ -753,7 +753,7 @@ configure_gateway(struct imsg_configure_dfr *dfr, uint8_t rtm_type) rtm.rtm_tableid = 0; /* XXX imsg->rdomain; */ rtm.rtm_index = dfr->if_index; rtm.rtm_seq = ++rtm_seq; - rtm.rtm_priority = RTP_DEFAULT; + rtm.rtm_priority = RTP_NONE; rtm.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK | RTA_LABEL; rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC | RTF_MPATH; -- cgit v1.2.3