Merge pull request #288 from hkwi/dhcpv6_relay_udp_port

dhcp6: add DHCPv6-Relay default port
This commit is contained in:
Guillaume Valadon 2016-09-05 09:10:41 +02:00 committed by GitHub
commit a2e8bb5da0
1 changed files with 1 additions and 0 deletions

View File

@ -1108,6 +1108,7 @@ class DHCP6_RelayForward(_DHCP6OptGuessPayload,Packet):
ByteField("hopcount", None), ByteField("hopcount", None),
IP6Field("linkaddr", "::"), IP6Field("linkaddr", "::"),
IP6Field("peeraddr", "::") ] IP6Field("peeraddr", "::") ]
overload_fields = { UDP: { "sport": 547, "dport": 547 } }
def hashret(self): # we filter on peer address field def hashret(self): # we filter on peer address field
return inet_pton(socket.AF_INET6, self.peeraddr) return inet_pton(socket.AF_INET6, self.peeraddr)