summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-01 06:08:23 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-01 06:08:23 +0000
commit71e1c51ed2e3e8b988c291f95d0419b82fe95631 (patch)
tree6365865c28a906908b29a7409052c03465412249 /sys/netinet6
parent3fc342c82e290f162ee240e371e31dae6ef30c66 (diff)
use default hoplimit when incoming interface is not known to icmp6_error.
sync with kame
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/icmp6.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index 7d57502c568..e09255d997a 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: icmp6.c,v 1.41 2001/05/26 06:57:19 angelos Exp $ */
-/* $KAME: icmp6.c,v 1.205 2001/03/21 07:48:57 itojun Exp $ */
+/* $OpenBSD: icmp6.c,v 1.42 2001/06/01 06:08:22 itojun Exp $ */
+/* $KAME: icmp6.c,v 1.212 2001/06/01 05:35:52 jinmei Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -2190,7 +2190,8 @@ icmp6_reflect(m, off)
if (m->m_pkthdr.rcvif) {
/* XXX: This may not be the outgoing interface */
ip6->ip6_hlim = nd_ifinfo[m->m_pkthdr.rcvif->if_index].chlim;
- }
+ } else
+ ip6->ip6_hlim = ip6_defhlim;
icmp6->icmp6_cksum = 0;
icmp6->icmp6_cksum = in6_cksum(m, IPPROTO_ICMPV6,