Permalink
Browse files

- added stat entries for reverse tunnel in/output.

  • Loading branch information...
1 parent 4ffb60d commit 2eb974192597bf8dddb122545f0115f727278c41 keiichi committed Sep 1, 2002
Showing with 13 additions and 4 deletions.
  1. +5 −1 kame/kame/mip6stat/mip6stat.c
  2. +2 −1 kame/sys/net/if_hif.c
  3. +3 −1 kame/sys/netinet6/mip6_binding.c
  4. +3 −1 kame/sys/netinet6/mip6_var.h
@@ -1,4 +1,4 @@
-/* $KAME: mip6stat.c,v 1.15 2002/08/28 13:34:38 keiichi Exp $ */
+/* $KAME: mip6stat.c,v 1.16 2002/09/01 05:58:02 keiichi Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -669,6 +669,7 @@ showdetail()
PS("Home Address Option", mip6s_hao);
PS("unverified Home Address Option", mip6s_unverifiedhao);
PS("Routing Header type 2", mip6s_rthdr2);
+ PS("reverse tunneled input", mip6s_revtunnel);
PS("bad MH checksum", mip6s_checksum);
PS("bad payload protocol", mip6s_payloadproto);
PS("unknown MH type", mip6s_unknowntype);
@@ -707,6 +708,7 @@ showdetail()
}
PS("Home Address Option", mip6s_ohao);
PS("Routing Header type 2", mip6s_orthdr2);
+ PS("reverse tunneled output", mip6s_orevtunnel);
return (0);
}
@@ -742,6 +744,7 @@ tmpshow()
M(mip6s_hao);
M(mip6s_unverifiedhao);
M(mip6s_rthdr2);
+ M(mip6s_revtunnel);
M(mip6s_paramprobhao);
M(mip6s_paramprobmh);
@@ -767,6 +770,7 @@ tmpshow()
}
M(mip6s_ohao);
M(mip6s_orthdr2);
+ M(mip6s_orevtunnel);
printf("ENDOFDATA\n");
return (0);
View
@@ -1,4 +1,4 @@
-/* $KAME: if_hif.c,v 1.29 2002/08/28 13:36:19 keiichi Exp $ */
+/* $KAME: if_hif.c,v 1.30 2002/09/01 05:58:03 keiichi Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1114,6 +1114,7 @@ hif_output(ifp, m, dst, rt)
goto done;
in6_clearscope(&ip6->ip6_src);
in6_clearscope(&ip6->ip6_dst);
+ mip6stat.mip6s_orevtunnel++;
#ifdef IPV6_MINMTU
/* XXX */
return (ip6_output(m, 0, 0, IPV6_MINMTU, 0, &ifp));
@@ -1,4 +1,4 @@
-/* $KAME: mip6_binding.c,v 1.124 2002/08/30 08:57:40 k-sugyou Exp $ */
+/* $KAME: mip6_binding.c,v 1.125 2002/09/01 05:58:03 keiichi Exp $ */
/*
* Copyright (C) 2001 WIDE Project. All rights reserved.
@@ -2685,6 +2685,8 @@ mip6_tunnel_input(mp, offp, proto)
ip6 = mtod(m, struct ip6_hdr *);
+ mip6stat.mip6s_revtunnel++;
+
s = splimp();
if (IF_QFULL(&ip6intrq)) {
IF_DROP(&ip6intrq); /* update statistics */
@@ -1,4 +1,4 @@
-/* $KAME: mip6_var.h,v 1.52 2002/08/27 09:52:39 keiichi Exp $ */
+/* $KAME: mip6_var.h,v 1.53 2002/09/01 05:58:03 keiichi Exp $ */
/*
* Copyright (C) 2001 WIDE Project. All rights reserved.
@@ -315,6 +315,8 @@ struct mip6stat {
u_quad_t mip6s_ohao; /* HAO sent */
u_quad_t mip6s_rthdr2; /* RTHDR2 received */
u_quad_t mip6s_orthdr2; /* RTHDR2 sent */
+ u_quad_t mip6s_revtunnel; /* reverse tunnel input */
+ u_quad_t mip6s_orevtunnel; /* reverse tunnel output */
u_quad_t mip6s_checksum; /* bad checksum */
u_quad_t mip6s_payloadproto; /* payload proto != no nxt header */
u_quad_t mip6s_unknowntype; /* unknown MH type value */

0 comments on commit 2eb9741

Please sign in to comment.