Skip to content

Commit

Permalink
Receiving mobility headers is overcounted.
Browse files Browse the repository at this point in the history
  • Loading branch information
t-momose committed Nov 11, 2006
1 parent e238f67 commit 8db918a
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions kame/kame/shisad/fsm.c
@@ -1,4 +1,4 @@
/* $KAME: fsm.c,v 1.39 2006/06/09 11:29:58 t-momose Exp $ */
/* $KAME: fsm.c,v 1.40 2006/11/11 14:32:36 t-momose Exp $ */

/*
* Copyright (C) 2004 WIDE Project. All rights reserved.
Expand Down Expand Up @@ -124,10 +124,6 @@ bul_kick_fsm_by_mh(src, dst, hoa, rtaddr, mh, mhlen)

switch(mh->ip6mh_type) {
case IP6_MH_TYPE_BRR:
/* Shisa Statistics: BRR messages */
/* XXX: br or brr?? */
mip6stat.mip6s_br++;

hinfo = hoainfo_find_withhoa(dst);
if (hinfo == NULL) {
syslog(LOG_NOTICE,
Expand Down Expand Up @@ -160,9 +156,6 @@ bul_kick_fsm_by_mh(src, dst, hoa, rtaddr, mh, mhlen)
break;

case IP6_MH_TYPE_HOT:
/* Shisa Statistics: HoT messages */
mip6stat.mip6s_hot++;

if (hoa || rtaddr)
break;
hinfo = hoainfo_find_withhoa(dst);
Expand Down Expand Up @@ -195,9 +188,6 @@ bul_kick_fsm_by_mh(src, dst, hoa, rtaddr, mh, mhlen)
break;

case IP6_MH_TYPE_COT:
/* Shisa Statistics: CoT messages */
mip6stat.mip6s_cot++;

if (hoa || rtaddr)
break;
ip6mhct = (struct ip6_mh_careof_test *)mh;
Expand All @@ -220,9 +210,6 @@ bul_kick_fsm_by_mh(src, dst, hoa, rtaddr, mh, mhlen)
break;

case IP6_MH_TYPE_BACK:
/* Shisa Statistics: BA messages */
mip6stat.mip6s_ba++;

hinfo = hoainfo_find_withhoa(dst);
if (hinfo == NULL) {
syslog(LOG_NOTICE,
Expand Down Expand Up @@ -260,9 +247,6 @@ bul_kick_fsm_by_mh(src, dst, hoa, rtaddr, mh, mhlen)
break;

case IP6_MH_TYPE_BERROR:
/* Shisa Statistics: BE Messages */
mip6stat.mip6s_be++;

ip6mhbe = (struct ip6_mh_binding_error *)mh;

if (IN6_IS_ADDR_UNSPECIFIED(&ip6mhbe->ip6mhbe_homeaddr))
Expand Down

0 comments on commit 8db918a

Please sign in to comment.