Skip to content

Commit

Permalink
do not include the reserved field when calculating sum of the BA.
Browse files Browse the repository at this point in the history
this may be a mistake of the spec, but we follow the spec for now.
  • Loading branch information
keiichi committed Feb 27, 2002
1 parent 04cbc6c commit 2285d73
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion kame/sys/netinet6/mip6_binding.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: mip6_binding.c,v 1.90 2002/02/20 09:43:49 k-sugyou Exp $ */
/* $KAME: mip6_binding.c,v 1.91 2002/02/27 01:45:29 keiichi Exp $ */

/*
* Copyright (C) 2001 WIDE Project. All rights reserved.
Expand Down Expand Up @@ -3100,8 +3100,15 @@ mip6_ba_authdata_calc(sav, src, dst, ba_opt, authdata, sumbuf)
bytes += 1;
(algo->update)(&algos, (caddr_t)&ba_opt->ip6oa_status, 1);
bytes += 1;
#if 0
/*
* as Vijay said in his mail sent Wed, 09 Jan 2002 10:36:17
* -0800 to mobile-ip, not to include the reserved field is a
* mistake of the spec. but for now, we follow the spec.
*/
(algo->update)(&algos, (caddr_t)&ba_opt->ip6oa_reserved, 1);
bytes += 1;
#endif
(algo->update)(&algos, (caddr_t)&ba_opt->ip6oa_seqno, 1);
bytes += 1;
(algo->update)(&algos, (caddr_t)&ba_opt->ip6oa_lifetime[0], 4);
Expand Down

0 comments on commit 2285d73

Please sign in to comment.