Lines Matching refs:ptr
220 const char *ptr, *name = NULL; in string_option_to_env() local
224 ptr = d6_option_strings; in string_option_to_env()
226 while (*ptr) { in string_option_to_env()
228 name = ptr; in string_option_to_env()
231 ptr += strlen(ptr) + 1; in string_option_to_env()
484 uint8_t *ptr; in init_d6_packet() local
495 ptr = packet->d6_options; /* NB: it is 32-bit aligned */ in init_d6_packet()
496 *((uint32_t*)ptr) = htonl((D6_OPT_ELAPSED_TIME << 16) + 2); in init_d6_packet()
497 ptr += 4; in init_d6_packet()
502 *((uint16_t*)ptr) = (secs < 0xffff) ? htons(secs) : 0xffff; in init_d6_packet()
503 ptr += 2; in init_d6_packet()
505 return ptr; in init_d6_packet()
508 static uint8_t *add_d6_client_options(uint8_t *ptr) in add_d6_client_options() argument
511 uint8_t *start = ptr; in add_d6_client_options()
515 ptr += 4; in add_d6_client_options()
518 ptr[0] = (option >> 8); in add_d6_client_options()
519 ptr[1] = option; in add_d6_client_options()
520 ptr += 2; in add_d6_client_options()
524 if ((ptr - start - 4) != 0) { in add_d6_client_options()
527 start[2] = ((ptr - start - 4) >> 8); in add_d6_client_options()
528 start[3] = (ptr - start - 4); in add_d6_client_options()
530 ptr = start; in add_d6_client_options()
533 ptr = mempcpy(ptr, &opt_fqdn_req, sizeof(opt_fqdn_req)); in add_d6_client_options()
539 ptr = mempcpy(ptr, curr->data, D6_OPT_DATA + len); in add_d6_client_options()
543 return ptr; in add_d6_client_options()