[Olsr-dev] (no subject)

Aaron Kaplan (spam-protected)
Sun May 18 20:40:23 CEST 2008


Stanley,

please take a look on this one... it is not finished yet.. but  
release early and often etc :)
Please in case you generalize it, do feed back the changes the the  
main branch.

I am not happy with the convert_ip_* function  - some generalization  
and clean way of doing it is probably better :)

a.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: olsr-filter.tgz
Type: application/octet-stream
Size: 2857 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20080518/5dd91688/attachment.obj>
-------------- next part --------------






On May 18, 2008, at 6:43 PM, Stanley Koteks wrote:

> An off-list suggestion was to grep for 127.0.0.1 in the source in
> order to find the HNA filter. This does not give the result needed.
> The only result is in net_olsr.c, which implements an IP filter using
> olsr_validate_address, which is only used for connections. No such use
> for filtering HNAs. Maybe someone else from the dev team has enough
> time to point me in the right direction.
>
> Thanks,
> Stan
>
> On 5/17/08, Stanley Koteks <(spam-protected)> wrote:
>> Could you elaborate? Do you mean this is a config option already, or
>> that I can make a patch for this config option? If the latter, do you
>> want this patch?
>>
>> On 5/17/08, Sven-Ola Tuecke <(spam-protected)> wrote:
>>> 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
>>>
>>>
>>> --
>>> Olsr-dev mailing list
>>> (spam-protected)
>>> http://lists.olsr.org/mailman/listinfo/olsr-dev
>>>
>>
>
> -- 
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev

---
there's no place like 127.0.0.1





More information about the Olsr-dev mailing list