Subject: Re: icmp6 build prob
To: None <current-users@netbsd.org>
From: Masaru OKI <oki@netbsd.org>
List: current-users
Date: 05/30/2002 02:55:12
On Wed, 29 May 2002 16:52:27 +0100
Patrick Welche <prlw1@newn.cam.ac.uk> wrote:
> With freshly cvs'd i386 source:
>
> netinet6/icmp6.c: In function `icmp6_reflect':
> netinet6/icmp6.c:2204: `nd_ifinfo' undeclared (first use in this function)
> netinet6/icmp6.c:2204: (Each undeclared identifier is reported only once
> netinet6/icmp6.c:2204: for each function it appears in.)
I made patch is here, but not tested. This is correct? itojun?
Index: icmp6.c
===================================================================
RCS file: /cvsroot/syssrc/sys/netinet6/icmp6.c,v
retrieving revision 1.78
diff -u -r1.78 icmp6.c
--- icmp6.c 2002/05/29 06:55:48 1.78
+++ icmp6.c 2002/05/29 17:42:30
@@ -2201,7 +2201,7 @@
ip6->ip6_nxt = IPPROTO_ICMPV6;
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;
+ ip6->ip6_hlim = ND_IFINFO(m->m_pkthdr.rcvif)->chlim;
} else
ip6->ip6_hlim = ip6_defhlim;
--
Masaru OKI <oki@netbsd.org>