mirror of https://github.com/secdev/scapy.git
Merge pull request #288 from hkwi/dhcpv6_relay_udp_port
dhcp6: add DHCPv6-Relay default port
This commit is contained in:
commit
a2e8bb5da0
|
@ -1108,6 +1108,7 @@ class DHCP6_RelayForward(_DHCP6OptGuessPayload,Packet):
|
|||
ByteField("hopcount", None),
|
||||
IP6Field("linkaddr", "::"),
|
||||
IP6Field("peeraddr", "::") ]
|
||||
overload_fields = { UDP: { "sport": 547, "dport": 547 } }
|
||||
def hashret(self): # we filter on peer address field
|
||||
return inet_pton(socket.AF_INET6, self.peeraddr)
|
||||
|
||||
|
|
Loading…
Reference in New Issue