device: add support for configuring devices with external auth handler
authorFelix Fietkau <nbd@nbd.name>
Mon, 17 May 2021 09:20:09 +0000 (11:20 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 17 May 2021 09:23:30 +0000 (11:23 +0200)
commit2a97fd006c3b09c1aeab30ac881c9ac902365d57
tree65b9676bcad44f00c459b6e2bf99de7f026cc072
parent3052f2f67686f3d540d4d941e4664730de530741
device: add support for configuring devices with external auth handler

This can be used to support 802.1x on wired devices.
In order to use this, the device section for each port needing authentication
needs to contain the option auth 1
When set, this option prevents devices from being added to bridges or configured
with IP settings by default, until the set_state ubus call on network.device
sets "auth_status" to true for the device.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
bridge.c
device.c
device.h
interface.c
ubus.c