<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>Date: Fri, 2 Jan 2009 16:39:26 -0600<br>From: "Mark K." <<a href="mailto:marklowpriority@gmail.com">marklowpriority@gmail.com</a>><br>Subject: [Olsr-dev] integrate with new physical layer<br>To: olsr-dev <<a href="mailto:olsr-dev@lists.olsr.org">olsr-dev@lists.olsr.org</a>><br>Message-ID: <<a href="mailto:80976511-B883-48B4-BC1E-DAB8E649D263@gmail.com">80976511-B883-48B4-BC1E-DAB8E649D263@gmail.com</a>><br>Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes<br><br>I'm trying to integrate OLSR with some radios and I'm having a hard <br>time with the way it uses sockets. The radios connect via USB but I <br>can't seem to poll that interface. Is it feasible to redirect packets <br>to an external queue or even a file that I could poll from another <br>app? Any advice on this idea would be great.<br><br>Looking at the source, I think I need to modify the net_output <br>function to change the output away from a traditional socket and <br>perhaps olsr_poll_sockets to inject packets back into OLSR after the <br>radio receives it.<br><br>Thanks.<br><br></div></blockquote>Perhaps the simplest way without having to modify the OLSRd code is to </div><div>create a network device (netdev) on top the USB interface.</div><div><br></div><div>Have a look at the "usbnet" driver, <a href="http://www.linux-usb.org/usbnet/">http://www.linux-usb.org/usbnet/</a></div><div><br></div><div>In the past, I had ran OLSR on PPP-over-RS232 by creating a PPP network </div><div>interface over the RS-232 serial device. (don't expect the speed to be great).</div><div><br></div></body></html>