svn commit: r246777 - user/ae/inet6/sys/netinet6
Andrey V. Elsukov
ae at FreeBSD.org
Thu Feb 14 00:56:40 UTC 2013
Author: ae
Date: Thu Feb 14 00:56:39 2013
New Revision: 246777
URL: http://svnweb.freebsd.org/changeset/base/246777
Log:
Use in6ifa_ifwithaddr() instead of ip6_getdstifaddr.
Modified:
user/ae/inet6/sys/netinet6/frag6.c
Modified: user/ae/inet6/sys/netinet6/frag6.c
==============================================================================
--- user/ae/inet6/sys/netinet6/frag6.c Thu Feb 14 00:43:36 2013 (r246776)
+++ user/ae/inet6/sys/netinet6/frag6.c Thu Feb 14 00:56:39 2013 (r246777)
@@ -52,6 +52,7 @@ __FBSDID("$FreeBSD$");
#include <netinet/in_var.h>
#include <netinet/ip6.h>
#include <netinet6/ip6_var.h>
+#include <netinet6/scope6_var.h>
#include <netinet/icmp6.h>
#include <netinet/in_systm.h> /* for ECN definitions */
#include <netinet/ip.h> /* for ECN definitions */
@@ -184,7 +185,9 @@ frag6_input(struct mbuf **mp, int *offp,
dstifp = NULL;
#ifdef IN6_IFSTAT_STRICT
/* find the destination interface of the packet. */
- if ((ia = ip6_getdstifaddr(m)) != NULL) {
+ ia = in6ifa_ifwithaddr(&ip6->ip6_dst, in6_getscopezone(
+ m->m_pkthdr.rcvif, in6_addrscope(&ip6->ip6_dst)));
+ if (ia != NULL) {
dstifp = ia->ia_ifp;
ifa_free(&ia->ia_ifa);
}
More information about the svn-src-user
mailing list