Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
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
Kirill Smelkov
bcc
Commits
0afb0a21
Commit
0afb0a21
authored
Jul 13, 2015
by
4ast
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #84 from iovisor/bblanco_dev
Bugfix for simulation.py
parents
ffaee08c
fd4e4a5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
examples/simulation.py
examples/simulation.py
+8
-1
examples/tunnel_monitor/monitor.c
examples/tunnel_monitor/monitor.c
+2
-0
No files found.
examples/simulation.py
View file @
0afb0a21
...
@@ -37,6 +37,7 @@ class Simulation(object):
...
@@ -37,6 +37,7 @@ class Simulation(object):
v
.
net_ns_fd
=
ns_ipdb
.
nl
.
netns
v
.
net_ns_fd
=
ns_ipdb
.
nl
.
netns
in_ifc
=
ns_ipdb
.
interfaces
[
in_ifname
]
in_ifc
=
ns_ipdb
.
interfaces
[
in_ifname
]
if
out_ifc
:
out_ifc
.
up
().
commit
()
if
out_ifc
:
out_ifc
.
up
().
commit
()
ns_ipdb
.
interfaces
.
lo
.
up
().
commit
()
with
in_ifc
as
v
:
with
in_ifc
as
v
:
v
.
ifname
=
ns_ifc
v
.
ifname
=
ns_ifc
if
ipaddr
:
v
.
add_ip
(
"%s"
%
ipaddr
)
if
ipaddr
:
v
.
add_ip
(
"%s"
%
ipaddr
)
...
@@ -73,7 +74,13 @@ class Simulation(object):
...
@@ -73,7 +74,13 @@ class Simulation(object):
self
.
released
=
True
self
.
released
=
True
for
p
in
self
.
processes
:
for
p
in
self
.
processes
:
if
p
.
released
:
continue
if
p
.
released
:
continue
p
.
kill
();
p
.
wait
();
p
.
release
()
try
:
p
.
kill
()
p
.
wait
()
except
:
pass
finally
:
p
.
release
()
for
name
,
db
in
self
.
ipdbs
.
items
():
db
.
release
()
for
name
,
db
in
self
.
ipdbs
.
items
():
db
.
release
()
for
ns
in
self
.
namespaces
:
ns
.
remove
()
for
ns
in
self
.
namespaces
:
ns
.
remove
()
examples/tunnel_monitor/monitor.c
View file @
0afb0a21
// Copyright (c) PLUMgrid, Inc.
// Licensed under the Apache License, Version 2.0 (the "License")
#include <bcc/proto.h>
#include <bcc/proto.h>
struct
ipkey
{
struct
ipkey
{
...
...
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