aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/icmp6.h
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-10-17 15:46:31 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-10-17 15:46:31 +0000
commit31b1bfe1b0a6223ca75c72fd80c2a02c33a1fd20 (patch)
tree7b94f0bf6e27699cee5534d28881bd0e62278adb /sys/netinet/icmp6.h
parent3efeb2b693efcd83c355f417452e316492426af6 (diff)
downloadsrc-31b1bfe1b0a6223ca75c72fd80c2a02c33a1fd20.tar.gz
src-31b1bfe1b0a6223ca75c72fd80c2a02c33a1fd20.zip
- add dom_if{attach,detach} framework.
- transition to use ifp->if_afdata. Obtained from: KAME
Notes
Notes: svn path=/head/; revision=121161
Diffstat (limited to 'sys/netinet/icmp6.h')
-rw-r--r--sys/netinet/icmp6.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/netinet/icmp6.h b/sys/netinet/icmp6.h
index 5d7ca8b63011..2d290067008c 100644
--- a/sys/netinet/icmp6.h
+++ b/sys/netinet/icmp6.h
@@ -649,11 +649,8 @@ void icmp6_mtudisc_update(struct ip6ctlparam *, int);
/* XXX: is this the right place for these macros? */
#define icmp6_ifstat_inc(ifp, tag) \
do { \
- if ((ifp) && (ifp)->if_index <= if_index \
- && (ifp)->if_index < icmp6_ifstatmax \
- && icmp6_ifstat && icmp6_ifstat[(ifp)->if_index]) { \
- icmp6_ifstat[(ifp)->if_index]->tag++; \
- } \
+ if (ifp) \
+ ((struct in6_ifextra *)((ifp)->if_afdata[AF_INET6]))->icmp6_ifstat->tag++; \
} while (/*CONSTCOND*/ 0)
#define icmp6_ifoutstat_inc(ifp, type, code) \
@@ -661,7 +658,7 @@ do { \
icmp6_ifstat_inc(ifp, ifs6_out_msg); \
if (type < ICMP6_INFOMSG_MASK) \
icmp6_ifstat_inc(ifp, ifs6_out_error); \
- switch(type) { \
+ switch (type) { \
case ICMP6_DST_UNREACH: \
icmp6_ifstat_inc(ifp, ifs6_out_dstunreach); \
if (code == ICMP6_DST_UNREACH_ADMIN) \