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
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
e975a018
Commit
e975a018
authored
10 years ago
by
Guillaume Valadon
Browse files
Options
Downloads
Plain Diff
Merged in msiodelski/scapy-isc-fork (pull request #2)
First set of fixes in DHCPv6 by ISC.
parents
9484e8bd
16888510
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scapy/layers/dhcp6.py
+5
-5
5 additions, 5 deletions
scapy/layers/dhcp6.py
with
5 additions
and
5 deletions
scapy/layers/dhcp6.py
+
5
−
5
View file @
e975a018
...
@@ -1053,7 +1053,10 @@ class DHCP6_Reply(DHCP6):
...
@@ -1053,7 +1053,10 @@ class DHCP6_Reply(DHCP6):
overload_fields
=
{
UDP
:
{
"
sport
"
:
547
,
"
dport
"
:
546
}
}
overload_fields
=
{
UDP
:
{
"
sport
"
:
547
,
"
dport
"
:
546
}
}
def
answers
(
self
,
other
):
def
answers
(
self
,
other
):
return
(
isinstance
(
other
,
DHCP6_InfoRequest
)
and
types
=
(
DHCP6_InfoRequest
,
DHCP6_Confirm
,
DHCP6_Rebind
,
DHCP6_Decline
,
DHCP6_Request
,
DHCP6_Release
,
DHCP6_Renew
)
return
(
isinstance
(
other
,
types
)
and
self
.
trid
==
other
.
trid
)
self
.
trid
==
other
.
trid
)
#####################################################################
#####################################################################
...
@@ -1115,9 +1118,6 @@ class DHCP6_InfoRequest(DHCP6):
...
@@ -1115,9 +1118,6 @@ class DHCP6_InfoRequest(DHCP6):
name
=
"
DHCPv6 Information Request Message
"
name
=
"
DHCPv6 Information Request Message
"
msgtype
=
11
msgtype
=
11
def
hashret
(
self
):
return
struct
.
pack
(
"
!I
"
,
self
.
trid
)[
1
:
3
]
#####################################################################
#####################################################################
# sent between Relay Agents and Servers
# sent between Relay Agents and Servers
#
#
...
@@ -1165,7 +1165,7 @@ class DHCP6_RelayReply(DHCP6_RelayForward):
...
@@ -1165,7 +1165,7 @@ class DHCP6_RelayReply(DHCP6_RelayForward):
return
inet_pton
(
socket
.
AF_INET6
,
self
.
peeraddr
)
return
inet_pton
(
socket
.
AF_INET6
,
self
.
peeraddr
)
def
answers
(
self
,
other
):
def
answers
(
self
,
other
):
return
(
isinstance
(
other
,
DHCP6_RelayForward
)
and
return
(
isinstance
(
other
,
DHCP6_RelayForward
)
and
self
.
count
==
other
.
count
and
self
.
hop
count
==
other
.
hop
count
and
self
.
linkaddr
==
other
.
linkaddr
and
self
.
linkaddr
==
other
.
linkaddr
and
self
.
peeraddr
==
other
.
peeraddr
)
self
.
peeraddr
==
other
.
peeraddr
)
...
...
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