Skip to content

Commit

Permalink
home agent prefernce is changed from signed to unsighed during ID19 t…
Browse files Browse the repository at this point in the history
…o ID20

transition.
reported by yukiyo.akisada@jp.yokogawa.com.
  • Loading branch information
keiichi committed Jun 3, 2003
1 parent 5bbdf28 commit b094c7d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions kame/kame/had/halist.c
@@ -1,4 +1,4 @@
/* $KAME: halist.c,v 1.7 2003/04/11 11:21:39 t-momose Exp $ */
/* $KAME: halist.c,v 1.8 2003/06/03 06:44:36 keiichi Exp $ */

/*
* Copyright (C) 2001 WIDE Project.
Expand Down Expand Up @@ -30,7 +30,7 @@
*/

/*
* $Id: halist.c,v 1.7 2003/04/11 11:21:39 t-momose Exp $
* $Id: halist.c,v 1.8 2003/06/03 06:44:36 keiichi Exp $
*/

/*
Expand Down Expand Up @@ -133,7 +133,7 @@ hal_update(ifindex, ha_addr, ha_lifetime, ha_pref)
int ifindex;
struct in6_addr *ha_addr;
u_int16_t ha_lifetime;
int16_t ha_pref;
u_int16_t ha_pref;
{
struct hagent_entry *halp, *curp, *prevp;
struct hagent_ifinfo *haif;
Expand Down Expand Up @@ -1194,7 +1194,7 @@ void halent_dump(fp, halp)
halp->hagent_lifetime, halp->hagent_expire,
halp->hagent_expire > now.tv_sec ?
halp->hagent_expire - now.tv_sec : 0);
fprintf(fp, " preference=%d\n", halp->hagent_pref);
fprintf(fp, " preference=%u\n", halp->hagent_pref);
fprintf(fp, " global addresses:\n");
for (galp = halp->hagent_galist.hagent_next_gaddr; galp;
galp = galp->hagent_next_gaddr) {
Expand Down
8 changes: 4 additions & 4 deletions kame/kame/had/halist.h
@@ -1,4 +1,4 @@
/* $KAME: halist.h,v 1.6 2003/02/28 07:08:06 t-momose Exp $ */
/* $KAME: halist.h,v 1.7 2003/06/03 06:44:36 keiichi Exp $ */

/*
* Copyright (C) 2001 WIDE Project.
Expand Down Expand Up @@ -30,7 +30,7 @@
*/

/*
* $Id: halist.h,v 1.6 2003/02/28 07:08:06 t-momose Exp $
* $Id: halist.h,v 1.7 2003/06/03 06:44:36 keiichi Exp $
*/

/*
Expand Down Expand Up @@ -139,7 +139,7 @@ struct hagent_entry {
struct hagent_entry *hagent_next_expire, *hagent_prev_expire,
*hagent_next_pref, *hagent_prev_pref;
struct in6_addr hagent_addr;
int16_t hagent_pref;
u_int16_t hagent_pref;
u_int16_t hagent_lifetime;
long hagent_expire;
struct hagent_gaddr hagent_galist;
Expand Down Expand Up @@ -167,7 +167,7 @@ struct hagent_ifa_pair {
};

struct hagent_entry *hal_update __P((int, struct in6_addr *, u_int16_t,
int16_t));
u_int16_t));
struct hagent_gaddr *hal_gaddr_add __P((struct hagent_entry *,
struct hagent_gaddr *,
struct nd_opt_prefix_info *));
Expand Down
4 changes: 2 additions & 2 deletions kame/sys/netinet6/mip6_halist.c
@@ -1,4 +1,4 @@
/* $KAME: mip6_halist.c,v 1.1 2003/04/23 09:15:51 keiichi Exp $ */
/* $KAME: mip6_halist.c,v 1.2 2003/06/03 06:44:36 keiichi Exp $ */

/*
* Copyright (C) 2001 WIDE Project. All rights reserved.
Expand Down Expand Up @@ -86,7 +86,7 @@ mip6_ha_create(lladdr, gaddr, flags, pref, lifetime)
struct sockaddr_in6 *lladdr;
struct sockaddr_in6 *gaddr;
u_int8_t flags;
int16_t pref;
u_int16_t pref;
int32_t lifetime;
{
struct mip6_ha *mha = NULL;
Expand Down
4 changes: 2 additions & 2 deletions kame/sys/netinet6/mip6_mncore.h
@@ -1,4 +1,4 @@
/* $KAME: mip6_mncore.h,v 1.2 2003/04/24 02:28:39 keiichi Exp $ */
/* $KAME: mip6_mncore.h,v 1.3 2003/06/03 06:44:36 keiichi Exp $ */

/*
* Copyright (C) 2003 WIDE Project. All rights reserved.
Expand Down Expand Up @@ -92,7 +92,7 @@ int mip6_bu_send_cbu(struct mip6_bu *);

/* home agent list processing. */
struct mip6_ha *mip6_ha_create(struct sockaddr_in6 *, struct sockaddr_in6 *,
u_int8_t, int16_t, int32_t);
u_int8_t, u_int16_t, int32_t);
int mip6_ha_list_insert(struct mip6_ha_list *, struct mip6_ha *mha);
int mip6_ha_list_remove(struct mip6_ha_list*, struct mip6_ha *mha);
struct mip6_ha *mip6_ha_list_find_withaddr(struct mip6_ha_list *,
Expand Down
4 changes: 2 additions & 2 deletions kame/sys/netinet6/mip6_var.h
@@ -1,4 +1,4 @@
/* $KAME: mip6_var.h,v 1.89 2003/04/24 02:28:39 keiichi Exp $ */
/* $KAME: mip6_var.h,v 1.90 2003/06/03 06:44:36 keiichi Exp $ */

/*
* Copyright (C) 2001 WIDE Project. All rights reserved.
Expand Down Expand Up @@ -239,7 +239,7 @@ struct mip6_ha {
struct sockaddr_in6 mha_lladdr; /* XXX link-local addr */
struct sockaddr_in6 mha_gaddr; /* XXX global addr */
u_int8_t mha_flags; /* RA flags */
int16_t mha_pref; /* preference */
u_int16_t mha_pref; /* preference */
u_int16_t mha_lifetime; /* HA lifetime */
time_t mha_expire; /* expiration time of this HA. */
};
Expand Down

0 comments on commit b094c7d

Please sign in to comment.