From b2d46992d8234eeafad4b3eb22bdb5a12d08b183 Mon Sep 17 00:00:00 2001 From: bluhm Date: Fri, 17 May 2024 20:44:36 +0000 Subject: [PATCH] IPv6 has to use ip6_defhlim, not ip_defttl. OK claudio@ --- sys/netinet/ip_ipip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_ipip.c b/sys/netinet/ip_ipip.c index 84e9912f0c6..fdebd088385 100644 --- a/sys/netinet/ip_ipip.c +++ b/sys/netinet/ip_ipip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipip.c,v 1.101 2024/02/11 01:27:45 bluhm Exp $ */ +/* $OpenBSD: ip_ipip.c,v 1.102 2024/05/17 20:44:36 bluhm Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -481,7 +481,7 @@ ipip_output(struct mbuf **mp, struct tdb *tdb) ip6o->ip6_vfc &= ~IPV6_VERSION_MASK; ip6o->ip6_vfc |= IPV6_VERSION; ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6o)); - ip6o->ip6_hlim = ip_defttl; + ip6o->ip6_hlim = ip6_defhlim; in6_embedscope(&ip6o->ip6_src, &tdb->tdb_src.sin6, NULL, NULL); in6_embedscope(&ip6o->ip6_dst, &tdb->tdb_dst.sin6, NULL, NULL); -- 2.20.1