mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-06 17:56:51 +02:00
shorewall show macros -- Take 3
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3085 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
26cf234d04
commit
eae01af2fc
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# /usr/share/shorewall/macro.SMB
|
# /usr/share/shorewall/macro.SMB
|
||||||
#
|
#
|
||||||
# This macro handle Microsoft SMB traffic. You need to invoke this macro
|
# This macro handles Microsoft SMB traffic. You need to invoke this macro
|
||||||
# in both directions.
|
# in both directions.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -919,11 +919,7 @@ case "$1" in
|
|||||||
if [ -n "$foo" ]; then
|
if [ -n "$foo" ]; then
|
||||||
macro=${macro#*.}
|
macro=${macro#*.}
|
||||||
foo=${foo%.*}
|
foo=${foo%.*}
|
||||||
if [ ${#macro} -lt 4 ]; then
|
echo " $macro ${foo#\#}"
|
||||||
echo " $macro ${foo#\#}"
|
|
||||||
else
|
|
||||||
echo " $macro ${foo#\#}"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user