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
fba3e5c4
Commit
fba3e5c4
authored
May 28, 2015
by
Brenden
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21 from plumgrid/yhs_dev
Fix a python (version 2.7.3) error
parents
cecd0da5
c31ca80c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tests/jit/test2.py
tests/jit/test2.py
+3
-2
No files found.
tests/jit/test2.py
View file @
fba3e5c4
...
...
@@ -32,10 +32,11 @@ class TestBPFSocket(TestCase):
key
=
Key
(
IPAddress
(
"172.16.1.1"
).
value
,
IPAddress
(
"172.16.1.2"
).
value
)
leaf
=
Leaf
(
IPAddress
(
"192.168.1.1"
).
value
,
IPAddress
(
"192.168.1.2"
).
value
,
0
)
self
.
xlate
.
put
(
key
,
leaf
)
with
socket
(
AF_INET
,
SOCK_DGRAM
)
as
udp
:
udp
.
sendto
(
b"a"
*
10
,
(
"172.16.1.1"
,
5000
))
udp
=
socket
(
AF_INET
,
SOCK_DGRAM
)
udp
.
sendto
(
b"a"
*
10
,
(
"172.16.1.1"
,
5000
))
leaf
=
self
.
xlate
.
get
(
key
)
self
.
assertGreater
(
leaf
.
xlated_pkts
,
0
)
udp
.
close
()
if
__name__
==
"__main__"
:
main
()
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