[Olsr-dev] setting HNAs at runtime

Hans-Christoph Steiner (spam-protected)
Wed Aug 15 02:30:13 CEST 2012

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,
has_inet_gateway = 1;


More information about the Olsr-dev mailing list