Commit 52a42554 authored by Guillaume Bury's avatar Guillaume Bury

Fix duplicate bootpeer bug

parent 8c4def4a
...@@ -2,26 +2,28 @@ re6stnet is a daemon setting up a resilient virtual private network over the ...@@ -2,26 +2,28 @@ re6stnet is a daemon setting up a resilient virtual private network over the
internet internet
HOW TO: HOW TO:
re6stnet ( sic ) has three separate components : a setup (setup.py), a re6stnet has three separate components : a setup (re6stnet-conf), a
server (registry.py) and a client (re6stnet.py. server (re6stnet-registry) and a client (re6stnet).
Lambda users only have to launch the setup and then their client. Lambda users only have to launch the setup and then their client.
The server is meant to be started once on a node which also will be running The server is meant to be started once on a node which also will be running
a client instance. a client instance.
The organisation of the code The organisation of the code
vifibnet.py Just contain the main loop and the init re6stnet.py Client : Init and main loop
plib.py To launch server/client/routing processes re6st/plib.py Launch server/client/routing processes
utils.py Small functions to do some useful job re6st/utils.py Small functions to do useful jobs
db.py Function to manage peers re6st/db.py Manage the peer database
tunnel.py To choose wich connection delete/keep/... re6st/tunnel.py Manage the tunnels
upnpigd.py To open a port re6st/upnpigd.py Forward ports
re6st-conf.py Get certificates from server
re6st-registry.py Server : deliver certificates and distribute peers
Note: On certain version of python (e.g. 2.7.3~rc2-2.1 ) dns lookup is Note: On certain version of python (e.g. 2.7.3~rc2-2.1 ) dns lookup is
performed for each request, and cause a delay in response. performed for each request, and cause a delay in response.
To avoid this, one can either upgrade python, fix their resolv.conf or use To avoid this, one can either upgrade python, fix their resolv.conf or use
the fix at the end of this file. the fix at the end of this file.
OPTIONS : REGISTRY.PY OPTIONS : RE6ST-REGISTRY
usage : ./registry port [options...] usage : ./registry port [options...]
port port
The port on which the server will listen The port on which the server will listen
...@@ -59,7 +61,7 @@ OPTIONS : REGISTRY.PY ...@@ -59,7 +61,7 @@ OPTIONS : REGISTRY.PY
--mailhost mailhost --mailhost mailhost
Mailhost to be used to send email containing token for registration Mailhost to be used to send email containing token for registration
OPTIONS : SETUP.PY OPTIONS : RE6ST-SETUP
usage : ./setup [options...] usage : ./setup [options...]
--server address --server address
Ip address of the machine running the re6stnet server. Both ipv4 Ip address of the machine running the re6stnet server. Both ipv4
...@@ -99,7 +101,7 @@ OPTIONS : SETUP.PY ...@@ -99,7 +101,7 @@ OPTIONS : SETUP.PY
not have any, an execption will occur, and the script will stop not have any, an execption will occur, and the script will stop
OPTIONS : RES6NET.PY OPTIONS : RES6NET
usage : ./re6stnet.py [options...] usage : ./re6stnet.py [options...]
--ip address port proto --ip address port proto
Specify connection information to be advertised to other nodes. Specify connection information to be advertised to other nodes.
......
...@@ -3,8 +3,8 @@ To be done : ...@@ -3,8 +3,8 @@ To be done :
instead of pure randomness instead of pure randomness
number of routes / tunnel number of routes / tunnel
( Write docstrings for all class/methods/functions ) README : move options doc elsewhere, make it look like a real readme
Use latency in babeld Use latency in babeld
Warn babeld about the tunnels wich are about to be deleted. Maybe we could just increase the cost. Warn babeld about the tunnels wich are about to be deleted. Maybe we could just increase the cost.
...@@ -129,8 +129,7 @@ class PeerManager: ...@@ -129,8 +129,7 @@ class PeerManager:
except socket.error: except socket.error:
pass pass
except sqlite3.IntegrityError, e: except sqlite3.IntegrityError, e:
import pdb; pdb.set_trace() if e.args[0] != 'column prefix is not unique':
if e.args[0] != '':
raise raise
return False return False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment