You will probably be using the supplied `make-secnet-sites' program to
generate your VPN's list of sites as a secnet configuration from a
more-human-writeable form. If so you need to install the standard
-`ipaddr' Python module (python-ipaddr on Debian-derived systems).
+`future' and `ipaddr' Python modules (python-future and python-ipaddr
+on Debian-derived systems).
** System and network configuration
Uploaders: Stephen Early <steve@greenend.org.uk>,
Richard Kettlewell <rjk@terraraq.org.uk>
Build-Depends: debhelper (>= 5), libgmp3-dev, libadns1-dev, bison, flex,
- libbsd-dev, python-ipaddr, tclx, tcl, libtcl-chiark-1
+ libbsd-dev, python-ipaddr, python-future, tclx, tcl, libtcl-chiark-1
Standards-Version: 3.0.1
Package: secnet
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, python-ipaddr
+Depends: ${shlibs:Depends}, ${misc:Depends}, python-future, python-ipaddr
Recommends: python
Description: VPN software for distributed networks
secnet allows multiple private networks, each 'hidden' behind a single
"""
from __future__ import print_function
+from builtins import int
import string
import time
class num (basetype):
"A decimal number"
def __init__(self,w):
- self.n=string.atol(w[1])
+ self.n=int(w[1])
def __str__(self):
return '%d'%(self.n)
"A DNS name and UDP port number"
def __init__(self,w):
self.adr=w[1]
- self.port=string.atoi(w[2])
+ self.port=int(w[2])
if (self.port<1 or self.port>65535):
complain("invalid port number")
def __str__(self):
class rsakey (basetype):
"An RSA public key"
def __init__(self,w):
- self.l=string.atoi(w[1])
+ self.l=int(w[1])
self.e=w[2]
self.n=w[3]
def __str__(self):