Lines Matching defs:ifname
146 nwamd_get_dhcpinfo_data(const char *sym_name, char *ifname)
159 if (ifname == NULL)
160 ifname = "";
176 request = dhcp_ipc_alloc_request(DHCP_GET_TAG, ifname, &optnum,
591 addrinfo_for_addr(const struct sockaddr_storage *caddr, const char *ifname,
597 ipstatus = ipadm_addr_info(ipadm_handle, ifname, &addrinfo, 0, 0);
601 ifname, ipadm_status2str(ipstatus));
637 addrinfo_for_ipaddr(ipadm_addrobj_t ipaddr, const char *ifname,
649 ipstatus = ipadm_addr_info(ipadm_handle, ifname, &addrinfo, 0, 0);
653 ifname, ipadm_status2str(ipstatus));
691 add_ip_address(const char *ifname, const struct nwamd_if_address *nifa,
704 "adding IPv4 DHCP address on %s", ifname);
705 nwamd_dhcp(ifname, nifa->ipaddr, DHCP_START);
709 "STATIC" : "IPv6 ADDRCONF"), ifname);
714 ifname, ipadm_status2str(ipstatus));
728 if (!addrinfo_for_ipaddr(nifa->ipaddr, ifname,
731 "could not find addrinfo on %s", ifname);
742 "duplicate address detected on %s", ifname);
743 if ((err = nwam_ncu_name_to_typed_name(ifname,
755 ifname, nwam_strerror(err));
768 nwamd_dhcp(ifname, nifa->ipaddr, DHCP_INFORM);
1206 * ifname is only used for nlog().
1210 const char *ifname)
1216 ifname, aobjname);
1221 ifname, ipadm_status2str(ipstatus));
1236 dhcp_release(const char *ifname)
1240 if (ipadm_addr_info(ipadm_handle, ifname, &ainfo, 0, 0)
1247 ainfop->ia_atype, ifname);
1255 char *ifname = ncu->ncu_name;
1261 ifname);
1264 ipstatus = ipadm_create_if(ipadm_handle, ifname, af,
1269 dhcp_release(ifname);
1270 ipstatus = ipadm_delete_if(ipadm_handle, ifname, af,
1281 ifname, ipadm_status2str(ipstatus));
1432 nwamd_dhcp(const char *ifname, ipadm_addrobj_t ipaddr, dhcp_ipc_type_t cmd)
1438 dhcp_ipc_type_to_string(cmd), ifname);
1447 arg->name = strdup(ifname);