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

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


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

Modified Files:
      Tag: olsrd_04
	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.31.2.2
retrieving revision 1.31.2.3
diff -C2 -d -r1.31.2.2 -r1.31.2.3
*** ifnet.c	14 Apr 2006 05:18:16 -0000	1.31.2.2
--- ifnet.c	17 Apr 2006 18:25:30 -0000	1.31.2.3
***************
*** 123,130 ****
  	continue;
  
        if(tmp_if->configured)
! 	chk_if_changed(tmp_if);
        else
! 	chk_if_up(tmp_if, 3);
      }
  
--- 123,143 ----
  	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