Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joanne Hugé
re6stnet
Commits
9930bb13
Commit
9930bb13
authored
Aug 16, 2012
by
Ulysse Beaugnon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solving a bug a the reception of a message advertising a peer
parent
150b92a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
re6st/db.py
re6st/db.py
+1
-1
re6st/plib.py
re6st/plib.py
+1
-1
No files found.
re6st/db.py
View file @
9930bb13
...
@@ -171,7 +171,7 @@ class PeerManager:
...
@@ -171,7 +171,7 @@ class PeerManager:
%
msg
)
%
msg
)
def
readSocket
(
self
,
msg
):
def
readSocket
(
self
,
msg
):
peer
=
msg
.
split
(
'
'
)
peer
=
msg
.
replace
(
'
\
n
'
,
''
).
split
(
' '
).
replace
(
'
\
n
'
,
'
'
)
if
len
(
peer
)
!=
2
:
if
len
(
peer
)
!=
2
:
logging
.
debug
(
'Invalid package recieved : %s'
%
msg
)
logging
.
debug
(
'Invalid package recieved : %s'
%
msg
)
return
return
...
...
re6st/plib.py
View file @
9930bb13
...
@@ -71,7 +71,7 @@ def router(network, subnet, subnet_size, interface_list,
...
@@ -71,7 +71,7 @@ def router(network, subnet, subnet_size, interface_list,
'-C'
,
'redistribute ip %s/%s le %s'
%
(
subnet
,
subnet_size
,
subnet_size
),
'-C'
,
'redistribute ip %s/%s le %s'
%
(
subnet
,
subnet_size
,
subnet_size
),
'-C'
,
'redistribute deny'
,
'-C'
,
'redistribute deny'
,
# Route VIFIB ip adresses
# Route VIFIB ip adresses
'-C'
,
'in ip %s::/%u'
%
(
utils
.
ipFromBin
(
network
),
len
(
network
)),
'-C'
,
'in ip %s::/%u
le 127
'
%
(
utils
.
ipFromBin
(
network
),
len
(
network
)),
# Route only addresse in the 'local' network,
# Route only addresse in the 'local' network,
# or other entire networks
# or other entire networks
#'-C', 'in ip %s' % (config.internal_ip),
#'-C', 'in ip %s' % (config.internal_ip),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment