From 19213cb19c3402eecff5f20fb943deab33c89509 Mon Sep 17 00:00:00 2001 From: Phil <phil@secdev.org> Date: Fri, 30 Jan 2009 17:01:07 +0100 Subject: [PATCH] Fixed hopcount field type in DHCP6 (ticket #171) --- scapy/layers/dhcp6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/layers/dhcp6.py b/scapy/layers/dhcp6.py index 59430ad9..db61c38f 100644 --- a/scapy/layers/dhcp6.py +++ b/scapy/layers/dhcp6.py @@ -1146,7 +1146,7 @@ class DHCP6_InfoRequest(DHCP6): class DHCP6_RelayForward(_DHCP6GuessPayload,Packet): name = "DHCPv6 Relay Forward Message (Relay Agent/Server Message)" fields_desc = [ ByteEnumField("msgtype", 12, dhcp6types), - ShortField("hopcount", None), + ByteField("hopcount", None), IP6Field("linkaddr", "::"), IP6Field("peeraddr", "::") ] def hashret(self): # we filter on peer address field -- GitLab