[Olsr-cvs] olsrd-current/src/unix ifnet.c,1.31.2.1,1.31.2.2

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


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

Modified Files:
      Tag: olsrd_04
	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.31.2.1
retrieving revision 1.31.2.2
diff -C2 -d -r1.31.2.1 -r1.31.2.2
*** ifnet.c	11 Apr 2006 18:48:37 -0000	1.31.2.1
--- ifnet.c	14 Apr 2006 05:18:16 -0000	1.31.2.2
***************
*** 311,315 ****
  	  
  	  if(memcmp(&main_addr, 
! 		    &((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr, 
  		    ipsize) == 0)
  	    {
--- 311,315 ----
  	  
  	  if(memcmp(&main_addr, 
! 		    &((struct sockaddr_in *)&ifp->int_addr)->sin_addr.s_addr, 
  		    ipsize) == 0)
  	    {





More information about the Olsr-cvs mailing list