Lines Matching defs:iface
78 lws_dhcpc_find(struct lws_context *context, const char *iface, int af)
82 /* see if we are already looking after this af / iface combination */
87 if (!strcmp((const char *)&r[1], iface) && af == r->af)
96 * Create a persistent dhcp client entry for network interface "iface" and AF
101 lws_dhcpc_request(struct lws_context *context, const char *iface, int af,
104 lws_dhcpc_req_t *r = lws_dhcpc_find(context, iface, af);
107 /* see if we are already looking after this af / iface combination */
114 n = (int)strlen(iface);
119 memcpy(&r[1], iface, (unsigned int)n + 1);
126 lws_strncpy(r->is.ifname, iface, sizeof(r->is.ifname));
136 * Destroy every DHCP client object related to interface "iface"
151 lws_dhcpc_remove(struct lws_context *context, const char *iface)
153 lws_dll2_foreach_safe(&context->dhcpc_owner, (void *)iface, _remove_if);