[Olsr-dev] setting HNAs at runtime
Hans-Christoph Steiner
(spam-protected)
Wed Aug 15 15:07:34 CEST 2012
On 08/15/2012 01:50 AM, Henning Rogge wrote:
> On 08/15/2012 02:30 AM, Hans-Christoph Steiner wrote:
>> On 08/14/2012 04:08 PM, Manuel Munz wrote:
>>> On 14.08.2012 21:45, Hans-Christoph Steiner wrote:
>>>>
>>>> I haven't found a clear way to set HNAs at runtime, though I've found
>>>> some promising functions. olsr_add_hna_net/olsr_delete_hna_net_entry
>>>> in src/hna_set.c look right, but I can't find a single use of them in
>>>> the olsrd sources. And the HNA parsing from the olsrd.conf seems to
>>>> work entirely differently internally.
>>>>
>>>> Can anyone provide an example of how to add an HNA net at runtime?
>>>>
>>>> .hc
>>>
>>> I would be very interested. too. I guess one example would be the
>>> dyngw(_plain) because this can already add HNA.
>>>
>>> Regards, soma
>>
>> Looking at dyn_gw_plain, it seems its done like this:
>>
>> ip_prefix_list_add(&olsr_cnf->hna_entries, &gw_net,
>> olsr_netmask_to_prefix(&gw_netmask));
>> has_inet_gateway = 1;
>
> Ah yes, I remember... I do not know why, but there are no really good
> accessor-methods for the HNA list, its done by this "ip_prefix_list_xxx"
> functions at the moment.
What about all of the functions in src/hna_set.c?
.hc
More information about the Olsr-dev
mailing list