mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
The mcastmngr read the uci file and configures the corresponding
multicast daemon accordingly. It is for now doing this for broadcom's
mcpd utility. Here are a few examples of what UCI config gets converted
to what /var/mcpd.conf
Snooping:
config snooping 'msnoop_1'
option enable '1'
option proto 'igmp'
option version '2'
option robustness '2'
option aggregation '0'
option interface 'br-wan100'
root@iopsys:~# cat /var/mcpd.conf
igmp-default-version 2
igmp-robustness-value 2
igmp-max-groups 20
igmp-max-sources 10
igmp-max-members 20
igmp-snooping-enable 1
igmp-proxy-enable 0
igmp-query-interval 125
igmp-query-response-interval 100
igmp-last-member-query-interval 10
igmp-mcast-interfaces eth5.100
igmp-snooping-interfaces br-wan100
Proxy:
config proxy 'mproxy_1'
option enable '1'
option proto 'igmp'
option version '2'
option robustness '2'
option aggregation '0'
option last_member_query_interval '10'
option query_interval '120'
option query_response_interval '100'
list downstream_interface 'br-lan'
list upstream_interface 'eth5.1'
root@iopsys:~# cat /var/mcpd.conf
igmp-default-version 2
igmp-robustness-value 2
igmp-max-groups 20
igmp-max-sources 10
igmp-max-members 20
igmp-snooping-enable 2
igmp-proxy-enable 1
igmp-fast-leave 1
igmp-query-interval 120
igmp-query-response-interval 100
igmp-last-member-query-interval 10
igmp-proxy-interfaces eth5.1
igmp-mcast-interfaces eth5.1
igmp-snooping-interfaces br-lan
38 lines
677 B
Makefile
38 lines
677 B
Makefile
#
|
|
# Copyright (C) 2013-2020 iopsys
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=mcastmngr
|
|
PKG_VERSION:=1.0.0
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/mcastmngr
|
|
CATEGORY:=Utilities
|
|
TITLE:=multicast packets manager daemon
|
|
endef
|
|
|
|
define Package/mcastmngr/description
|
|
Configures IGMP and MLD snooping and proxy
|
|
endef
|
|
|
|
#define Build/Prepare
|
|
# $(CP) -rf ./mcastmngr/* $(PKG_BUILD_DIR)/
|
|
#endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/mcastmngr/install
|
|
$(CP) ./files/* $(1)/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,mcastmngr))
|