diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2019-11-21 03:55:23 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2019-11-21 03:55:23 +0000 |
commit | f58713916fa2b38d97edfc06723cfff4a6c2cbfa (patch) | |
tree | 9476cfb82f99f26f2f91f8926918219090d0a334 /sbin/slaacd | |
parent | a403647790d8b1dc53b53ec9f37057c7705b561e (diff) |
Configure the default route with RTP_NONE so that the kernel assigns
different priorities for wired vs. wireless interfaces for us.
Gleaned from dhclient.
Diffstat (limited to 'sbin/slaacd')
-rw-r--r-- | sbin/slaacd/slaacd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <florian@openbsd.org> @@ -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; |