[Olsr-cvs] olsrd-current/src/unix ifnet.c,1.36,1.37

Andreas T�nnesen (spam-protected)
Fri Apr 14 07:18:33 CEST 2006


Update of /cvsroot/olsrd/olsrd-current/src/unix
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15245/src/unix

Modified Files:
	ifnet.c 
Log Message:
Fix for interface IP change main address issue

Index: ifnet.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/unix/ifnet.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** ifnet.c	11 Apr 2006 14:59:20 -0000	1.36
--- ifnet.c	14 Apr 2006 05:18:31 -0000	1.37
***************
*** 316,320 ****
  	  
  	  if(memcmp(&olsr_cnf->main_addr, 
! 		    &((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr, 
  		    olsr_cnf->ipsize) == 0)
  	    {
--- 316,320 ----
  	  
  	  if(memcmp(&olsr_cnf->main_addr, 
! 		    &((struct sockaddr_in *)&ifp->int_addr)->sin_addr.s_addr, 
  		    olsr_cnf->ipsize) == 0)
  	    {





More information about the Olsr-cvs mailing list