Lines Matching refs:total
258 size_t total; in dhcp6_option_append_vendor_option() local
260 total = 4 + 2 + 2 + options->length; in dhcp6_option_append_vendor_option()
262 p = malloc(total); in dhcp6_option_append_vendor_option()
271 r = dhcp6_option_append(buf, buflen, SD_DHCP6_OPTION_VENDOR_OPTS, total, p); in dhcp6_option_append_vendor_option()
421 size_t total = 0, offset = 0; in dhcp6_option_append_user_class() local
434 q = realloc(p, total + len + 2); in dhcp6_option_append_user_class()
444 total += 2 + len; in dhcp6_option_append_user_class()
447 return dhcp6_option_append(buf, buflen, SD_DHCP6_OPTION_USER_CLASS, total, p); in dhcp6_option_append_user_class()
453 size_t total, offset; in dhcp6_option_append_vendor_class() local
466 total = sizeof(enterprise_identifier); in dhcp6_option_append_vendor_class()
467 offset = total; in dhcp6_option_append_vendor_class()
476 q = realloc(p, total + len + 2); in dhcp6_option_append_vendor_class()
486 total += 2 + len; in dhcp6_option_append_vendor_class()
489 return dhcp6_option_append(buf, buflen, SD_DHCP6_OPTION_VENDOR_CLASS, total, p); in dhcp6_option_append_vendor_class()