fix ethermode now really (its hard to get hings right on 1.4)
authorMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Tue, 31 Mar 2009 22:12:13 +0000 (00:12 +0200)
committerMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Tue, 31 Mar 2009 22:12:13 +0000 (00:12 +0200)
src/unix/ifnet.c
src/win32/ifnet.c

index 2009b58..a2df8a1 100644 (file)
@@ -899,6 +899,8 @@ chk_if_up(struct olsr_if *iface, int debuglvl __attribute__ ((unused)))
   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;
+
   /*
    *Call possible ifchange functions registered by plugins
    */
index a5e25b3..356f60d 100644 (file)
@@ -971,6 +971,8 @@ chk_if_up(struct olsr_if *IntConf, int DebugLevel __attribute__ ((unused)))
   New->valtimes.mid = reltime_to_me(IntConf->cnf->mid_params.validity_time * MSEC_PER_SEC);
   New->valtimes.hna = reltime_to_me(IntConf->cnf->hna_params.validity_time * MSEC_PER_SEC);
 
+  New->mode = iface->cnf->mode;
+
   run_ifchg_cbs(New, IFCHG_IF_ADD);
 
   return 1;