summaryrefslogtreecommitdiff
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-11-15 00:05:01 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-11-15 00:05:01 +0000
commitedac948884c3475715665c0567bf24e87de7ce8f (patch)
tree52ee27f28439f16a4041892cf986d94e6667e694 /sys/net/if_gre.c
parent31d4add80034deab8abe22f33ad76b851276f8aa (diff)
the variable holding the ip tos should be called tos, not ttl.
no functional change.
Diffstat (limited to 'sys/net/if_gre.c')
-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;