Home
last modified time | relevance | path

Searched refs:optlen (Results 1 – 1 of 1) sorted by relevance

/system/core/libnetutils/
Ddhcpclient.c170 int optlen; in decode_dhcp_msg() local
193 optlen = *x++; in decode_dhcp_msg()
195 if (optlen > len) { in decode_dhcp_msg()
200 if (optlen >= 4) { in decode_dhcp_msg()
207 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg()
210 if (optlen >= 4) memcpy(&info->dns1, x + 0, 4); in decode_dhcp_msg()
211 if (optlen >= 8) memcpy(&info->dns2, x + 4, 4); in decode_dhcp_msg()
214 if (optlen >= 4) { in decode_dhcp_msg()
220 if (optlen >= 4) memcpy(&info->serveraddr, x, 4); in decode_dhcp_msg()
228 x += optlen; in decode_dhcp_msg()
[all …]