Lines Matching refs:max_optlen
463 assert(req->max_optlen > 0); in dhcp_server_send_packet()
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()
483 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &optoffset, 0, in dhcp_server_send_packet()
541 packet = malloc0(sizeof(DHCPPacket) + req->max_optlen); in server_message_init()
548 req->max_optlen, &optoffset); in server_message_init()
585 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &offset, 0, in server_send_offer_or_ack()
591 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &offset, 0, in server_send_offer_or_ack()
597 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &offset, 0, in server_send_offer_or_ack()
607 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &offset, 0, in server_send_offer_or_ack()
615 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &offset, 0, in server_send_offer_or_ack()
637 &packet->dhcp, req->max_optlen, &offset, 0, in server_send_offer_or_ack()
648 &packet->dhcp, req->max_optlen, &offset, 0, in server_send_offer_or_ack()
657 r = dhcp_option_append(&packet->dhcp, req->max_optlen, &offset, 0, in server_send_offer_or_ack()
665 &packet->dhcp, req->max_optlen, &offset, 0, in server_send_offer_or_ack()
772 req->max_optlen = unaligned_read_be16(option) - sizeof(DHCPPacket); in parse_request()
839 if (req->max_optlen < DHCP_MIN_OPTIONS_SIZE) in ensure_sane_request()
840 req->max_optlen = DHCP_MIN_OPTIONS_SIZE; in ensure_sane_request()