wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
p2p_supplicant_sd.c File Reference

wpa_supplicant - P2P service discovery Copyright (c) 2010-2014, Jouni Malinen j@w1..nosp@m.fi More...

#include "utils/includes.h"
#include "utils/common.h"
#include "p2p/p2p.h"
#include "wpa_supplicant_i.h"
#include "notify.h"
#include "p2p_supplicant.h"

Macros

#define DNS_HEADER_LEN   12
 
#define P2P_SD_IN_MEMORY_LEN   27
 

Functions

void wpas_sd_request (void *ctx, int freq, const u8 *sa, u8 dialog_token, u16 update_indic, const u8 *tlvs, size_t tlvs_len)
 
void wpas_sd_response (void *ctx, const u8 *sa, u16 update_indic, const u8 *tlvs, size_t tlvs_len)
 
u64 wpas_p2p_sd_request (struct wpa_supplicant *wpa_s, const u8 *dst, const struct wpabuf *tlvs)
 
u64 wpas_p2p_sd_request_upnp (struct wpa_supplicant *wpa_s, const u8 *dst, u8 version, const char *query)
 
u64 wpas_p2p_sd_request_asp (struct wpa_supplicant *wpa_s, const u8 *dst, u8 id, const char *svc_str, const char *info_substr)
 
int wpas_p2p_sd_cancel_request (struct wpa_supplicant *wpa_s, u64 req)
 
void wpas_p2p_sd_response (struct wpa_supplicant *wpa_s, int freq, const u8 *dst, u8 dialog_token, const struct wpabuf *resp_tlvs)
 
void wpas_p2p_sd_service_update (struct wpa_supplicant *wpa_s)
 
void wpas_p2p_service_flush (struct wpa_supplicant *wpa_s)
 
int wpas_p2p_service_p2ps_id_exists (struct wpa_supplicant *wpa_s, u32 adv_id)
 
int wpas_p2p_service_del_asp (struct wpa_supplicant *wpa_s, u32 adv_id)
 
int wpas_p2p_service_add_asp (struct wpa_supplicant *wpa_s, int auto_accept, u32 adv_id, const char *adv_str, u8 svc_state, u16 config_methods, const char *svc_info, const u8 *cpt_priority)
 
void wpas_p2p_service_flush_asp (struct wpa_supplicant *wpa_s)
 
int wpas_p2p_service_add_bonjour (struct wpa_supplicant *wpa_s, struct wpabuf *query, struct wpabuf *resp)
 
int wpas_p2p_service_del_bonjour (struct wpa_supplicant *wpa_s, const struct wpabuf *query)
 
int wpas_p2p_service_add_upnp (struct wpa_supplicant *wpa_s, u8 version, const char *service)
 
int wpas_p2p_service_del_upnp (struct wpa_supplicant *wpa_s, u8 version, const char *service)
 

Detailed Description

wpa_supplicant - P2P service discovery Copyright (c) 2010-2014, Jouni Malinen j@w1..nosp@m.fi