diff options
author | 2018-11-13 01:16:31 +0000 | |
---|---|---|
committer | 2018-11-13 01:16:31 +0000 | |
commit | cda021637891894c3f97ff883ba0f6ea0120b3fe (patch) | |
tree | 8136147ea7c8e79eb21a1f301299a7fc37b650ec | |
parent | add txprio support to gre, mgre, egre, nvgre, and eoip (diff) | |
download | wireguard-openbsd-cda021637891894c3f97ff883ba0f6ea0120b3fe.tar.xz wireguard-openbsd-cda021637891894c3f97ff883ba0f6ea0120b3fe.zip |
get the inner and outer tos values right for passing to ip_ecn_ingress
-rw-r--r-- | sys/net/if_gif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 2e8152989c1..ccba25467dc 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gif.c,v 1.118 2018/11/13 00:00:43 dlg Exp $ */ +/* $OpenBSD: if_gif.c,v 1.119 2018/11/13 01:16:31 dlg Exp $ */ /* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */ /* @@ -302,9 +302,9 @@ gif_start(struct ifnet *ifp) int gif_send(struct gif_softc *sc, struct mbuf *m, - uint8_t proto, uint8_t ttl, uint8_t otos) + uint8_t proto, uint8_t ttl, uint8_t itos) { - uint8_t itos = 0; + uint8_t otos; m->m_flags &= ~(M_BCAST|M_MCAST); m->m_pkthdr.ph_rtableid = sc->sc_tunnel.t_rtableid; |