Home
last modified time | relevance | path

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

/third_party/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 …]