mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 19:51:40 +02:00
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:
parent
d541d73549
commit
753cf160e4
@ -2856,7 +2856,7 @@ decodeaddr() {
|
||||
IFS=.
|
||||
|
||||
for x in $1; do
|
||||
temp=$(( $temp * 256 + $x ))
|
||||
temp=$(( $(( $temp << 8 )) | $x ))
|
||||
done
|
||||
|
||||
echo $temp
|
||||
|
Loading…
x
Reference in New Issue
Block a user