-function PRINTCNT() {
-if [ "$1" != "" ]; then
- if [ "$1" = "0" ]; then
- echo -e "$2\t$3\tInvalid packet length"
- elif [ "$1" = "1" ]; then
- echo -e "$2\t$3\tInvalid VLAN tag"
- elif [ "$1" = "2" ]; then
- echo -e "$2\t$3\tInvalid/rejected IHL IPv4 field"
- elif [ "$1" = "3" ]; then
- echo -e "$2\t$3\tRejected IPv6 fragments"
- else
- echo -en "$2\t$3\t"
- cat "$(dirname ${BASH_SOURCE[0]})/installed-rules.txt" | head -n $(( $1 - 3 )) | tail -n1
- fi
-fi
-CNT=0
-}