openwrt/package/network/services
Paul Donald 4a81d868db
lldpd: extended interface(s) parsing to handle patterns
For interface type parameters, the man page documents patterns:
```
*,!eth*,!!eth1

uses all interfaces, except interfaces starting with "eth",
but including "eth1".
```

* Renamed `_ifname` to `_l2dev`.
* get the l2dev via network_get_physdev (and not l3dev)
* Glob pattern `*` is also valid - use noglob for this

The net result is that now interface 'names' including globs '*' and '!'
inversions are included in the generated lldpd configs.

Temporarily `set -o noglob` and then `set +o noglob` to disable & enable
globbing respectively, because when we pass `*` as an interface choice,
other file and pathnames get sucked in from where the init script runs,
and the `*` never makes it to lldpd.

Tested extensively on: 22.03.6, 23.05.3

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
[ squash with commit bumping release version ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-04-21 17:57:03 +02:00
..
bridger bridger: update to Git HEAD (2024-04-15) 2024-04-15 11:29:24 +02:00
dnsmasq dnsmasq: Backport 2 upstream patches 2024-03-20 01:18:21 +01:00
dropbear dropbear: better handle interfaces 2024-02-09 09:13:05 +00:00
ead ead: fix resource leak in tinysrp 2020-01-05 19:36:46 +01:00
hostapd hostapd: fix a crash corner case 2024-04-13 16:33:45 +02:00
ipset-dns treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
lldpd lldpd: extended interface(s) parsing to handle patterns 2024-04-21 17:57:03 +02:00
odhcpd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
omcproxy treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
ppp treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
relayd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
uhttpd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
umdns treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
unetd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
ustp treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00