Navigation Menu

Skip to content

Commit

Permalink
use a macro to conceal a magic number from source code
Browse files Browse the repository at this point in the history
  • Loading branch information
suz committed Aug 25, 2005
1 parent f723500 commit 809d9b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions kame/sys/netinet6/in6.c
@@ -1,4 +1,4 @@
/* $KAME: in6.c,v 1.396 2005/08/25 01:53:03 suz Exp $ */
/* $KAME: in6.c,v 1.397 2005/08/25 07:49:39 suz Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -1228,7 +1228,7 @@ in6_update_ifa(ifp, ifra, ia, flags)
struct in6_addr llsol;

/* join solicited multicast addr for new host id */
llsol.s6_addr32[0] = htonl(0xff020000);
llsol.s6_addr32[0] = IPV6_ADDR_INT32_MLL;
llsol.s6_addr32[1] = 0;
llsol.s6_addr32[2] = htonl(1);
llsol.s6_addr32[3] = ifra->ifra_addr.sin6_addr.s6_addr32[3];
Expand Down
6 changes: 3 additions & 3 deletions kame/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
/* $KAME: nd6.c,v 1.390 2005/08/25 01:24:35 suz Exp $ */
/* $KAME: nd6.c,v 1.391 2005/08/25 07:49:40 suz Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -1651,7 +1651,7 @@ nd6_rtrequest(req, rt, info)
int error;

llsol = SIN6(rt_key(rt))->sin6_addr;
llsol.s6_addr32[0] = htonl(0xff020000);
llsol.s6_addr32[0] = IPV6_ADDR_INT32_MLL;
llsol.s6_addr32[1] = 0;
llsol.s6_addr32[2] = htonl(1);
llsol.s6_addr8[12] = 0xff;
Expand Down Expand Up @@ -1687,7 +1687,7 @@ nd6_rtrequest(req, rt, info)
struct in6_multi *in6m;

llsol = SIN6(rt_key(rt))->sin6_addr;
llsol.s6_addr32[0] = htonl(0xff020000);
llsol.s6_addr32[0] = IPV6_ADDR_INT32_MLL;
llsol.s6_addr32[1] = 0;
llsol.s6_addr32[2] = htonl(1);
llsol.s6_addr8[12] = 0xff;
Expand Down

0 comments on commit 809d9b6

Please sign in to comment.