#10324: Whitelist option for igmpproxy
---------------------------------------+-----------------------------------
  Reporter:  Pilot6 <hanipouspilot@…>  |      Owner:  jogo
      Type:  enhancement               |     Status:  accepted
  Priority:  normal                    |  Milestone:  Barrier Breaker 14.07
 Component:  packages                  |    Version:  Trunk
Resolution:                            |   Keywords:
---------------------------------------+-----------------------------------

Comment (by anonymous):

 Could this work?

 {{{
 igmp_add_phyint() {
         local network direction altnets whitelists

         config_get network $1 network
         config_get direction $1 direction
         config_get altnets $1 altnet
         config_get whitelists $1 whitelist

         device=$(uci_get_state network "$network" ifname "$network")
         echo -e "\nphyint $device $direction ratelimit 0 threshold 1" >>
 /var/etc/igmpproxy.conf

         if [ -n "$altnets" ]; then
                 local altnet
                 for altnet in $altnets; do
                         echo -e "\taltnet $altnet" >>
 /var/etc/igmpproxy.conf
                 done
         fi

         if [ -n "$whitelists" ]; then
                 local whitelist
                 for whitelist in $whitelists; do
                         echo -e "\twhitelist $whitelist" >>
 /var/etc/igmpproxy.conf
                 done
         fi
 }
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/10324#comment:3>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to