Lines Matching refs:msg

123 	struct wpabuf *msg;  in next_advertisement()  local
134 msg = wpabuf_alloc(800); /* more than big enough */ in next_advertisement()
135 if (msg == NULL) in next_advertisement()
141 wpabuf_put_str(msg, "NOTIFY * HTTP/1.1\r\n"); in next_advertisement()
142 wpabuf_printf(msg, "HOST: %s:%d\r\n", in next_advertisement()
144 wpabuf_printf(msg, "CACHE-CONTROL: max-age=%d\r\n", in next_advertisement()
146 wpabuf_printf(msg, "NTS: %s\r\n", in next_advertisement()
152 wpabuf_put_str(msg, "HTTP/1.1 200 OK\r\n"); in next_advertisement()
153 wpabuf_printf(msg, "CACHE-CONTROL: max-age=%d\r\n", in next_advertisement()
156 wpabuf_put_str(msg, "DATE: "); in next_advertisement()
157 format_date(msg); in next_advertisement()
158 wpabuf_put_str(msg, "\r\n"); in next_advertisement()
160 wpabuf_put_str(msg, "EXT:\r\n"); in next_advertisement()
166 wpabuf_printf(msg, "LOCATION: http://%s:%d/%s\r\n", in next_advertisement()
179 wpabuf_put_str(msg, "SERVER: Unspecified, UPnP/1.0, Unspecified\r\n"); in next_advertisement()
183 wpabuf_printf(msg, "%s: upnp:rootdevice\r\n", NTString); in next_advertisement()
184 wpabuf_printf(msg, "USN: uuid:%s::upnp:rootdevice\r\n", in next_advertisement()
188 wpabuf_printf(msg, "%s: uuid:%s\r\n", NTString, uuid_string); in next_advertisement()
189 wpabuf_printf(msg, "USN: uuid:%s\r\n", uuid_string); in next_advertisement()
192 wpabuf_printf(msg, "%s: urn:schemas-wifialliance-org:device:" in next_advertisement()
194 wpabuf_printf(msg, "USN: uuid:%s::urn:schemas-wifialliance-" in next_advertisement()
198 wpabuf_printf(msg, "%s: urn:schemas-wifialliance-org:service:" in next_advertisement()
200 wpabuf_printf(msg, "USN: uuid:%s::urn:schemas-wifialliance-" in next_advertisement()
204 wpabuf_put_str(msg, "\r\n"); in next_advertisement()
209 return msg; in next_advertisement()
227 struct wpabuf *msg; in advertisement_state_machine_stop() local
243 msg = next_advertisement(sm, a, &islast); in advertisement_state_machine_stop()
244 if (msg == NULL) in advertisement_state_machine_stop()
246 if (sendto(sm->multicast_sd, wpabuf_head(msg), wpabuf_len(msg), in advertisement_state_machine_stop()
251 wpabuf_free(msg); in advertisement_state_machine_stop()
262 struct wpabuf *msg; in advertisement_state_machine_handler() local
282 msg = next_advertisement(sm, a, &islast); in advertisement_state_machine_handler()
283 if (msg == NULL) in advertisement_state_machine_handler()
291 if (sendto(sm->multicast_sd, wpabuf_head(msg), wpabuf_len(msg), 0, in advertisement_state_machine_handler()
323 wpabuf_free(msg); in advertisement_state_machine_handler()
383 struct wpabuf *msg; in msearchreply_state_machine_handler() local
400 msg = next_advertisement(sm, a, &islast); in msearchreply_state_machine_handler()
401 if (msg == NULL) in msearchreply_state_machine_handler()
408 if (sendto(sm->multicast_sd, wpabuf_head(msg), wpabuf_len(msg), 0, in msearchreply_state_machine_handler()
417 wpabuf_free(msg); in msearchreply_state_machine_handler()