2 * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.vpnservice.dhcpservice.api;
11 public final class DHCPConstants {
14 public static final byte BOOTREQUEST = 1;
15 public static final byte BOOTREPLY = 2;
18 public static final byte HTYPE_ETHER = 1;
21 public static final byte MSG_DISCOVER = 1;
22 public static final byte MSG_OFFER = 2;
23 public static final byte MSG_REQUEST = 3;
24 public static final byte MSG_DECLINE = 4;
25 public static final byte MSG_ACK = 5;
26 public static final byte MSG_NAK = 6;
27 public static final byte MSG_RELEASE = 7;
28 public static final byte MSG_INFORM = 8;
29 public static final byte MSG_FORCERENEW = 9;
32 public static final byte OPT_PAD = 0;
33 public static final byte OPT_SUBNET_MASK = 1;
34 public static final byte OPT_TIME_OFFSET = 2;
35 public static final byte OPT_ROUTERS = 3;
36 public static final byte OPT_TIME_SERVERS = 4;
37 public static final byte OPT_NAME_SERVERS = 5;
38 public static final byte OPT_DOMAIN_NAME_SERVERS = 6;
39 public static final byte OPT_LOG_SERVERS = 7;
40 public static final byte OPT_COOKIE_SERVERS = 8;
41 public static final byte OPT_LPR_SERVERS = 9;
42 public static final byte OPT_IMPRESS_SERVERS = 10;
43 public static final byte OPT_RESOURCE_LOCATION_SERVERS = 11;
44 public static final byte OPT_HOST_NAME = 12;
45 public static final byte OPT_BOOT_SIZE = 13;
46 public static final byte OPT_MERIT_DUMP = 14;
47 public static final byte OPT_DOMAIN_NAME = 15;
48 public static final byte OPT_SWAP_SERVER = 16;
49 public static final byte OPT_ROOT_PATH = 17;
50 public static final byte OPT_EXTENSIONS_PATH = 18;
51 public static final byte OPT_IP_FORWARDING = 19;
52 public static final byte OPT_NON_LOCAL_SOURCE_ROUTING = 20;
53 public static final byte OPT_POLICY_FILTER = 21;
54 public static final byte OPT_MAX_DGRAM_REASSEMBLY = 22;
55 public static final byte OPT_DEFAULT_IP_TTL = 23;
56 public static final byte OPT_PATH_MTU_AGING_TIMEOUT = 24;
57 public static final byte OPT_PATH_MTU_PLATEAU_TABLE = 25;
58 public static final byte OPT_INTERFACE_MTU = 26;
59 public static final byte OPT_ALL_SUBNETS_LOCAL = 27;
60 public static final byte OPT_BROADCAST_ADDRESS = 28;
61 public static final byte OPT_PERFORM_MASK_DISCOVERY = 29;
62 public static final byte OPT_MASK_SUPPLIER = 30;
63 public static final byte OPT_ROUTER_DISCOVERY = 31;
64 public static final byte OPT_ROUTER_SOLICITATION_ADDRESS = 32;
65 public static final byte OPT_STATIC_ROUTES = 33;
66 public static final byte OPT_TRAILER_ENCAPSULATION = 34;
67 public static final byte OPT_ARP_CACHE_TIMEOUT = 35;
68 public static final byte OPT_IEEE802_3_ENCAPSULATION = 36;
69 public static final byte OPT_DEFAULT_TCP_TTL = 37;
70 public static final byte OPT_TCP_KEEPALIVE_INTERVAL = 38;
71 public static final byte OPT_TCP_KEEPALIVE_GARBAGE = 39;
72 public static final byte OPT_NIS_SERVERS = 41;
73 public static final byte OPT_NTP_SERVERS = 42;
74 public static final byte OPT_VENDOR_ENCAPSULATED_OPTIONS = 43;
75 public static final byte OPT_NETBIOS_NAME_SERVERS = 44;
76 public static final byte OPT_NETBIOS_DD_SERVER = 45;
77 public static final byte OPT_NETBIOS_NODE_TYPE = 46;
78 public static final byte OPT_NETBIOS_SCOPE = 47;
79 public static final byte OPT_FONT_SERVERS = 48;
80 public static final byte OPT_X_DISPLAY_MANAGER = 49;
81 public static final byte OPT_REQUESTED_ADDRESS = 50;
82 public static final byte OPT_LEASE_TIME = 51;
83 public static final byte OPT_OPTION_OVERLOAD = 52;
84 public static final byte OPT_MESSAGE_TYPE = 53;
85 public static final byte OPT_SERVER_IDENTIFIER = 54;
86 public static final byte OPT_PARAMETER_REQUEST_LIST = 55;
87 public static final byte OPT_MESSAGE = 56;
88 public static final byte OPT_MAX_MESSAGE_SIZE = 57;
89 public static final byte OPT_RENEWAL_TIME = 58;
90 public static final byte OPT_REBINDING_TIME = 59;
91 public static final byte OPT_VENDOR_CLASS_IDENTIFIER = 60;
92 public static final byte OPT_CLIENT_IDENTIFIER = 61;
93 public static final byte OPT_NWIP_DOMAIN_NAME = 62;
94 public static final byte OPT_NWIP_SUBOPTIONS = 63;
95 public static final byte OPT_NISPLUS_DOMAIN = 64;
96 public static final byte OPT_NISPLUS_SERVER = 65;
97 public static final byte OPT_TFTP_SERVER = 66;
98 public static final byte OPT_BOOTFILE = 67;
99 public static final byte OPT_MOBILE_IP_HOME_AGENT = 68;
100 public static final byte OPT_SMTP_SERVER = 69;
101 public static final byte OPT_POP3_SERVER = 70;
102 public static final byte OPT_NNTP_SERVER = 71;
103 public static final byte OPT_WWW_SERVER = 72;
104 public static final byte OPT_FINGER_SERVER = 73;
105 public static final byte OPT_IRC_SERVER = 74;
106 public static final byte OPT_STREETTALK_SERVER = 75;
107 public static final byte OPT_STDA_SERVER = 76;
108 public static final byte OPT_USER_CLASS = 77;
109 public static final byte OPT_FQDN = 81;
110 public static final byte OPT_AGENT_OPTIONS = 82;
111 public static final byte OPT_NDS_SERVERS = 85;
112 public static final byte OPT_NDS_TREE_NAME = 86;
113 public static final byte OPT_NDS_CONTEXT = 87;
114 public static final byte OPT_CLIENT_LAST_TRANSACTION_TIME = 91;
115 public static final byte OPT_ASSOCIATED_IP = 92;
116 public static final byte OPT_USER_AUTHENTICATION_PROTOCOL = 98;
117 public static final byte OPT_AUTO_CONFIGURE = 116;
118 public static final byte OPT_NAME_SERVICE_SEARCH = 117;
119 public static final byte OPT_SUBNET_SELECTION = 118;
120 public static final byte OPT_DOMAIN_SEARCH = 119;
121 public static final byte OPT_CLASSLESS_ROUTE = 121;
122 public static final byte OPT_END = -1;
124 public static final int MAGIC_COOKIE = 0x63825363;
126 public static final int DHCP_MIN_SIZE = 300;
127 public static final int DHCP_MAX_SIZE = 576;
129 public static final int DHCP_NOOPT_HDR_SIZE = 240;