fix: interface mode (=push somehow dissapeared code again (grml))
authorMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Tue, 31 Mar 2009 20:57:04 +0000 (22:57 +0200)
committerMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Tue, 31 Mar 2009 20:57:04 +0000 (22:57 +0200)
src/unix/ifnet.c
src/win32/ifnet.c

index 0717fed..2009b58 100644 (file)
@@ -581,6 +581,8 @@ add_hemu_if(struct olsr_if *iface)
   ifp->valtimes.mid = reltime_to_me(iface->cnf->mid_params.validity_time * MSEC_PER_SEC);
   ifp->valtimes.hna = reltime_to_me(iface->cnf->hna_params.validity_time * MSEC_PER_SEC);
 
+  ifp->mode = iface->cnf->mode;
+
   return 1;
 }
 
index 7aedcb4..a5e25b3 100644 (file)
@@ -682,6 +682,8 @@ add_hemu_if(struct olsr_if *iface)
   ifp->valtimes.mid = reltime_to_me(iface->cnf->mid_params.validity_time * MSEC_PER_SEC);
   ifp->valtimes.hna = reltime_to_me(iface->cnf->hna_params.validity_time * MSEC_PER_SEC);
 
+  ifp->mode = iface->cnf->mode;
+
   return 1;
 }