In LLDPD filtering, having '0' in the configuration selects not 0, but 15

Is this a bug? Here is my configuration:

config lldpd 'config'
        option enable_cdp '1'
        option enable_fdp '1'
        option enable_sonmp '1'
        option enable_edp '1'
        option lldp_class '4'
        option lldp_location 'address country EU'
        list interface 'loopback'
        list interface 'lan'
        option enabled '1'
        option lldp_capability_advertisements '1'
        option lldp_mgmt_addr_advertisements '1'
        option lldp_tx_interval '30'
        option lldp_tx_hold '4'
        option readonly_mode '0'
        option lldp_portidsubtype 'macaddress'
        option lldp_agenttype 'nearest-bridge'
        option cdp_version 'cdpv1v2'
        option filter '0' # <-----

When I go to LuCi and LLDP > Settings > Advanced Settings, it shows 15. The other values are fine, it's just that I cannot select this one. I am on version 24.10.2.

‘0’ is interpreted as false. lldpd init falls back to 15 in that case:


config_get filter 'config' 'filter' 15

So 15 is default.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.