Lines Matching refs:new_opt
403 static void putenvp(char *new_opt) in putenvp() argument
411 opt_item->env = new_opt; in putenvp()
413 log2(" %s", new_opt); in putenvp()
414 putenv(new_opt); in putenvp()
482 char *new_opt; in fill_envp() local
506 new_opt = xmalloc_optname_optval(opt_item, dh, opt_name); in fill_envp()
515 new_opt = xmalloc(sizeof("optNNN=") + 1 + opt_item->len*2); in fill_envp()
516 ofs = sprintf(new_opt, "opt%u=", opt_item->code); in fill_envp()
517 bin2hex(new_opt + ofs, (char *)opt_item->data, opt_item->len)[0] = '\0'; in fill_envp() local
519 log2(" %s", new_opt); in fill_envp()
520 putenv(new_opt); in fill_envp()
525 opt_item->env = new_opt; in fill_envp()
541 new_opt = xmalloc(sizeof("ip=255.255.255.255")); in fill_envp()
542 sprint_nip(new_opt, "ip=", (uint8_t *) &packet->yiaddr); in fill_envp()
543 putenvp(new_opt); in fill_envp()
547 new_opt = xmalloc(sizeof("siaddr=255.255.255.255")); in fill_envp()
548 sprint_nip(new_opt, "siaddr=", (uint8_t *) &packet->siaddr_nip); in fill_envp()
549 putenvp(new_opt); in fill_envp()
553 new_opt = xmalloc(sizeof("giaddr=255.255.255.255")); in fill_envp()
554 sprint_nip(new_opt, "giaddr=", (uint8_t *) &packet->gateway_nip); in fill_envp()
555 putenvp(new_opt); in fill_envp()
559 new_opt = xasprintf("boot_file=%."DHCP_PKT_FILE_LEN_STR"s", packet->file); in fill_envp()
560 putenvp(new_opt); in fill_envp()
564 new_opt = xasprintf("sname=%."DHCP_PKT_SNAME_LEN_STR"s", packet->sname); in fill_envp()
565 putenvp(new_opt); in fill_envp()