From f26ae2b6c65928b07661398937be006649b0caa1 Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 20 Feb 2018 04:03:15 +0000 Subject: [PATCH] cisco set the tos on their keepalive packets to ip precedence internet control, so we can too. --- sys/net/if_gre.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index 57102ae31bb..7d8d88ba66e 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gre.c,v 1.106 2018/02/20 03:53:54 dlg Exp $ */ +/* $OpenBSD: if_gre.c,v 1.107 2018/02/20 04:03:15 dlg Exp $ */ /* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -1426,7 +1426,7 @@ gre_keepalive_send(void *arg) t.t_key = sc->sc_tunnel.t_key; t.t_key_mask = sc->sc_tunnel.t_key_mask; - m = gre_encap(&t, m, htons(0), ttl, 0); + m = gre_encap(&t, m, htons(0), ttl, IPTOS_PREC_INTERNETCONTROL); if (m == NULL) return; @@ -1454,7 +1454,8 @@ gre_keepalive_send(void *arg) /* * put it in the tunnel */ - m = gre_encap(&sc->sc_tunnel, m, proto, ttl, 0); + m = gre_encap(&sc->sc_tunnel, m, proto, ttl, + IPTOS_PREC_INTERNETCONTROL); if (m == NULL) return; -- 2.20.1