From 1d6bf935c097b7059f46226d0ead3075e0da3abf Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 6 Apr 2006 13:23:29 +0000 Subject: [PATCH] More off-by-one fixes. --- zyxel/zyxelcommon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zyxel/zyxelcommon.py b/zyxel/zyxelcommon.py index ad2fa4a..e6f1c4f 100644 --- a/zyxel/zyxelcommon.py +++ b/zyxel/zyxelcommon.py @@ -5,7 +5,7 @@ LOGHOST="194.0.255.20" # No Z-constant for you! def retSubnet(sw): (rad,num) = sw - drad = (rad - 1) / 2 + drad = (rad + 1) / 2 if drad <= 7 or (drad == 8 and (num <= 3 or num == 6)): return "241" if drad <= 13 or (drad == 14 and num != 4) or (drad == 15 and num <= 3): -- 2.39.2