Skip to content

Commit

Permalink
allow host policy update (tenable#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
Devanshu1Sharma authored Sep 22, 2022
1 parent db3b7ae commit 849eef7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ calculateHosts(val) = ans {
ipVals := split(val, ".")
# 2^24 = 16777216, 2^16 = 65536, 2^8 = 256
# no of hosts in IP p.q.r.s = (p * 2^24) + (q * 2^16) + (r * 2^8) + s
ans = (to_number(ipVals[0]) * 16777216) + (to_number(ipVals[1]) * 65536) + (to_number(ipVals[2]) * 256) + to_number(ipVals[3])
ans := (to_number(ipVals[0]) * 16777216) + (to_number(ipVals[1]) * 65536) + (to_number(ipVals[2]) * 256) + to_number(ipVals[3])
}

0 comments on commit 849eef7

Please sign in to comment.