Lines Matching refs:dhcp_packet
15 from autotest_lib.client.cros import dhcp_packet
54 discovery_packet = dhcp_packet.DhcpPacket(byte_str=binary_discovery_packet)
70 parsed_routes = dhcp_packet.ClasslessStaticRoutesOption.unpack(
81 byte_string = dhcp_packet.ClasslessStaticRoutesOption.pack(
95 parsed_domains = dhcp_packet.DomainListOption.unpack(
107 byte_string = dhcp_packet.DomainListOption.pack(
132 packet = dhcp_packet.DhcpPacket(byte_str=data)
149 discovery_message = dhcp_packet.DhcpPacket.create_discovery_packet(mac_addr)
151 dhcp_packet.OPTION_PARAMETER_REQUEST_LIST,
152 dhcp_packet.OPTION_VALUE_PARAMETER_REQUEST_LIST_DEFAULT)
153 request_message = dhcp_packet.DhcpPacket.create_request_packet(
157 dhcp_packet.OPTION_PARAMETER_REQUEST_LIST,
158 dhcp_packet.OPTION_VALUE_PARAMETER_REQUEST_LIST_DEFAULT)
163 dhcp_packet.OPTION_SERVER_ID : server_ip,
164 dhcp_packet.OPTION_SUBNET_MASK : subnet_mask,
165 dhcp_packet.OPTION_IP_LEASE_TIME : lease_time_seconds,
166 dhcp_packet.OPTION_REQUESTED_IP : intended_ip,
193 if (offer_packet.message_type != dhcp_packet.MESSAGE_TYPE_OFFER):
197 if offer_packet.get_field(dhcp_packet.FIELD_YOUR_IP) != intended_ip:
205 dhcp_packet.OPTION_SERVER_ID,
206 offer_packet.get_option(dhcp_packet.OPTION_SERVER_ID))
208 dhcp_packet.OPTION_SUBNET_MASK,
209 offer_packet.get_option(dhcp_packet.OPTION_SUBNET_MASK))
211 dhcp_packet.OPTION_IP_LEASE_TIME,
212 offer_packet.get_option(dhcp_packet.OPTION_IP_LEASE_TIME))
214 dhcp_packet.OPTION_REQUESTED_IP,
215 offer_packet.get_option(dhcp_packet.OPTION_REQUESTED_IP))
223 if (ack_packet.message_type != dhcp_packet.MESSAGE_TYPE_ACK):
227 if offer_packet.get_field(dhcp_packet.FIELD_YOUR_IP) != intended_ip: