Searched defs:optval (Results 1 - 5 of 5) sorted by relevance

/systemd/src/libsystemd-network/
H A Ddhcp-option.c31 uint8_t code, size_t optlen, const void *optval) {
58 assert(optval);
60 memcpy(&options[*offset + 2], optval, optlen);
73 uint8_t code, size_t optlen, const void *optval) {
86 r = option_append(message->options, size, offset, code, optlen, optval);
106 r = option_append(message->file, sizeof(message->file), &file_offset, code, optlen, optval);
128 r = option_append(message->sname, sizeof(message->sname), &sname_offset, code, optlen, optval);
30 option_append(uint8_t options[], size_t size, size_t *offset, uint8_t code, size_t optlen, const void *optval) argument
71 dhcp_option_append(DHCPMessage *message, size_t size, size_t *offset, uint8_t overload, uint8_t code, size_t optlen, const void *optval) argument
H A Ddhcp6-option.c65 size_t optlen, const void *optval) {
68 assert_return(optval || optlen == 0, -EINVAL);
74 if (optval)
75 memcpy(*buf, optval, optlen);
323 int dhcp6_option_parse_ip6addrs(uint8_t *optval, uint16_t optlen, argument
334 memcpy(*addrs + count, optval, optlen);
341 int dhcp6_option_parse_domainname(const uint8_t *optval, uint16_t optlen, char ***str_arr) { argument
347 assert_return(optval[optlen - 1] == '\0', -EINVAL);
357 c = optval[pos++];
366 label = (const char *)&optval[po
64 dhcp6_option_append(uint8_t **buf, size_t *buflen, uint16_t code, size_t optlen, const void *optval) argument
[all...]
H A Dsd-dhcp6-lease.c178 int dhcp6_lease_set_dns(sd_dhcp6_lease *lease, uint8_t *optval, size_t optlen) { argument
182 assert_return(optval, -EINVAL);
187 r = dhcp6_option_parse_ip6addrs(optval, optlen, &lease->dns,
214 int dhcp6_lease_set_domains(sd_dhcp6_lease *lease, uint8_t *optval, argument
220 assert_return(optval, -EINVAL);
225 r = dhcp6_option_parse_domainname(optval, optlen, &domains);
248 int dhcp6_lease_set_ntp(sd_dhcp6_lease *lease, uint8_t *optval, size_t optlen) { argument
255 assert_return(optval, -EINVAL);
261 while ((r = dhcp6_option_parse(&optval, &optlen, &subopt, &sublen,
303 int dhcp6_lease_set_sntp(sd_dhcp6_lease *lease, uint8_t *optval, size_ argument
[all...]
H A Dtest-dhcp6-client.c104 uint8_t *optval, *buf, *out; local
114 &optval) == -ENOMSG);
122 &optval) >= 0);
130 optval) >= 0);
135 &optval) >= 0);
143 optval) >= 0);
208 uint8_t *optval, *opt = msg_advertise + sizeof(DHCP6Message); local
230 &optval)) >= 0) {
241 assert_se(!memcmp(optval, &msg_advertise[26], optlen));
244 assert_se(!memcmp(optval,
409 uint8_t *optval; local
510 uint8_t *optval; local
600 uint8_t *optval; local
[all...]
H A Dsd-dhcp6-client.c676 uint8_t *optval, *option, *id = NULL; local
686 &optval)) >= 0) {
696 memcmp(&client->duid, optval, optlen) != 0) {
714 r = dhcp6_lease_set_serverid(lease, optval, optlen);
724 r = dhcp6_lease_set_preference(lease, *optval);
734 status = optval[0] << 8 | optval[1];
751 r = dhcp6_option_parse_ia(&optval, &optlen, optcode,
776 r = dhcp6_lease_set_dns(lease, optval, optlen);
783 r = dhcp6_lease_set_domains(lease, optval, optle
[all...]

Completed in 786 milliseconds