From 97bc2250559ee7899c12a165a1acc874a27eb26e Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 6 Apr 2006 13:26:00 +0000 Subject: [PATCH] Readjust where the IPs start. --- zyxel/zyxelcommon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zyxel/zyxelcommon.py b/zyxel/zyxelcommon.py index e6f1c4f..1c1ca78 100644 --- a/zyxel/zyxelcommon.py +++ b/zyxel/zyxelcommon.py @@ -18,8 +18,8 @@ def retSubnet(sw): def retIP(sw): (rad,num) = sw - gangefaktor = rad - ((rad - 1) / 2) - lopenr = 2 + 6 * gangefaktor + num + drad = (rad + 1) / 2 + lopenr = 6 * drad + num - 5 return NETWORK + ".%s.%s" % (retSubnet(sw), lopenr) # ooh, fugly -- 2.39.5