Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2004 10:47:44 -0800 (PST)
From:      darrenr@FreeBSD.ORG (Darren Reed)
To:        atapiador@dit.upm.es
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/64167
Message-ID:  <20040313184744.7925316A4CF@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

Does this patch look right ?

Index: ip_fil.c
===================================================================
RCS file: /home/ncvs/src/sys/contrib/ipfilter/netinet/ip_fil.c,v
retrieving revision 1.43
diff -c -r1.43 ip_fil.c
*** ip_fil.c	21 Feb 2004 21:10:39 -0000	1.43
--- ip_fil.c	13 Mar 2004 18:43:58 -0000
***************
*** 2020,2030 ****
  		error = ip6_getpmtu(ro_pmtu, ro, ifp, &finaldst, &mtu);
  		if (error == 0) {
  #else
! #ifdef ND_IFINFO
  			mtu = ND_IFINFO(ifp)->linkmtu;
! #else
  			mtu = nd_ifinfo[ifp->if_index].linkmtu;
! #endif
  #endif
  			if (m0->m_pkthdr.len <= mtu)
  				error = nd6_output(ifp, fin->fin_ifp, m0,
--- 2020,2034 ----
  		error = ip6_getpmtu(ro_pmtu, ro, ifp, &finaldst, &mtu);
  		if (error == 0) {
  #else
! # ifdef IN6_LINKMTU
! 			mtu = IN6_LINKMTU(ifp);
! # else
! #  ifdef ND_IFINFO
  			mtu = ND_IFINFO(ifp)->linkmtu;
! #  else
  			mtu = nd_ifinfo[ifp->if_index].linkmtu;
! #  endif
! # endif
  #endif
  			if (m0->m_pkthdr.len <= mtu)
  				error = nd6_output(ifp, fin->fin_ifp, m0,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040313184744.7925316A4CF>