[Olsr-dev] (no subject)

Sven-Ola Tuecke (spam-protected)
Sat May 17 19:40:29 CEST 2008


Hi,

that is already there. Filters out 127.0.0.1. Just extend, add netmask and 
make new config option.

// Sven-Ola

""Stanley Kotes"" <(spam-protected)> schrieb im Newsbeitrag 
news:(spam-protected)
> Hello,
>
> I want to implement a filter module to filter out routes that are not
> wanted. For instance:
>
> PlParam "filter" "192.168.2.0/24"
>
> Would not accept any HNAs in that range, instead, silently drop them.
> I have most of the plugin already written, and can print out "Accept"
> or "Reject" messages depending on the HNAs received. The only part I
> don't understand is how to actually approve or reject the olsr_message
> I received. At the moment, I'm registering a parser that gets HNA
> messages and calling olsr_forward_message to forward the message if I
> accept it, and I don't call that if I reject it. Is that correct? Is
> there any documentation I can read about this? Or do I need to change
> something else?
>
> Also, I believe I have found a bug in ip_in_net in ipcalc.c. I was
> using the functions in here for obvious reasons, and without this
> patch, it would not convert the IPs to host form in order to perform
> the bitwise AND. This patch fixes that so that it works on little and
> big endian machines. The patch is attached.
>
> Stanley Koteks
>


--------------------------------------------------------------------------------


> -- 
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev 





More information about the Olsr-dev mailing list