OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 7... Line 7...
7 CONFIGFILE=/var/etc/igmpproxy.conf 7 CONFIGFILE=/var/etc/igmpproxy.conf
Line 8... Line 8...
8   8  
9 igmp_header() { 9 igmp_header() {
10 local quickleave verbose 10 local quickleave verbose
11 config_get_bool quickleave "$1" quickleave 0 11 config_get_bool quickleave "$1" quickleave 0
Line 12... Line -...
12 config_get verbose "$1" verbose 1 -  
13   12 config_get verbose "$1" verbose 0
14 [ $verbose = "0" ] && logopts="-d" 13  
Line 15... Line 14...
15 [ $verbose = "2" ] && logopts="-v" 14 [ $verbose = "1" ] && logopts="-v"
16 [ $verbose = "3" ] && logopts="-v -v" 15 [ $verbose = "2" ] && logopts="-v -v"
17   16  
Line 66... Line 65...
66 config_get direction $1 direction 65 config_get direction $1 direction
67 config_get zone $1 zone 66 config_get zone $1 zone
Line 68... Line 67...
68   67  
Line 69... Line -...
69 [[ "$direction" = "downstream" && ! -z "$zone" ]] || return 0 -  
70   -  
71 # First drop SSDP packets then accept all other multicast -  
72   -  
73 json_add_object "" -  
74 json_add_string type rule -  
75 json_add_string src "$upstream" -  
76 json_add_string dest "$zone" -  
77 json_add_string family ipv4 -  
78 json_add_string proto udp -  
79 json_add_string dest_ip "239.255.255.250" -  
80 json_add_string target DROP -  
81 json_close_object 68 [[ "$direction" = "downstream" && ! -z "$zone" ]] || return 0
82   69  
83 json_add_object "" 70 json_add_object ""
84 json_add_string type rule 71 json_add_string type rule
85 json_add_string src "$upstream" 72 json_add_string src "$upstream"