mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Modifying the lookup method for forwarding multicast packets enables forwarding on both tagged and untagged upstream interfaces. I have tested: - forwarding of traffic in untagged interface. - forwarding of traffic on tagged interface. - response to queries in above scenarios by upstream server. - forwarding of unsolicited joins and leaves to upstream server. I cannot see a fault at the moment
41 lines
476 B
Bash
Executable file
41 lines
476 B
Bash
Executable file
#!/bin/sh /etc/rc.common
|
|
|
|
START=98
|
|
STOP=10
|
|
|
|
USE_PROCD=1
|
|
NAME=mcast
|
|
|
|
include /lib/network
|
|
include /lib/mcast
|
|
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger network $NAME
|
|
}
|
|
|
|
start_service() {
|
|
if [ -f "/etc/config/mcast" ]; then
|
|
configure_mcast
|
|
fi
|
|
|
|
procd_open_instance
|
|
procd_set_param command "$PROG_EXE"
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|
|
|
|
boot() {
|
|
setup_mcast_mode
|
|
start
|
|
}
|
|
|
|
stop_service() {
|
|
service_stop $PROG_EXE
|
|
}
|
|
|
|
reload_service() {
|
|
stop
|
|
start
|
|
}
|
|
|