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
Yohann D'Anello
re6stnet
Commits
32588808
Commit
32588808
authored
Apr 17, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ip value got from window ipv6 route table.
parent
827575ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
re6st/tunnel.py
re6st/tunnel.py
+3
-3
No files found.
re6st/tunnel.py
View file @
32588808
...
...
@@ -300,8 +300,8 @@ class TunnelManager(object):
iface
=
fs
[
1
].
strip
()
elif
fs
[
0
].
startswith
(
'Site Prefix Length'
):
rttable
.
append
([
utils
.
binFromIp
(
prefix
),
int
(
prefix_len
),
iface
])
return
rttable
return
rttable
def
_countRoutes
(
self
):
logging
.
debug
(
'Starting to count the routes on each interface...'
)
del
self
.
_distant_peers
[:]
...
...
@@ -338,7 +338,7 @@ class TunnelManager(object):
self
.
_last_routing_table
=
self
.
_get_win32_ipv6_route_table
()
for
rtline
in
self
.
_last_routing_table
:
iface
=
rtline
[
2
]
ip
=
rtline
[
0
]
[
2
:].
rjust
(
128
,
'0'
)
ip
=
rtline
[
0
]
if
ip
[:
a
]
!=
self
.
_network
or
ip
[
a
:
b
]
==
self
.
_prefix
:
continue
prefix_len
=
rtline
[
1
]
...
...
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