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

Andreas T�nnesen (spam-protected)
Mon Apr 17 20:31:11 CEST 2006


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

Modified Files:
	ifnet.c 
Log Message:
Added new config options NicChgsPollInt and AutoDetectChanges

Index: ifnet.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/unix/ifnet.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** ifnet.c	14 Apr 2006 05:18:31 -0000	1.37
--- ifnet.c	17 Apr 2006 18:31:09 -0000	1.38
***************
*** 128,135 ****
  	continue;
  
        if(tmp_if->configured)
! 	chk_if_changed(tmp_if);
        else
! 	chk_if_up(tmp_if, 3);
      }
  
--- 128,148 ----
  	continue;
  
+       if(!tmp_if->cnf->autodetect_chg) 
+         {
+ #ifdef DEBUG
+           /* Don't check this interface */
+           OLSR_PRINTF(3, "Not checking interface %s\n", tmp_if->name)
+ #endif
+           continue;
+         }
+ 
        if(tmp_if->configured)
!         {
!           chk_if_changed(tmp_if);
!         }
        else
!         {
!           chk_if_up(tmp_if, 3);
!         }
      }
  





More information about the Olsr-cvs mailing list