Lines Matching full:upnp
2 * UPnP WPS Device
32 * -- UPnP requires that we be able to resolve domain names.
63 * Description: EAP-WPS UPnP device source
123 * Overview of WPS over UPnP:
125 * UPnP is a protocol that allows devices to discover each other and control
126 * each other. In UPnP terminology, a device is either a "device" (a server
129 * This file implements a UPnP "device".
131 * For us, we use mostly basic UPnP discovery, but the control part of interest
132 * is WPS carried via UPnP messages. There is quite a bit of basic UPnP
135 * UPnP discovery begins with "devices" send out multicast UDP packets to a
190 * UPnP allows a client ("control point") to send a server like us ("device")
204 * UPnP does not scale well. If we were in a room with thousands of control
248 * The UPnP documents don't seem to offer any guidelines as to which method to
328 wpa_printf(MSG_DEBUG, "WPS UPnP: Adding URL '%s'", scratch_mem);
365 wpa_printf(MSG_INFO, "WPS UPnP: Resolve error %d (%s) on: %s",
382 wpa_printf(MSG_INFO, "WPS UPnP: subscr_addr_add_url: "
419 wpa_printf(MSG_DEBUG, "WPS UPnP: Parsing URL list '%s'", url_list);
437 wpa_printf(MSG_DEBUG, "WPS UPnP: Send %lu byte message",
442 wpa_printf(MSG_ERROR, "WPS UPnP: Failed to send buffer: "
466 * @sm: WPS UPnP state machine from upnp_wps_device_init()
469 * subscribed UPnP control points. sm->wlanevent must have been set with the
481 "<e:propertyset xmlns:e=\"urn:schemas-upnp-org:event-1-0\">\n";
506 wpa_printf(MSG_DEBUG, "WPS UPnP: Throttle "
529 wpa_printf(MSG_MSGDUMP, "WPS UPnP: WLANEvent message:\n%s",
554 wpa_printf(MSG_DEBUG, "WPS UPnP: Destroy subscription %p", s);
572 wpa_printf(MSG_DEBUG, "WPS UPnP: Removing aged subscription");
631 * Per UPnP spec, we send out the last value of each variable, even
639 "<e:propertyset xmlns:e=\"urn:schemas-upnp-org:event-1-0\">\n";
647 * UPnP device architecture specification requires all the
650 * nonces. The ER (UPnP control point) will ignore this, but at
655 wpa_printf(MSG_DEBUG, "WPS UPnP: Use a fake WSC_ACK as the "
668 wpa_printf(MSG_DEBUG, "WPS UPnP: WLANEvent not known for "
696 * subscription_start - Remember a UPnP control point to send events to.
697 * @sm: WPS UPnP state machine from upnp_wps_device_init()
715 wpa_printf(MSG_INFO, "WPS UPnP: Too many subscriptions, "
732 wpa_printf(MSG_DEBUG, "WPS UPnP: No valid callback URLs in "
741 * as required by UPnP spec.
744 wpa_printf(MSG_INFO, "WPS UPnP: Dropping subscriber due to "
750 wpa_printf(MSG_DEBUG, "WPS UPnP: Subscription %p started with %s",
767 wpa_printf(MSG_DEBUG, "WPS UPnP: Subscription renewed");
778 * @sm: WPS UPnP state machine from upnp_wps_device_init()
784 * Tell external Registrars (UPnP control points) that something happened. In
816 wpa_printf(MSG_DEBUG, "WPS UPnP: Proxying WLANEvent from %s",
914 wpa_printf(MSG_ERROR, "WPS UPnP: SIOCGIFADDR failed: %d (%s)",
926 wpa_printf(MSG_ERROR, "WPS UPnP: SIOCGIFHWADDR failed: "
933 wpa_printf(MSG_ERROR, "WPS UPnP: Failed to get MAC address");
975 * upnp_wps_device_stop - Stop WPS UPnP operations on an interface
976 * @sm: WPS UPnP state machine from upnp_wps_device_init()
983 wpa_printf(MSG_DEBUG, "WPS UPnP: Stop device");
1005 * upnp_wps_device_start - Start WPS UPnP operations on an interface
1006 * @sm: WPS UPnP state machine from upnp_wps_device_init()
1030 wpa_printf(MSG_INFO, "WPS UPnP: Could not get IP/MAC address "
1079 * upnp_wps_device_deinit - Deinitialize WPS UPnP
1080 * @sm: WPS UPnP state machine from upnp_wps_device_init()
1092 wpa_printf(MSG_ERROR, "WPS UPnP: Could not find the interface "
1096 wpa_printf(MSG_DEBUG, "WPS UPnP: Deinit interface instance %p", iface);
1098 wpa_printf(MSG_DEBUG, "WPS UPnP: Deinitializing last instance "
1122 * upnp_wps_device_init - Initialize WPS UPnP
1127 * Returns: WPS UPnP state or %NULL on failure
1143 wpa_printf(MSG_DEBUG, "WPS UPnP: Init interface instance %p", iface);
1150 wpa_printf(MSG_DEBUG, "WPS UPnP: Share existing device "
1154 wpa_printf(MSG_DEBUG, "WPS UPnP: Initialize device context");
1157 wpa_printf(MSG_ERROR, "WPS UPnP: upnp_wps_device_init "
1186 * @sm: WPS UPnP state machine from upnp_wps_device_init()