From edac948884c3475715665c0567bf24e87de7ce8f Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Thu, 15 Nov 2018 00:05:01 +0000 Subject: the variable holding the ip tos should be called tos, not ttl. no functional change. --- sys/net/if_gre.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net/if_gre.c') 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; -- cgit v1.2.3