
366 Chapter 4—DHCPv6
122 addr->pltime > addr->vltime)) {
123 dprintf(LOG_INFO, FNAME, "invalid address %s: "
124 "pltime (%lu) is larger than vltime (%lu)",
125 in6addr2str(&addr->addr, 0),
126 addr->pltime, addr->vltime);
127 return (-1);
128 }
addrconf.c
120–128 If the preferred lifetime of the address is greater than the valid lifetime, this address
is ignored.
Create Control Structure
Listing 4-52
addrconf.c
130 if (iac_na == NULL) {
131 if ((iac_na = malloc(sizeof(*iac_na))) == NULL) {
132 dprintf(LOG_NOTICE, FNAME, "memory allocation failed");
133 return (-1);
134 }
135 memset(iac_na, 0, sizeof(*iac_na));
136 iac_na->iacna_ia = ia;
137 iac_na->iacna_callback ...