Home
last modified time | relevance | path

Searched refs:optcode (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/libsystemd-network/
Dtest-dhcp6-client.c200 uint16_t optcode; 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()
218 assert_se(optcode == SD_DHCP6_OPTION_ORO); in TEST()
224 … assert_se(dhcp6_option_parse(packet, sizeof(packet), &offset, &optcode, &optlen, &optval) >= 0); in TEST()
226 assert_se(optcode == SD_DHCP6_OPTION_ORO); in TEST()
234 assert_se(dhcp6_option_append(&out, &outlen, optcode, optlen, optval) >= 0); in TEST()
240 … assert_se(dhcp6_option_parse(packet, sizeof(packet), &offset, &optcode, &optlen, &optval) >= 0); in TEST()
242 assert_se(optcode == SD_DHCP6_OPTION_VENDOR_CLASS); in TEST()
[all …]
Dtest-dhcp-option.c148 uint8_t optcode = 0; in test_options_cb() local
192 optcode = descoption[*descpos]; in test_options_cb()
196 printf("DHCP code %2d(%2d) len %2d(%2d) ", code, optcode, in test_options_cb()
199 assert_se(code == optcode); in test_options_cb()
Dsd-dhcp6-lease.c464 uint16_t optcode; in dhcp6_lease_parse_message() local
468 r = dhcp6_option_parse(message->options, len, &offset, &optcode, &optlen, &optval); in dhcp6_lease_parse_message()
472 switch (optcode) { in dhcp6_lease_parse_message()
528 … r = dhcp6_option_parse_ia(client, client->ia_na.header.id, optcode, optlen, optval, &ia); in dhcp6_lease_parse_message()
551 … r = dhcp6_option_parse_ia(client, client->ia_pd.header.id, optcode, optlen, optval, &ia); in dhcp6_lease_parse_message()
Ddhcp6-option.c214 static int option_append_hdr(uint8_t **buf, size_t *buflen, uint16_t optcode, size_t optlen) { in option_append_hdr() argument
222 unaligned_write_be16(*buf + offsetof(DHCP6Option, code), optcode); in option_append_hdr()