diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2021-02-26 21:06:03 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2021-02-26 21:06:03 +0000 |
commit | 9d27aa2e2de16995db7363e5d339c415c264a596 (patch) | |
tree | 05cb4d5a0eb98e5813349c25fa2473e4cb14ce7a /sbin/iked/vroute.c | |
parent | b4be77fa8b67d1ce1f90a7f11f37606866b0b2da (diff) |
Set RTF_GATEWAY for flow routes, not for host route.
Diffstat (limited to 'sbin/iked/vroute.c')
-rw-r--r-- | sbin/iked/vroute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/iked/vroute.c b/sbin/iked/vroute.c index e4e47f3eccc..ebba6b91716 100644 --- a/sbin/iked/vroute.c +++ b/sbin/iked/vroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vroute.c,v 1.3 2021/02/26 20:22:11 tobhe Exp $ */ +/* $OpenBSD: vroute.c,v 1.4 2021/02/26 21:06:02 tobhe Exp $ */ /* * Copyright (c) 2021 Tobias Heider <tobhe@openbsd.org> @@ -238,7 +238,7 @@ vroute_getroute(struct iked *env, struct imsg *imsg) left -= dest->sa_len; addrs |= RTA_DST; - flags = RTF_UP | RTF_STATIC; + flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; if (left != 0) { if (left < sizeof(struct sockaddr)) return (-1); @@ -312,7 +312,7 @@ vroute_getcloneroute(struct iked *env, struct imsg *imsg) left -= dst->sa_len; /* Get route to peer */ - flags = RTF_UP | RTF_GATEWAY | RTF_HOST | RTF_STATIC; + flags = RTF_UP | RTF_HOST | RTF_STATIC; if (vroute_doroute(env, flags, RTA_DST, rdomain, RTM_GET, (struct sockaddr *)&dest, (struct sockaddr *)&mask, (struct sockaddr *)&addr)) |