luci
luci copied to clipboard
luci-base, luci-app-firewall: enable range of MAC addresses
In order to handle a range of MAC addresses it seems to be useful being able to set it in luci.
Therefore these commits use the src_mac field to specify ranges like can be seen in the pictures.
Also negation can be used to exclude a certain range for being handled.
This PR depends on openwrt/firewall4#74
- [x] This PR is not from my main or master branch :poop:, but a separate branch :white_check_mark:
- [x] Each commit has a valid :black_nib:
Signed-off-by: <[email protected]>row (viagit commit --signoff) - [x] Each commit and PR title has a valid :memo:
<package name>: titlefirst line subject for packages - [x] Tested on: (x86/64, openwrt-24.10, firefox) :white_check_mark:
- [x] Screenshot or mp4 of changes:
If a single MAC address is specified, it is validated by macaddr if a range is given it is validated by macrange
invalid MAC address
valid MAC address
invalid range
valid range
also negation is possible
upper address is lower than lower macaddr -> error
- [x] Depends on: e.g. openwrt/firewall4#74 in sister repo
- [x] Description: (describe the changes proposed in this PR)