Replace multiplication by bit shift in decodeaddr()

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@616 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-06-25 19:20:23 +00:00
parent d541d73549
commit 753cf160e4
2 changed files with 2 additions and 2 deletions

View File

@ -2856,7 +2856,7 @@ decodeaddr() {
IFS=.
for x in $1; do
temp=$(( $temp * 256 + $x ))
temp=$(( $(( $temp << 8 )) | $x ))
done
echo $temp

View File

@ -25,4 +25,4 @@ New Features:
Example:
DNAT net loc:192.168.10.2-192.168.10.5 tcp 80
DNAT net loc:192.168.10.2-192.168.10.5 tcp 80