Lines Matching defs:newaddr
2158 ipadm_addrobj_t newaddr;
2185 if ((newaddr = calloc(1, sizeof (struct ipadm_addrobj_s))) == NULL)
2195 newaddr->ipadm_lifnum = ifsp.ifsp_lun;
2199 (void) strlcpy(newaddr->ipadm_ifname, ifname,
2200 sizeof (newaddr->ipadm_ifname));
2203 (void) snprintf(newaddr->ipadm_aobjname,
2204 sizeof (newaddr->ipadm_aobjname), "%s/%s", ifname, aname);
2209 newaddr->ipadm_intfidlen = 0;
2210 newaddr->ipadm_stateful = B_TRUE;
2211 newaddr->ipadm_stateless = B_TRUE;
2212 newaddr->ipadm_af = AF_INET6;
2216 newaddr->ipadm_primary = B_FALSE;
2217 newaddr->ipadm_wait = IPADM_DHCP_WAIT_DEFAULT;
2218 newaddr->ipadm_af = AF_INET;
2222 newaddr->ipadm_af = AF_UNSPEC;
2223 newaddr->ipadm_static_prefixlen = 0;
2230 newaddr->ipadm_atype = type;
2231 *ipaddr = newaddr;
2234 free(newaddr);
2714 * "ifconfig bge0:1 <addr>; ifconfig bge0:1 <newaddr>"