Searched refs:optptr (Results 1 – 9 of 9) sorted by relevance
/external/toybox/toys/pending/ |
D | dhcp.c | 833 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 …]
|
D | dhcpd.c | 1036 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/ |
D | ppd-mark.c | 63 cups_option_t *optptr; /* Current option */ in cupsMarkOptions() local 251 for (i = num_options, optptr = options; i > 0; i --, optptr ++) in cupsMarkOptions() 253 if (!_cups_strcasecmp(optptr->name, "media") || in cupsMarkOptions() 254 !_cups_strcasecmp(optptr->name, "output-bin") || in cupsMarkOptions() 255 !_cups_strcasecmp(optptr->name, "output-mode") || in cupsMarkOptions() 256 !_cups_strcasecmp(optptr->name, "print-quality") || in cupsMarkOptions() 257 !_cups_strcasecmp(optptr->name, "sides")) in cupsMarkOptions() 259 else if (!_cups_strcasecmp(optptr->name, "resolution") || in cupsMarkOptions() 260 !_cups_strcasecmp(optptr->name, "printer-resolution")) in cupsMarkOptions() 262 ppd_mark_option(ppd, "Resolution", optptr->value); in cupsMarkOptions() [all …]
|
D | ppd.c | 2871 *optptr, /* Option pointer */ in ppd_read() local 3242 optptr = option; in ppd_read() 3248 (optptr - option) >= (PPD_MAX_NAME - 1)) in ppd_read() 3254 *optptr++ = *lineptr++; in ppd_read() 3257 *optptr = '\0'; in ppd_read()
|
/external/libcups/scheduler/ |
D | job.c | 3635 char *optptr, /* Pointer to options */ in get_options() local 3884 optptr = malloc(newlength); in get_options() 3886 optptr = realloc(options, newlength); in get_options() 3888 if (!optptr) in get_options() 3896 options = optptr; in get_options() 3905 optptr = options; in get_options() 3906 *optptr = '\0'; in get_options() 3984 if (optptr > options) in get_options() 3985 strlcat(optptr, " ", optlength - (size_t)(optptr - options)); in get_options() 3989 strlcat(optptr, attr->name, optlength - (size_t)(optptr - options)); in get_options() [all …]
|
D | cups-lpd.c | 418 *optptr; /* Pointer to options on line */ in get_printer() local 675 for (optptr = value; *optptr && !isspace(*optptr & 255); optptr ++); in get_printer() 677 while (*optptr == ' ') in get_printer() 678 *optptr++ = '\0'; in get_printer() 687 num_options = cupsParseOptions(optptr, num_options, options); in get_printer()
|
/external/libcups/backend/ |
D | ipp.c | 204 *optptr, /* Pointer to URI options */ in main() local 433 if ((optptr = strchr(resource, '?')) != NULL) in main() 440 *optptr++ = '\0'; in main() 446 while (*optptr) in main() 452 name = optptr; in main() 454 while (*optptr && *optptr != '=' && *optptr != '+' && *optptr != '&') in main() 455 optptr ++; in main() 457 if ((sep = *optptr) != '\0') in main() 458 *optptr++ = '\0'; in main() 466 value = optptr; in main() [all …]
|
/external/iputils/ |
D | ping.c | 1137 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/ |
D | options.c | 779 char **optptr = (char **)(opt->addr); local 783 if (*optptr) 784 free(*optptr); 785 *optptr = sv;
|