Lines Matching refs:reply
130 uint8_t reply[DHCP_PAYLOAD_MIN];
149 return ((struct dhcp *)(void *)context->reply);
402 struct dhcp * reply;
407 reply = dhcp_context_reply(context);
410 error = receive_packet(context->so, context->reply,
411 sizeof(context->reply), &n);
422 if (ntohl(reply->dp_xid) != context->xid
423 || bcmp(reply->dp_chaddr, link_address(context->dl_p),
428 (void)dhcpol_parse_packet(&options, reply, n);
446 || reply->dp_yiaddr.s_addr == 0
447 || reply->dp_yiaddr.s_addr == INADDR_BROADCAST) {
453 IP_LIST(&server_id), IP_LIST(&reply->dp_yiaddr));
454 context->iaddr = reply->dp_yiaddr;
592 struct dhcp * reply;
597 reply = dhcp_context_reply(context);
600 error = receive_packet(context->so, context->reply,
601 sizeof(context->reply), &n);
611 if (ntohl(reply->dp_xid) != context->xid
612 || reply->dp_yiaddr.s_addr == 0
613 || reply->dp_yiaddr.s_addr == INADDR_BROADCAST
614 || bcmp(reply->dp_chaddr,
620 (void)dhcpol_parse_packet(&options, reply, n);
634 IP_LIST(ip), IP_LIST(&reply->dp_yiaddr));
638 context->iaddr = reply->dp_yiaddr;