Searched refs:DHCP6Option (Results 1 – 3 of 3) sorted by relevance
/systemd-251/src/libsystemd-network/ |
D | dhcp6-option.c | 219 if (optlen > 0xffff || *buflen < optlen + offsetof(DHCP6Option, data)) in option_append_hdr() 222 unaligned_write_be16(*buf + offsetof(DHCP6Option, code), optcode); in option_append_hdr() 223 unaligned_write_be16(*buf + offsetof(DHCP6Option, len), optlen); in option_append_hdr() 225 *buf += offsetof(DHCP6Option, data); in option_append_hdr() 226 *buflen -= offsetof(DHCP6Option, data); in option_append_hdr() 300 return offsetof(DHCP6Option, data) + sizeof(struct iaaddr); in option_append_ia_address() 328 return offsetof(DHCP6Option, data) + sizeof(struct iapdprefix); in option_append_pd_prefix() 365 if (*buflen < offsetof(DHCP6Option, data) + len) in dhcp6_option_append_ia() 372 *buf += offsetof(DHCP6Option, data); in dhcp6_option_append_ia() 373 *buflen -= offsetof(DHCP6Option, data); in dhcp6_option_append_ia() [all …]
|
D | test-dhcp6-client.c | 323 DHCP6Option *option; in TEST() 329 option = (DHCP6Option*) option1; in TEST() 330 assert_se(sizeof(option1) == sizeof(DHCP6Option) + be16toh(option->len)); in TEST() 342 option->len = htobe16(sizeof(DHCP6Option)); in TEST() 346 option = (DHCP6Option*) option2; in TEST() 347 assert_se(sizeof(option2) == sizeof(DHCP6Option) + be16toh(option->len)); in TEST() 351 option = (DHCP6Option*) option3; in TEST() 352 assert_se(sizeof(option3) == sizeof(DHCP6Option) + be16toh(option->len)); in TEST() 359 option = (DHCP6Option*) option4; in TEST() 360 assert_se(sizeof(option4) == sizeof(DHCP6Option) + be16toh(option->len)); in TEST() [all …]
|
D | dhcp6-option.h | 24 typedef struct DHCP6Option { struct 28 } _packed_ DHCP6Option; argument
|