Searched refs:optlen (Results 1 – 4 of 4) sorted by relevance
/busybox-1.35.0/modutils/ |
D | modutils.c | 121 int optlen; in parse_cmdline_module_options() local 124 optlen = 0; in parse_cmdline_module_options() 131 options = xrealloc(options, optlen + 2 + strlen(var) + 2); in parse_cmdline_module_options() 147 optlen += sprintf(options + optlen, fmt, (int)(val - var), var, val); in parse_cmdline_module_options()
|
D | modprobe.c | 201 int optlen = strlen(opts); in gather_options_str() local 202 opts = xrealloc(opts, optlen + strlen(append) + 2); in gather_options_str() 203 sprintf(opts + optlen, " %s", append); in gather_options_str()
|
/busybox-1.35.0/networking/udhcp/ |
D | dhcpc.c | 196 int len, type, optlen; in xmalloc_optname_optval() local 203 optlen = dhcp_option_lengths[type]; in xmalloc_optname_optval() 205 * ((unsigned)(len + optlen) / (unsigned)optlen); in xmalloc_optname_optval() 210 while (len >= optlen) { in xmalloc_optname_optval() 336 optlen = 4; in xmalloc_optname_optval() 362 optlen = 4; in xmalloc_optname_optval() 379 option += optlen; in xmalloc_optname_optval() 380 len -= optlen; in xmalloc_optname_optval() 384 if (len < optlen /* || !(optflag->flags & OPTION_LIST) */) in xmalloc_optname_optval()
|
D | dhcpd.c | 75 unsigned optlen; in add_static_lease() local 77 optlen = (opts ? 1+1+strnlen(opts, 120) : 0); in add_static_lease() 85 *st_lease_pp = st_lease = xzalloc(sizeof(*st_lease) + optlen); in add_static_lease() 89 if (optlen) { in add_static_lease() 91 optlen -= 2; in add_static_lease() 92 st_lease->opt[OPT_LEN] = optlen; in add_static_lease() 93 memcpy(&st_lease->opt[OPT_DATA], opts, optlen); in add_static_lease()
|