[Olsr-users] olsr.org olsrd and nrlsmf

Patrick McCarty (spam-protected)
Thu Aug 28 23:17:09 CEST 2008


Regarding if it works on *BSD..

I looked up OpenBSD's arp.c code
(http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/arp/arp.c), and it
does not appear to use an ioctl at all.

I suspect the ioctl is unsupported for the other platforms, but thats
what ifdef's are for :)

Clearly, its a clean way to do it for Linux.

Patrick

On Thu, Aug 28, 2008 at 5:01 AM, Bernd Petrovitsch <(spam-protected)> wrote:
> On Thu, 2008-08-28 at 10:19 +0200, Roar Bjørgum Rotvik wrote:
>> Bernd Petrovitsch wrote:
>> > On Die, 2008-08-19 at 09:18 +0200, Roar Bjørgum Rotvik wrote:
>> > [...]
>> >> Or just use ioctl(), here is a short example:
>> >
>> > Cute. But where does this actually work?
>> > Because my recent Linux kernels needs the device name too as added below
>> > (yes, one wants to make it a parameter of the function).
>> > Otherwise I get a "No such device".
>>
>> Aah, this was just some code I extracted from a real project, so i stripped away some
>> lines and formatted the code in the email composer. I think the setting of the device name
>> was lost in this formatting.
>>
>> For reference this code was used on Fedora Core 4.
>
> Hmm, that leaves open if it works on the BSDs and MacOS.
>
>> Thanks for "fixing" this :)
>
> Google helped a lot;-)
>
>        Bernd
> --
> Firmix Software GmbH                   http://www.firmix.at/
> mobil: +43 664 4416156                 fax: +43 1 7890849-55
>          Embedded Linux Development and Services
>
>
>
> --
> Olsr-users mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-users




More information about the Olsr-users mailing list