diff options
author | 2018-10-29 09:51:20 +0000 | |
---|---|---|
committer | 2018-10-29 09:51:20 +0000 | |
commit | e23f9dddba6d80c5ec181620c95467ae6bf9e843 (patch) | |
tree | 0ac0b49a5a2b3224038018c2980a57ac79f9324c /sys | |
parent | Replace some walkers using the aspath/prefix lists with a rib_dump walker. (diff) | |
download | wireguard-openbsd-e23f9dddba6d80c5ec181620c95467ae6bf9e843.tar.xz wireguard-openbsd-e23f9dddba6d80c5ec181620c95467ae6bf9e843.zip |
use the tunnelttl in the ip6 encap too, not ip6_defhlim.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_etherip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_etherip.c b/sys/net/if_etherip.c index 762b54b2a79..f53e4a00273 100644 --- a/sys/net/if_etherip.c +++ b/sys/net/if_etherip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_etherip.c,v 1.37 2018/02/19 00:29:29 dlg Exp $ */ +/* $OpenBSD: if_etherip.c,v 1.38 2018/10/29 09:51:20 dlg Exp $ */ /* * Copyright (c) 2015 Kazuya GODA <goda@openbsd.org> * @@ -641,7 +641,7 @@ ip6_etherip_output(struct ifnet *ifp, struct mbuf *m) ip6->ip6_vfc &= ~IPV6_VERSION_MASK; ip6->ip6_vfc |= IPV6_VERSION; ip6->ip6_nxt = IPPROTO_ETHERIP; - ip6->ip6_hlim = ip6_defhlim; + ip6->ip6_hlim = sc->sc_ttl; ip6->ip6_plen = htons(len); memcpy(&ip6->ip6_src, &sc->sc_tunnel.t_src6, sizeof(ip6->ip6_src)); memcpy(&ip6->ip6_dst, &sc->sc_tunnel.t_dst6, sizeof(ip6->ip6_dst)); |