Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
c83c34a5
Commit
c83c34a5
authored
Nov 14, 2016
by
Guillaume Valadon
Committed by
GitHub
Nov 14, 2016
Browse files
Options
Downloads
Plain Diff
Merge pull request #335 from p-l-/fix-334
Fix ICMPv6MLQuery().hashret()
parents
32d71796
a1880b5c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scapy/layers/inet6.py
+3
-1
3 additions, 1 deletion
scapy/layers/inet6.py
with
3 additions
and
1 deletion
scapy/layers/inet6.py
+
3
−
1
View file @
c83c34a5
...
@@ -1352,7 +1352,9 @@ class ICMPv6MLQuery(_ICMPv6ML): # RFC 2710
...
@@ -1352,7 +1352,9 @@ class ICMPv6MLQuery(_ICMPv6ML): # RFC 2710
overload_fields
=
{
IPv6
:
{
"
dst
"
:
"
ff02::1
"
,
"
hlim
"
:
1
,
"
nh
"
:
58
}}
overload_fields
=
{
IPv6
:
{
"
dst
"
:
"
ff02::1
"
,
"
hlim
"
:
1
,
"
nh
"
:
58
}}
def
hashret
(
self
):
def
hashret
(
self
):
if
self
.
mladdr
!=
"
::
"
:
if
self
.
mladdr
!=
"
::
"
:
return
struct
.
pack
(
"
HH
"
,
self
.
mladdr
)
+
self
.
payload
.
hashret
()
return
(
inet_pton
(
socket
.
AF_INET6
,
self
.
mladdr
)
+
self
.
payload
.
hashret
()
)
else
:
else
:
return
self
.
payload
.
hashret
()
return
self
.
payload
.
hashret
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment