Searched defs:optcode (Results 1 - 4 of 4) sorted by relevance

/systemd/src/libsystemd-network/
H A Ddhcp6-option.c44 static int option_append_hdr(uint8_t **buf, size_t *buflen, uint16_t optcode, argument
55 option->code = htobe16(optcode);
141 static int option_parse_hdr(uint8_t **buf, size_t *buflen, uint16_t *optcode, size_t *optlen) { argument
146 assert_return(optcode, -EINVAL);
157 *optcode = be16toh(option->code);
166 int dhcp6_option_parse(uint8_t **buf, size_t *buflen, uint16_t *optcode, argument
170 assert_return(buf && buflen && optcode && optlen && optvalue, -EINVAL);
172 r = option_parse_hdr(buf, buflen, optcode, optlen);
H A Dtest-dhcp-option.c149 uint8_t optcode = 0; local
194 optcode = descoption[*descpos];
198 printf("DHCP code %2d(%2d) len %2d(%2d) ", code, optcode,
201 assert_se(code == optcode);
H A Dtest-dhcp6-client.c102 uint16_t optcode; local
113 assert_se(dhcp6_option_parse(&buf, &zero, &optcode, &optlen,
121 assert_se(dhcp6_option_parse(&buf, &buflen, &optcode, &optlen,
125 assert_se(optcode == SD_DHCP6_OPTION_ORO);
129 assert_se(dhcp6_option_append(&out, &outlen, optcode, optlen,
134 assert_se(dhcp6_option_parse(&buf, &buflen, &optcode, &optlen,
138 assert_se(optcode == SD_DHCP6_OPTION_VENDOR_CLASS);
142 assert_se(dhcp6_option_append(&out, &outlen, optcode, optlen,
209 uint16_t optcode; local
229 while ((r = dhcp6_option_parse(&opt, &len, &optcode,
410 uint16_t optcode; local
511 uint16_t optcode; local
601 uint16_t optcode; local
[all...]
H A Dsd-dhcp6-client.c677 uint16_t optcode, status; local
685 while ((r = dhcp6_option_parse(&option, &len, &optcode, &optlen,
687 switch (optcode) {
751 r = dhcp6_option_parse_ia(&optval, &optlen, optcode,

Completed in 1989 milliseconds