Lines Matching refs:usrv
1647 struct p2p_srv_upnp *usrv;
1649 dl_list_for_each(usrv, &wpa_s->global->p2p_srv_upnp,
1651 if (version == usrv->version &&
1652 os_strcmp(service, usrv->service) == 0)
1653 return usrv;
1815 struct p2p_srv_upnp *usrv;
1825 dl_list_for_each(usrv, &wpa_s->global->p2p_srv_upnp,
1827 if (wpabuf_tailroom(resp) < 5 + 1 + os_strlen(usrv->service))
1838 wpabuf_put_u8(resp, usrv->version);
1840 usrv->service);
1841 wpabuf_put_str(resp, usrv->service);
1852 struct p2p_srv_upnp *usrv;
1888 dl_list_for_each(usrv, &wpa_s->global->p2p_srv_upnp,
1890 if (version != usrv->version)
1894 os_strstr(usrv->service, str) == NULL)
1910 usrv->service);
1911 if (wpabuf_tailroom(resp) < os_strlen(usrv->service))
1913 wpabuf_put_str(resp, usrv->service);
2328 static void wpas_p2p_srv_upnp_free(struct p2p_srv_upnp *usrv)
2330 dl_list_del(&usrv->list);
2331 os_free(usrv->service);
2332 os_free(usrv);
2339 struct p2p_srv_upnp *usrv, *un;
2345 dl_list_for_each_safe(usrv, un, &wpa_s->global->p2p_srv_upnp,
2347 wpas_p2p_srv_upnp_free(usrv);
2387 struct p2p_srv_upnp *usrv;
2391 usrv = os_zalloc(sizeof(*usrv));
2392 if (usrv == NULL)
2394 usrv->version = version;
2395 usrv->service = os_strdup(service);
2396 if (usrv->service == NULL) {
2397 os_free(usrv);
2400 dl_list_add(&wpa_s->global->p2p_srv_upnp, &usrv->list);
2410 struct p2p_srv_upnp *usrv;
2412 usrv = wpas_p2p_service_get_upnp(wpa_s, version, service);
2413 if (usrv == NULL)
2415 wpas_p2p_srv_upnp_free(usrv);