Lines Matching refs:ia
83 int dhcp6_option_append_ia(uint8_t **buf, size_t *buflen, DHCP6IA *ia) {
90 assert_return(buf && *buf && buflen && ia, -EINVAL);
92 switch (ia->type) {
114 memcpy(*buf, &ia->id, len);
119 LIST_FOREACH(addresses, addr, ia->addresses) {
133 r = option_append_hdr(&ia_hdr, &ia_buflen, ia->type, len + ia_addrlen);
187 DHCP6IA *ia) {
195 assert_return(ia, -EINVAL);
196 assert_return(!ia->addresses, -EINVAL);
208 memcpy(&ia->id, *buf, iaaddr_offset);
210 lt_t1 = be32toh(ia->lifetime_t1);
211 lt_t2 = be32toh(ia->lifetime_t2);
230 memcpy(&ia->id, *buf, iaaddr_offset);
232 ia->lifetime_t1 = 0;
233 ia->lifetime_t2 = 0;
242 ia->type = iatype;
270 LIST_PREPEND(addresses, ia->addresses, addr);
303 if (!ia->lifetime_t1 && !ia->lifetime_t2) {
306 ia->lifetime_t1 = htobe32(lt_t1);
307 ia->lifetime_t2 = htobe32(lt_t2);