Inexplicably, this used to return an integer if the mask covered a
prefix. Fortunately, it was always invoked in order to produce a thing
which is printed via `%s', which stringifies anyway.
def straddr(a): return a is None and '#<none>' or S.inet_ntoa(pack('>L', a))
def strmask(m):
for i in xrange(33):
- if m == 0xffffffff ^ ((1 << (32 - i)) - 1): return i
+ if m == 0xffffffff ^ ((1 << (32 - i)) - 1): return str(i)
return straddr(m)
def cmd_showconfig():