[Olsr-users] Bug in L2 Generator ?

(spam-protected) (spam-protected)
Wed Jul 27 12:13:43 CEST 2022


Hello all,
I'm confused about the L2 Generator. I'm using the following config:

[global]
        plugin          dlep_radio
        plugin          layer2info
        plugin          layer2_generator

[log]
        debug           layer2_generator
        info            layer2_generator
[layer2_generator]
        interface       eth0
        active          true

[dlep_radio=eth0]
        datapath_if     eth0

[telnet]
    bindto 0.0.0.0

What I'm seeing is, the log statement from L265.

After this, the plugin should register itself as a L2 data source here: L269

After this, oonf_layer2_origin_is_added should return true and the plugin should push updates to the L2 DB. But at L204 it returns without doing anything if oonf_layer2_origin_is_added returns true. That seems wrong, but I might very well misunderstand the logic. Can anybody enlighten me?

Regards
  JPO

L204 : https://github.com/OLSR/OONF/blob/1bd73550a42686d47f487a9c5d5602304a8712c7/src/generic/layer2_generator/layer2_generator.c#L204 
L265: https://github.com/OLSR/OONF/blob/1bd73550a42686d47f487a9c5d5602304a8712c7/src/generic/layer2_generator/layer2_generator.c#L265
L269: https://github.com/OLSR/OONF/blob/1bd73550a42686d47f487a9c5d5602304a8712c7/src/generic/layer2_generator/layer2_generator.c#L269


More information about the Olsr-users mailing list