diff options
author | Bjorn Ketelaars <bket@cvs.openbsd.org> | 2021-11-10 20:24:23 +0000 |
---|---|---|
committer | Bjorn Ketelaars <bket@cvs.openbsd.org> | 2021-11-10 20:24:23 +0000 |
commit | 3274ca6e601a91a3538167b8448008c78d872fc3 (patch) | |
tree | b32bef449556105e88e53bd158262c89e334e772 /sys/net | |
parent | 0e6a38e76779b34d5ceedf4ce2fad6877430253f (diff) |
Give sppp(4) its own RTP_PROPOSAL priority
OK semarie@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_spppsubr.c | 4 | ||||
-rw-r--r-- | sys/net/route.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 0d30ac99bfd..759370e7be7 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.188 2021/11/10 15:04:26 bket Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.189 2021/11/10 20:24:22 bket Exp $ */ /* * Synchronous PPP link level subroutines. * @@ -4931,7 +4931,7 @@ sppp_update_dns(struct ifnet *ifp) rtdns.sr_len = 2 + i * sz; info.rti_info[RTAX_DNS] = srtdnstosa(&rtdns); - rtm_proposal(ifp, &info, flag, RTP_PROPOSAL_STATIC); + rtm_proposal(ifp, &info, flag, RTP_PROPOSAL_PPP); } void diff --git a/sys/net/route.h b/sys/net/route.h index 914581aa6bb..c0bba8b5734 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.185 2021/03/17 09:05:42 claudio Exp $ */ +/* $OpenBSD: route.h,v 1.186 2021/11/10 20:24:22 bket Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -171,7 +171,8 @@ struct rtentry { #define RTP_PROPOSAL_DHCLIENT 58 #define RTP_PROPOSAL_SLAAC 59 #define RTP_PROPOSAL_UMB 60 -#define RTP_PROPOSAL_SOLICIT 61 /* request reply of all RTM_PROPOSAL */ +#define RTP_PROPOSAL_PPP 61 +#define RTP_PROPOSAL_SOLICIT 62 /* request reply of all RTM_PROPOSAL */ #define RTP_MAX 63 /* maximum priority */ #define RTP_ANY 64 /* any of the above */ #define RTP_MASK 0x7f |