[Olsr-cvs] olsrd-current/src hashing.c,1.13,1.14

Bernd Petrovitsch (spam-protected)
Tue Jul 10 10:42:30 CEST 2007


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

Modified Files:
	hashing.c 
Log Message:
* fixed hashing bug found and fixed by Sven-Ola Tuecke

Index: hashing.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/hashing.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** hashing.c	30 Jun 2007 23:03:10 -0000	1.13
--- hashing.c	10 Jul 2007 08:42:28 -0000	1.14
***************
*** 55,59 ****
      if(olsr_cnf->ip_version == AF_INET) {
          /* IPv4 */  
!         const olsr_u8_t * const v4x = (const char *)&address;
          hash = v4x[0] ^ v4x[1] ^ v4x[2] ^ v4x[3];
      } else {
--- 55,59 ----
      if(olsr_cnf->ip_version == AF_INET) {
          /* IPv4 */  
!         const olsr_u8_t * const v4x = (const olsr_u8_t *)&address->v4;
          hash = v4x[0] ^ v4x[1] ^ v4x[2] ^ v4x[3];
      } else {





More information about the Olsr-cvs mailing list