Allow unicast dst address for OLSR packets
authorHenning Rogge <hrogge@googlemail.com>
Fri, 22 Jan 2010 16:30:29 +0000 (17:30 +0100)
committerHenning Rogge <hrogge@googlemail.com>
Fri, 22 Jan 2010 16:30:29 +0000 (17:30 +0100)
src/unix/ifnet.c

index aa680a0..1da9c74 100644 (file)
@@ -857,6 +857,9 @@ chk_if_up(struct olsr_if *iface, int debuglvl __attribute__ ((unused)))
 
   /* Register socket */
   add_olsr_socket(ifp->olsr_socket, &olsr_input);
+  if (ifp->olsr_socket != ifp->send_socket) {
+    add_olsr_socket(ifp->send_socket, &olsr_input);
+  }
 
 #ifdef linux
   /* Set TOS */