]> git.pld-linux.org Git - packages/arpwatch.git/commitdiff
- play with bogons.
authorPaweł Gołaszewski <blues@pld-linux.org>
Wed, 15 Oct 2003 20:50:19 +0000 (20:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    arpwatch.init -> 1.21
    arpwatch.sysconfig -> 1.3

arpwatch.init
arpwatch.sysconfig

index 26957942d3e50998845a75088fbe52c283109af5..f72c0f163986547d26d0fd0b972d0d376b1241ff 100644 (file)
@@ -11,6 +11,9 @@
 # Get network config
 . /etc/sysconfig/network
 
+# Initial values
+OPTIONS=""
+
 # Get service config
 [ -f /etc/sysconfig/arpwatch ] && . /etc/sysconfig/arpwatch
 
@@ -24,6 +27,16 @@ else
        exit 0
 fi
 
+if [ "${NO_BOGON}" = "yes" ]; then
+       OPTIONS="-N"
+else
+       if [ -n "${LOCAL_NETWORKS}" ]; then
+               for i in ${LOCAL_NETWORKS}; do
+                       OPTIONS="$OPTIONS -n $i"
+               done
+       fi
+fi
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -40,7 +53,7 @@ case "$1" in
                        msg_starting "arpwatch ($IFC)"
                        touch /var/lib/arpwatch/$IFC.dat
                        chown 2:2 /var/lib/arpwatch/$IFC.dat
-                       daemon arpwatch $NETWORKS -i $IFC -f /var/lib/arpwatch/$IFC.dat -u daemon
+                       daemon arpwatch $NETWORKS -i $IFC -f /var/lib/arpwatch/$IFC.dat -u daemon $OPTIONS
                        RETVAL=$?
                        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/arpwatch
                done
index 92bbc1f61242034794d96ff7a524c8a3e8a01ff2..38bc682dac2c4d8a485efa08226400532ae2fb4e 100644 (file)
@@ -4,5 +4,11 @@ SERVICE_RUN_NICE_LEVEL="+5"
 # Name of monitored interfaces
 INTERFACES=
 
-# networks to control
-NETWORKS=
+# Turn-off bogon logging. Sometimes it makes a lot of noise with useless
+# informations about bogons:
+#NO_BOGON="yes"
+
+# Additional local networks - usefull to avoid bogus bogons messages. You
+# can add here networks that are _not_ in your networks on interfaces.
+# Works only when NO_BOGON is not set. Multiple networks can be set here.
+LOCAL_NETWORKS=""
This page took 0.063738 seconds and 4 git commands to generate.