Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize official source code #126

Merged
merged 40 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
8f714af
lldpd: add lldp_syscapabilities config option
spflieger Sep 20, 2023
b0f991d
lldpd: Init config read on reload
Dec 16, 2023
f79ab96
lldpd: LLDPD binds to only specified interfaces
Dec 16, 2023
1d83e4c
lldpd: Allow neighbour filtering
Dec 16, 2023
59ad77f
lldpd: Init adds no-version option
Dec 16, 2023
15e6259
lldpd: option to disable LLDP-MED inventory TLV
Dec 16, 2023
be48249
lldpd: add LLDP MED options
Dec 16, 2023
6cbc100
lldpd: add agent-type option
Dec 16, 2023
ed3f182
lldpd: add portidsubtype option
Dec 16, 2023
7f58fc1
lldpd: allow disabling LLDP protcol
Dec 17, 2023
d6da095
lldpd: set CDP version and allow forcing CDP on
Dec 17, 2023
1201a69
lldpd: add option to force FDP on
Dec 17, 2023
18fc86a
lldpd: add option to force SONMP enabled
Dec 17, 2023
b200840
lldpd: add option to set system platform
Dec 17, 2023
a7f749d
lldpd: add option for tx delay and tx hold
Dec 17, 2023
02e3845
lldpd: Update Makefile package release
Dec 17, 2023
13193cb
lldpd: only use snmp options when compiled in
Feb 3, 2024
4ebd60b
lldpd: add option to force EDP
Feb 3, 2024
1d14e0a
lldpd: fix -k 'lldp_no_version' row
systemcrash Feb 8, 2024
c0217ef
lldpd: spell fixes
systemcrash Feb 8, 2024
b1ddf0a
lldpd: fix a paste error
systemcrash Feb 8, 2024
4446346
lldpd: remove unneeded quotes and variable quoting
systemcrash Feb 8, 2024
50135a0
lldpd: remove unneeded quotes
systemcrash Feb 8, 2024
89759ee
lldpd: remove unneeded quotes and variable quoting
systemcrash Feb 8, 2024
64b38f3
lldpd: remove unneeded quotes and variable quoting
systemcrash Feb 8, 2024
8766fed
lldpd: remove unneeded quotes and variable quoting
systemcrash Feb 8, 2024
74581b0
lldpd: remove unneeded quotes
systemcrash Feb 8, 2024
b886948
lldpd: refactor out ifaces derivation; reuse function
systemcrash Feb 8, 2024
7542e79
lldpd: fix error "sh: XXXms: bad number"
systemcrash Feb 8, 2024
5667516
lldpd: Implement location parameter
systemcrash Feb 8, 2024
601bbdd
lldpd: implement lldp_policy parameter
systemcrash Feb 8, 2024
d7765c4
lldpd: shellcheck fixes
systemcrash Mar 11, 2024
3d3dad6
lldpd: update URL
systemcrash Mar 11, 2024
ca0c236
lldpd: fix restart
systemcrash Apr 2, 2024
cec0219
lldpd: note about capabilities
systemcrash Apr 2, 2024
af6a852
lldpd: make capabilities advertisement controllable
systemcrash Apr 3, 2024
7ee813b
lldpd: make management address advertisement controllable
systemcrash Apr 2, 2024
0b48b83
lldpd: extended interface(s) parsing to handle patterns
systemcrash Apr 12, 2024
e3bb358
lldpd: fix reload bug: advertisements shall default to on
systemcrash Apr 22, 2024
4d7ad37
ramips: mt7621: use lzma-loader for Sercomm NA502s
andyboeh Sep 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions package/network/services/lldpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=lldpd
PKG_VERSION:=1.0.17
PKG_RELEASE:=1
PKG_RELEASE:=5

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/lldpd/lldpd/releases/download/$(PKG_VERSION)/
Expand All @@ -31,7 +31,7 @@ define Package/lldpd
CATEGORY:=Network
SUBMENU:=Routing and Redirection
TITLE:=Link Layer Discovery Protocol daemon
URL:=https://vincentbernat.github.io/lldpd/
URL:=https://lldpd.github.io/
DEPENDS:=+libcap +libevent2 +USE_GLIBC:libbsd +LLDPD_WITH_JSON:libjson-c +LLDPD_WITH_SNMP:libnetsnmp
USERID:=lldp=121:lldp=129
MENU:=1
Expand Down Expand Up @@ -68,19 +68,28 @@ define Package/lldpd/install
$(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd
$(INSTALL_CONF) ./files/lldpd.config $(1)/etc/config/lldpd
ifneq ($(CONFIG_LLDPD_WITH_CDP),y)
sed -i -e '/cdp/d' $(1)/etc/init.d/lldpd $(1)/etc/config/lldpd
sed -i -e 's/CONFIG_LLDPD_WITH_CDP=y/CONFIG_LLDPD_WITH_CDP=n/g' $(1)/etc/init.d/lldpd
sed -i -e '/cdp/d' $(1)/etc/config/lldpd
endif
ifneq ($(CONFIG_LLDPD_WITH_FDP),y)
sed -i -e '/fdp/d' $(1)/etc/init.d/lldpd $(1)/etc/config/lldpd
sed -i -e 's/CONFIG_LLDPD_WITH_FDP=y/CONFIG_LLDPD_WITH_FDP=n/g' $(1)/etc/init.d/lldpd
sed -i -e '/fdp/d' $(1)/etc/config/lldpd
endif
ifneq ($(CONFIG_LLDPD_WITH_EDP),y)
sed -i -e '/edp/d' $(1)/etc/init.d/lldpd $(1)/etc/config/lldpd
sed -i -e 's/CONFIG_LLDPD_WITH_EDP=y/CONFIG_LLDPD_WITH_EDP=n/g' $(1)/etc/init.d/lldpd
sed -i -e '/edp/d' $(1)/etc/config/lldpd
endif
ifneq ($(CONFIG_LLDPD_WITH_SONMP),y)
sed -i -e '/sonmp/d' $(1)/etc/init.d/lldpd $(1)/etc/config/lldpd
sed -i -e 's/CONFIG_LLDPD_WITH_SONMP=y/CONFIG_LLDPD_WITH_SONMP=n/g' $(1)/etc/init.d/lldpd
sed -i -e '/sonmp/d' $(1)/etc/config/lldpd
endif
ifneq ($(CONFIG_LLDPD_WITH_SNMP),y)
sed -i -e '/agentxsocket/d' $(1)/etc/init.d/lldpd $(1)/etc/config/lldpd
sed -i -e 's/CONFIG_LLDPD_WITH_SNMP=y/CONFIG_LLDPD_WITH_SNMP=n/g' $(1)/etc/init.d/lldpd
sed -i -e '/agentxsocket/d' $(1)/etc/config/lldpd
endif
ifneq ($(CONFIG_LLDPD_WITH_LLDPMED),y)
sed -i -e 's/CONFIG_LLDPD_WITH_LLDPMED=y/CONFIG_LLDPD_WITH_LLDPMED=n/g' $(1)/etc/init.d/lldpd
sed -i -e '/agentxsocket/d' $(1)/etc/config/lldpd
endif
endef

Expand Down
4 changes: 3 additions & 1 deletion package/network/services/lldpd/files/lldpd.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ config lldpd config
option agentxsocket /var/run/agentx.sock

option lldp_class 4
option lldp_location "2:FR:6:Commercial Rd:3:Roseville:19:4"
# lldp_policy only needed for lldp_class 2-3
# option lldp_policy 'application streaming-video unknown'
option lldp_location "address country EU"

# if empty, the distribution description is sent
#option lldp_description "OpenWrt System"
Expand Down
Loading
Loading