/systemd-251/src/libsystemd-network/ |
D | sd-dhcp6-lease.c | 276 int dhcp6_lease_add_dns(sd_dhcp6_lease *lease, const uint8_t *optval, size_t optlen) { in dhcp6_lease_add_dns() argument 278 assert(optval || optlen == 0); in dhcp6_lease_add_dns() 280 if (optlen == 0) in dhcp6_lease_add_dns() 283 return dhcp6_option_parse_addresses(optval, optlen, &lease->dns, &lease->dns_count); in dhcp6_lease_add_dns() 298 int dhcp6_lease_add_domains(sd_dhcp6_lease *lease, const uint8_t *optval, size_t optlen) { in dhcp6_lease_add_domains() argument 303 assert(optval || optlen == 0); in dhcp6_lease_add_domains() 305 if (optlen == 0) in dhcp6_lease_add_domains() 308 r = dhcp6_option_parse_domainname_list(optval, optlen, &domains); in dhcp6_lease_add_domains() 326 int dhcp6_lease_add_ntp(sd_dhcp6_lease *lease, const uint8_t *optval, size_t optlen) { in dhcp6_lease_add_ntp() argument 330 assert(optval || optlen == 0); in dhcp6_lease_add_ntp() [all …]
|
D | dhcp6-option.c | 214 static int option_append_hdr(uint8_t **buf, size_t *buflen, uint16_t optcode, size_t optlen) { in option_append_hdr() argument 219 if (optlen > 0xffff || *buflen < optlen + offsetof(DHCP6Option, data)) in option_append_hdr() 223 unaligned_write_be16(*buf + offsetof(DHCP6Option, len), optlen); in option_append_hdr() 232 size_t optlen, const void *optval) { in dhcp6_option_append() argument 235 assert_return(optval || optlen == 0, -EINVAL); in dhcp6_option_append() 237 r = option_append_hdr(buf, buflen, code, optlen); in dhcp6_option_append() 241 *buf = mempcpy_safe(*buf, optval, optlen); in dhcp6_option_append() 242 *buflen -= optlen; in dhcp6_option_append() 802 size_t optlen, in dhcp6_option_parse_addresses() argument 810 if (optlen == 0 || optlen % sizeof(struct in6_addr) != 0) in dhcp6_option_parse_addresses() [all …]
|
D | dhcp-option.c | 18 …tlv(uint8_t options[], size_t size, size_t *offset, uint8_t code, size_t optlen, const void *optva… in dhcp_option_append_tlv() argument 22 assert(optlen <= UINT8_MAX); in dhcp_option_append_tlv() 25 if (*offset + 2 + optlen > size) in dhcp_option_append_tlv() 29 options[*offset + 1] = optlen; in dhcp_option_append_tlv() 31 memcpy_safe(&options[*offset + 2], optval, optlen); in dhcp_option_append_tlv() 32 *offset += 2 + optlen; in dhcp_option_append_tlv() 37 uint8_t code, size_t optlen, const void *optval) { in option_append() argument 92 if (*offset + 3 + optlen > size) in option_append() 96 options[*offset + 1] = optlen + 1; in option_append() 99 memcpy_safe(&options[*offset + 3], optval, optlen); in option_append() [all …]
|
D | test-dhcp-option.c | 85 size_t optlen = 4, optoffset; in test_message_init() local 86 size_t len = sizeof(DHCPMessage) + optlen; in test_message_init() 93 optlen, &optoffset) >= 0); in test_message_init() 108 static DHCPMessage *create_message(uint8_t *options, uint16_t optlen, in create_message() argument 112 size_t len = sizeof(DHCPMessage) + optlen; in create_message() 117 memcpy_safe(&message->options, options, optlen); in create_message() 149 uint8_t optlen = 0; in test_options_cb() local 193 optlen = descoption[*descpos + 1]; in test_options_cb() 197 len, optlen); in test_options_cb() 200 assert_se(len == optlen); in test_options_cb() [all …]
|
D | dhcp6-lease-internal.h | 58 int dhcp6_lease_add_dns(sd_dhcp6_lease *lease, const uint8_t *optval, size_t optlen); 59 int dhcp6_lease_add_domains(sd_dhcp6_lease *lease, const uint8_t *optval, size_t optlen); 60 int dhcp6_lease_add_ntp(sd_dhcp6_lease *lease, const uint8_t *optval, size_t optlen); 61 int dhcp6_lease_add_sntp(sd_dhcp6_lease *lease, const uint8_t *optval, size_t optlen); 62 int dhcp6_lease_set_fqdn(sd_dhcp6_lease *lease, const uint8_t *optval, size_t optlen);
|
D | sd-dhcp-client.c | 796 size_t optlen, optoffset, size; in client_message_init() local 809 optlen = DHCP_MIN_OPTIONS_SIZE; in client_message_init() 810 size = sizeof(DHCPPacket) + optlen; in client_message_init() 818 optlen, &optoffset); in client_message_init() 871 r = dhcp_option_append(&packet->dhcp, optlen, &optoffset, 0, in client_message_init() 909 r = dhcp_option_append(&packet->dhcp, optlen, &optoffset, 0, in client_message_init() 949 *_optlen = optlen; in client_message_init() 958 size_t optlen, in client_append_fqdn_option() argument 972 r = dhcp_option_append(message, optlen, optoffset, 0, in client_append_fqdn_option() 990 …ver_request_options(sd_dhcp_client *client, DHCPPacket *packet, size_t *optoffset, size_t optlen) { in client_append_common_discover_request_options() argument [all …]
|
D | sd-dhcp6-client.c | 565 size_t *optlen, in client_append_common_options_in_managed_mode() argument 578 assert(optlen); in client_append_common_options_in_managed_mode() 581 r = dhcp6_option_append_ia(opt, optlen, ia_na); in client_append_common_options_in_managed_mode() 587 r = dhcp6_option_append_ia(opt, optlen, ia_pd); in client_append_common_options_in_managed_mode() 593 r = dhcp6_option_append_fqdn(opt, optlen, client->fqdn); in client_append_common_options_in_managed_mode() 599 r = dhcp6_option_append_user_class(opt, optlen, client->user_class); in client_append_common_options_in_managed_mode() 605 r = dhcp6_option_append_vendor_class(opt, optlen, client->vendor_class); in client_append_common_options_in_managed_mode() 611 r = dhcp6_option_append_vendor_option(opt, optlen, client->vendor_options); in client_append_common_options_in_managed_mode() 638 static int client_append_oro(sd_dhcp6_client *client, uint8_t **opt, size_t *optlen) { in client_append_oro() argument 645 assert(optlen); in client_append_oro() [all …]
|
D | dhcp6-option.h | 76 size_t optlen, const void *optval); 100 size_t optlen, 103 int dhcp6_option_parse_domainname_list(const uint8_t *optval, size_t optlen, char ***ret); 104 int dhcp6_option_parse_domainname(const uint8_t *optval, size_t optlen, char **ret);
|
D | test-dhcp6-client.c | 198 size_t offset, pos, optlen, outlen = sizeof(result); in TEST() local 206 assert_se(dhcp6_option_parse(packet, 0, &offset, &optcode, &optlen, &optval) == -EBADMSG); in TEST() 209 assert_se(dhcp6_option_parse(packet, 0, &offset, &optcode, &optlen, &optval) == -EBADMSG); in TEST() 216 … assert_se(dhcp6_option_parse(buf, sizeof(packet), &offset, &optcode, &optlen, &optval) >= 0); in TEST() 219 assert_se(optlen == 7); in TEST() 224 … assert_se(dhcp6_option_parse(packet, sizeof(packet), &offset, &optcode, &optlen, &optval) >= 0); in TEST() 227 assert_se(optlen == 7); in TEST() 234 assert_se(dhcp6_option_append(&out, &outlen, optcode, optlen, optval) >= 0); in TEST() 236 pos += 4 + optlen; in TEST() 240 … assert_se(dhcp6_option_parse(packet, sizeof(packet), &offset, &optcode, &optlen, &optval) >= 0); in TEST() [all …]
|
D | dhcp-internal.h | 46 uint8_t code, size_t optlen, const void *optval); 57 size_t optlen, size_t *optoffset);
|
D | dhcp-packet.c | 25 size_t optlen, in dhcp_message_init() argument 54 r = dhcp_option_append(message, optlen, &offset, 0, in dhcp_message_init()
|
/systemd-251/src/shared/linux/ |
D | bpf.h | 6275 __s32 optlen; member
|