make IFA_STATS really work on IPv6.
This commit is contained in:
parent
80db86454a
commit
cb1745c4f9
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ip6_input.c,v 1.27 2000/08/31 07:35:44 itojun Exp $ */
|
||||
/* $NetBSD: ip6_input.c,v 1.28 2000/10/23 03:45:25 itojun Exp $ */
|
||||
/* $KAME: ip6_input.c,v 1.121 2000/08/31 06:07:29 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -688,7 +688,7 @@ ip6_input(m)
|
||||
* Tell launch routine the next header
|
||||
*/
|
||||
#ifdef IFA_STATS
|
||||
if (IFA_STATS && deliverifp != NULL) {
|
||||
if (deliverifp != NULL) {
|
||||
struct in6_ifaddr *ia6;
|
||||
ia6 = in6_ifawithifp(deliverifp, &ip6->ip6_dst);
|
||||
if (ia6)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ip6_output.c,v 1.25 2000/08/19 08:15:54 itojun Exp $ */
|
||||
/* $NetBSD: ip6_output.c,v 1.26 2000/10/23 03:45:25 itojun Exp $ */
|
||||
/* $KAME: ip6_output.c,v 1.122 2000/08/19 02:12:02 jinmei Exp $ */
|
||||
|
||||
/*
|
||||
@ -863,14 +863,12 @@ skip_ipsec2:;
|
||||
)
|
||||
{
|
||||
#ifdef IFA_STATS
|
||||
if (IFA_STATS) {
|
||||
struct in6_ifaddr *ia6;
|
||||
ip6 = mtod(m, struct ip6_hdr *);
|
||||
ia6 = in6_ifawithifp(ifp, &ip6->ip6_src);
|
||||
if (ia6) {
|
||||
ia->ia_ifa.ifa_data.ifad_outbytes +=
|
||||
m->m_pkthdr.len;
|
||||
}
|
||||
struct in6_ifaddr *ia6;
|
||||
ip6 = mtod(m, struct ip6_hdr *);
|
||||
ia6 = in6_ifawithifp(ifp, &ip6->ip6_src);
|
||||
if (ia6) {
|
||||
ia6->ia_ifa.ifa_data.ifad_outbytes +=
|
||||
m->m_pkthdr.len;
|
||||
}
|
||||
#endif
|
||||
#ifdef OLDIP6OUTPUT
|
||||
@ -995,14 +993,12 @@ sendorfree:
|
||||
m->m_nextpkt = 0;
|
||||
if (error == 0) {
|
||||
#ifdef IFA_STATS
|
||||
if (IFA_STATS) {
|
||||
struct in6_ifaddr *ia6;
|
||||
ip6 = mtod(m, struct ip6_hdr *);
|
||||
ia6 = in6_ifawithifp(ifp, &ip6->ip6_src);
|
||||
if (ia6) {
|
||||
ia->ia_ifa.ifa_data.ifad_outbytes +=
|
||||
m->m_pkthdr.len;
|
||||
}
|
||||
struct in6_ifaddr *ia6;
|
||||
ip6 = mtod(m, struct ip6_hdr *);
|
||||
ia6 = in6_ifawithifp(ifp, &ip6->ip6_src);
|
||||
if (ia6) {
|
||||
ia6->ia_ifa.ifa_data.ifad_outbytes +=
|
||||
m->m_pkthdr.len;
|
||||
}
|
||||
#endif
|
||||
#ifdef OLDIP6OUTPUT
|
||||
|
Loading…
Reference in New Issue
Block a user