[Olsr-cvs] olsrd-current/src net_olsr.c,1.13,1.14
Andreas T�nnesen
(spam-protected)
Mon Oct 2 10:37:19 CEST 2006
Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16504/src
Modified Files:
net_olsr.c
Log Message:
Patch for IPv6 netmask from John Hay
Index: net_olsr.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/net_olsr.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** net_olsr.c 10 Jan 2006 20:49:01 -0000 1.13
--- net_olsr.c 2 Oct 2006 08:37:17 -0000 1.14
***************
*** 762,766 ****
for(;p > 0; p -= 8)
{
! adr->v6.s6_addr[i] = (p < 8) ? 0xff ^ (0xff << p) : 0xff;
i++;
}
--- 762,766 ----
for(;p > 0; p -= 8)
{
! adr->v6.s6_addr[i] = (p < 8) ? 0xff ^ (0xff >> p) : 0xff;
i++;
}
***************
*** 800,804 ****
for(tmp = adr->v6.s6_addr[i];
tmp > 0;
! tmp = tmp >> 1)
prefix++;
}
--- 800,804 ----
for(tmp = adr->v6.s6_addr[i];
tmp > 0;
! tmp = (tmp << 1) & 0xff)
prefix++;
}
More information about the Olsr-cvs
mailing list