Lines Matching refs:optoffset
435 size_t optoffset, in dhcp_server_send() argument
441 sizeof(DHCPMessage) + optoffset); in dhcp_server_send()
445 sizeof(DHCPMessage) + optoffset); in dhcp_server_send()
451 sizeof(DHCPPacket) + optoffset); in dhcp_server_send()
456 int type, size_t optoffset) { in dhcp_server_send_packet() argument
465 assert(optoffset <= req->max_optlen); in dhcp_server_send_packet()
468 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &optoffset, 0, in dhcp_server_send_packet()
477 if (optoffset + opt_full_length < req->max_optlen) { in dhcp_server_send_packet()
478 … memcpy(packet->dhcp.options + optoffset, req->agent_info_option, opt_full_length); in dhcp_server_send_packet()
479 optoffset += opt_full_length; in dhcp_server_send_packet()
483 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &optoffset, 0, in dhcp_server_send_packet()
521 destination, destination_port, packet, optoffset, l2_broadcast); in dhcp_server_send_packet()
532 size_t optoffset = 0; in server_message_init() local
548 req->max_optlen, &optoffset); in server_message_init()
555 *ret_optoffset = optoffset; in server_message_init()
708 size_t optoffset = 0; in server_send_forcerenew() local
721 DHCP_MIN_OPTIONS_SIZE, &optoffset); in server_send_forcerenew()
726 &optoffset, 0, SD_DHCP_OPTION_END, 0, NULL); in server_send_forcerenew()
732 sizeof(DHCPMessage) + optoffset); in server_send_forcerenew()