summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-09-03 22:47:35 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-09-03 22:47:35 +0900
commit396c32d4aa3950ae2cb9715cf23607397acd7837 (patch)
tree79fd1e481384f09939c5940fee83bff41f3c6160
parente47c5bf16ab006a8c831840fe8c96deccabaa471 (diff)
packet: dhcp should set _MIN_LEN
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/packet/dhcp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ryu/lib/packet/dhcp.py b/ryu/lib/packet/dhcp.py
index e82a6458..b0d60924 100644
--- a/ryu/lib/packet/dhcp.py
+++ b/ryu/lib/packet/dhcp.py
@@ -133,6 +133,7 @@ class dhcp(packet_base.PacketBase):
every DHCP message).
============== ====================
"""
+ _MIN_LEN = 236
_HLEN_UNPACK_STR = '!BBB'
_HLEN_UNPACK_LEN = struct.calcsize(_HLEN_UNPACK_STR)
_DHCP_UNPACK_STR = '!BIHH4s4s4s4s%ds%ds64s128s'