[Olsr-cvs] olsrd-current/src net_olsr.c,1.7.2.1,1.7.2.2

Andreas T�nnesen (spam-protected)
Tue Dec 12 12:15:24 CET 2006


Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17785/src

Modified Files:
      Tag: olsrd_04
	net_olsr.c 
Log Message:
Added FreeBSD IPv6 patches from John Hay

Index: net_olsr.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/net_olsr.c,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -C2 -d -r1.7.2.1 -r1.7.2.2
*** net_olsr.c	16 Nov 2006 23:08:39 -0000	1.7.2.1
--- net_olsr.c	12 Dec 2006 11:15:21 -0000	1.7.2.2
***************
*** 497,501 ****
    for(;p > 0; p -= 8)
      {
!       adr->v6.s6_addr[i] = (p < 8) ? 0xff ^ (0xff << p) : 0xff;
        i++;
      }
--- 497,501 ----
    for(;p > 0; p -= 8)
      {
!       adr->v6.s6_addr[i] = (p < 8) ? 0xff ^ (0xff >> p) : 0xff;
        i++;
      }
***************
*** 535,539 ****
  	  for(tmp = adr->v6.s6_addr[i];
  	      tmp > 0;
! 	      tmp = tmp >> 1)
  	    prefix++;
  	}
--- 535,539 ----
  	  for(tmp = adr->v6.s6_addr[i];
  	      tmp > 0;
! 	      tmp = (tmp << 1) & 0xff)
  	    prefix++;
  	}





More information about the Olsr-cvs mailing list