Sfoglia il codice sorgente

Prepend underscores to private functions names

Edvinas Valatka 8 anni fa
parent
commit
15148999bb
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      e-router

+ 5 - 5
e-router

@@ -20,12 +20,12 @@ base() {
 
 final(){
     if $loginput; then
-        droplog "FINAL"
+        _droplog "FINAL"
         ${iptables} -A INPUT -j FINAL-LOG-DROP
     fi
 }
 
-droplog() {
+_droplog() {
     ${iptables} -N ${1}-LOG-DROP
     if $debugtcp; then
         ${iptables} -A ${1}-LOG-DROP -p tcp  -j LOG --log-prefix "${1}-LOG-DROP TCP: " --log-level 7
@@ -66,7 +66,7 @@ forward() {
     done < $confd/FORWARD.udp
 
     if $logforward ; then
-        droplog "FORWARD"
+        _droplog "FORWARD"
         ${iptables} -A FORWARD -j FORWARD-LOG-DROP
     fi
     ${iptables} -A FORWARD -j END-RESET
@@ -90,7 +90,7 @@ whitenets() {
 badips() {
     ipset create -! $banset hash:ip hashsize 4096 timeout $banttl  maxelem $badmaxelems
     if $logbad ; then
-        droplog "BAD"
+        _droplog "BAD"
         ${iptables} -A INPUT -i ${wan} -p udp       -m set --match-set $banset src -m conntrack --ctstate NEW --ctproto UDP -j BAD-LOG-DROP
         ${iptables} -A INPUT -i ${wan} -p tcp --syn -m set --match-set $banset src -m conntrack --ctstate NEW --ctproto TCP -j BAD-LOG-DROP
     fi
@@ -103,7 +103,7 @@ scanips() {
     ${iptables} -A INPUT -i ${wan} -p udp       -m conntrack --ctstate NEW --ctproto UDP -j SET --add-set $scanset src --exist --timeout $scanttl
     ${iptables} -A INPUT -i ${wan} -p tcp --syn -m conntrack --ctstate NEW --ctproto TCP -j SET --add-set $scanset src --exist --timeout $scanttl
     if $logscan ; then
-        droplog "SCAN"
+        _droplog "SCAN"
         ${iptables} -A INPUT -i ${wan} -p udp       -m set --match-set $scanset src -m conntrack --ctstate NEW --ctproto UDP -j SCAN-LOG-DROP
         ${iptables} -A INPUT -i ${wan} -p tcp --syn -m set --match-set $scanset src -m conntrack --ctstate NEW --ctproto TCP -j SCAN-LOG-DROP
     fi