summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOmer Anson <omer.anson@toganetworks.com>2016-12-08 09:28:28 +0200
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-12-10 17:54:05 +0900
commitb5d232d560ee5b5c52436cd986056217ac139915 (patch)
treea317c8b14370d6953794ef2fb8ea0148d82ccecb
parente0c446a6b43a12f33e1cbb211584e928fffbfc71 (diff)
Add DHCP options constants to DHCP lib
Add DHCP options constants to DHCP lib for the following options: * Domain name option (15) * Interface MTU (26) * Classless route (121) These constants are used in Dragonflow, which uses ryu's DHCP lib to construct a DHCP responder. Signed-Off-By: Omer Anson <oaanson@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/packet/dhcp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ryu/lib/packet/dhcp.py b/ryu/lib/packet/dhcp.py
index b0d60924..c8e849fa 100644
--- a/ryu/lib/packet/dhcp.py
+++ b/ryu/lib/packet/dhcp.py
@@ -76,6 +76,8 @@ DHCP_SUBNET_MASK_OPT = 1
DHCP_GATEWAY_ADDR_OPT = 3
DHCP_DNS_SERVER_ADDR_OPT = 6
DHCP_HOST_NAME_OPT = 12
+DHCP_DOMAIN_NAME_OPT = 15
+DHCP_INTERFACE_MTU_OPT = 26
DHCP_REQUESTED_IP_ADDR_OPT = 50
DHCP_IP_ADDR_LEASE_TIME_OPT = 51
DHCP_MESSAGE_TYPE_OPT = 53
@@ -83,6 +85,7 @@ DHCP_SERVER_IDENTIFIER_OPT = 54
DHCP_PARAMETER_REQUEST_LIST_OPT = 55
DHCP_RENEWAL_TIME_OPT = 58
DHCP_REBINDING_TIME_OPT = 59
+DHCP_CLASSLESS_ROUTE_OPT = 121
DHCP_END_OPT = 255