summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-02-20 04:03:16 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-02-20 04:03:16 +0000
commit56fcdcd7dbdec7e44e811ec85ffdeeb1319333a9 (patch)
tree934f73c2f5ab579658a9e1b3e8d6a61f52d1ed17 /sys
parent01cecb9cd17443e36d55c29307aed362c7da651b (diff)
cisco set the tos on their keepalive packets to ip precedence
internet control, so we can too.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_gre.c7
1 files 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;