Home
last modified time | relevance | path

Searched refs:optptr (Results 1 – 6 of 6) sorted by relevance

/external/toybox/toys/pending/
Ddhcp.c833 static uint8_t *dhcpc_addclientid(uint8_t *optptr) in dhcpc_addclientid() argument
835 *optptr++ = DHCP_OPTION_CLIENTID; in dhcpc_addclientid()
836 *optptr++ = 7; in dhcpc_addclientid()
837 *optptr++ = 1; in dhcpc_addclientid()
838 memcpy(optptr, &state->macaddr, 6); in dhcpc_addclientid()
839 return optptr + 6; in dhcpc_addclientid()
843 static uint8_t *dhcpc_addmsgtype(uint8_t *optptr, uint8_t type) in dhcpc_addmsgtype() argument
845 *optptr++ = DHCP_OPTION_MSG_TYPE; in dhcpc_addmsgtype()
846 *optptr++ = 1; in dhcpc_addmsgtype()
847 *optptr++ = type; in dhcpc_addmsgtype()
[all …]
Ddhcpd.c1036 static uint8_t* set_optval(uint8_t *optptr, uint16_t opt, void *var, size_t len) in set_optval() argument
1038 while (*optptr != DHCP_OPT_END) optptr++; in set_optval()
1039 *optptr++ = (uint8_t)(opt & 0x00FF); in set_optval()
1040 *optptr++ = (uint8_t) len; in set_optval()
1041 memcpy(optptr, var, len); in set_optval()
1042 optptr += len; in set_optval()
1043 *optptr = DHCP_OPT_END; in set_optval()
1044 return optptr; in set_optval()
1047 static uint8_t* set_optval6(uint8_t *optptr, uint16_t opt, void *var, size_t len) in set_optval6() argument
1049 *((uint16_t*)optptr) = htons(opt); in set_optval6()
[all …]
/external/libcups/cups/
Dppd-mark.c67 cups_option_t *optptr; /* Current option */ in cupsMarkOptions() local
255 for (i = num_options, optptr = options; i > 0; i --, optptr ++) in cupsMarkOptions()
257 if (!_cups_strcasecmp(optptr->name, "media") || in cupsMarkOptions()
258 !_cups_strcasecmp(optptr->name, "output-bin") || in cupsMarkOptions()
259 !_cups_strcasecmp(optptr->name, "output-mode") || in cupsMarkOptions()
260 !_cups_strcasecmp(optptr->name, "print-quality") || in cupsMarkOptions()
261 !_cups_strcasecmp(optptr->name, "sides")) in cupsMarkOptions()
263 else if (!_cups_strcasecmp(optptr->name, "resolution") || in cupsMarkOptions()
264 !_cups_strcasecmp(optptr->name, "printer-resolution")) in cupsMarkOptions()
266 ppd_mark_option(ppd, "Resolution", optptr->value); in cupsMarkOptions()
[all …]
Dppd.c2874 *optptr, /* Option pointer */ in ppd_read() local
3245 optptr = option; in ppd_read()
3251 (optptr - option) >= (PPD_MAX_NAME - 1)) in ppd_read()
3257 *optptr++ = *lineptr++; in ppd_read()
3260 *optptr = '\0'; in ppd_read()
/external/iputils/
Dping.c1137 unsigned char * optptr; in pr_options() local
1142 optptr = cp; in pr_options()
1145 if (*optptr == IPOPT_EOL) in pr_options()
1147 if (*optptr == IPOPT_NOP) { in pr_options()
1149 optptr++; in pr_options()
1153 cp = optptr; in pr_options()
1154 optlen = optptr[1]; in pr_options()
1277 optptr += optlen; in pr_options()
/external/ppp/pppd/
Doptions.c779 char **optptr = (char **)(opt->addr); local
783 if (*optptr)
784 free(*optptr);
785 *optptr = sv;