[Olsr-dev] setting HNAs at runtime
Henning Rogge
(spam-protected)
Wed Aug 15 07:50:09 CEST 2012
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.
Henning Rogge
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6169 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20120815/55dac821/attachment.bin>
More information about the Olsr-dev
mailing list