summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2018-11-15 00:05:00 +0000
committerdlg <dlg@openbsd.org>2018-11-15 00:05:00 +0000
commitbebd677d847f13d0193073367716688cd92a7579 (patch)
treee608ff7c80fc216b70a3a0c1ef4a232c3c7627a7
parentprovide ip_tos_patch() for setting ip_tos and patching the ipv4 cksum. (diff)
downloadwireguard-openbsd-bebd677d847f13d0193073367716688cd92a7579.tar.xz
wireguard-openbsd-bebd677d847f13d0193073367716688cd92a7579.zip
the variable holding the ip tos should be called tos, not ttl.
no functional change.
-rw-r--r--sys/net/if_gre.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 892e4747793..6aea800a0c4 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.138 2018/11/14 01:27:00 dlg Exp $ */
+/* $OpenBSD: if_gre.c,v 1.139 2018/11/15 00:05:00 dlg Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -2197,13 +2197,13 @@ gre_l2_tos(const struct gre_tunnel *t, const struct mbuf *m)
}
static uint8_t
-gre_l3_tos(const struct gre_tunnel *t, const struct mbuf *m, uint8_t ttl)
+gre_l3_tos(const struct gre_tunnel *t, const struct mbuf *m, uint8_t tos)
{
uint8_t prio;
switch (t->t_txhprio) {
case IF_HDRPRIO_PAYLOAD:
- return (ttl);
+ return (tos);
case IF_HDRPRIO_PACKET:
prio = m->m_pkthdr.pf.prio;
break;