003 File Manager
Current Path:
/usr/src/contrib/wpa/src/wps
usr
/
src
/
contrib
/
wpa
/
src
/
wps
/
📁
..
📄
http.h
(690 B)
📄
http_client.c
(8.01 KB)
📄
http_client.h
(1.17 KB)
📄
http_server.c
(6.36 KB)
📄
http_server.h
(1.14 KB)
📄
httpread.c
(22.74 KB)
📄
httpread.h
(4.04 KB)
📄
ndef.c
(4.83 KB)
📄
upnp_xml.c
(7.83 KB)
📄
upnp_xml.h
(797 B)
📄
wps.c
(17.54 KB)
📄
wps.h
(28.58 KB)
📄
wps_attr_build.c
(13.55 KB)
📄
wps_attr_parse.c
(15.66 KB)
📄
wps_attr_parse.h
(3.49 KB)
📄
wps_attr_process.c
(7.2 KB)
📄
wps_common.c
(20.99 KB)
📄
wps_defs.h
(10 KB)
📄
wps_dev_attr.c
(10.44 KB)
📄
wps_dev_attr.h
(1.81 KB)
📄
wps_enrollee.c
(40.81 KB)
📄
wps_er.c
(50.46 KB)
📄
wps_er.h
(2.52 KB)
📄
wps_er_ssdp.c
(4.9 KB)
📄
wps_i.h
(6.99 KB)
📄
wps_module_tests.c
(11.77 KB)
📄
wps_registrar.c
(101.36 KB)
📄
wps_upnp.c
(37.51 KB)
📄
wps_upnp.h
(1.33 KB)
📄
wps_upnp_ap.c
(2.36 KB)
📄
wps_upnp_event.c
(11.49 KB)
📄
wps_upnp_i.h
(6.67 KB)
📄
wps_upnp_ssdp.c
(25.47 KB)
📄
wps_upnp_web.c
(37.39 KB)
📄
wps_validate.c
(46.87 KB)
Editing: wps_er.h
/* * Wi-Fi Protected Setup - External Registrar * Copyright (c) 2009, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef WPS_ER_H #define WPS_ER_H #include "utils/list.h" struct wps_er_sta { struct dl_list list; struct wps_er_ap *ap; u8 addr[ETH_ALEN]; u16 config_methods; u8 uuid[WPS_UUID_LEN]; u8 pri_dev_type[8]; u16 dev_passwd_id; int m1_received; char *manufacturer; char *model_name; char *model_number; char *serial_number; char *dev_name; struct wps_data *wps; struct http_client *http; struct wps_credential *cred; }; struct wps_er_ap { struct dl_list list; struct wps_er *er; struct dl_list sta; /* list of STAs/Enrollees using this AP */ struct in_addr addr; char *location; struct http_client *http; struct wps_data *wps; u8 uuid[WPS_UUID_LEN]; u8 pri_dev_type[8]; u8 wps_state; u8 mac_addr[ETH_ALEN]; char *friendly_name; char *manufacturer; char *manufacturer_url; char *model_description; char *model_name; char *model_number; char *model_url; char *serial_number; char *udn; char *upc; char *scpd_url; char *control_url; char *event_sub_url; int subscribed; u8 sid[WPS_UUID_LEN]; unsigned int id; struct wps_credential *ap_settings; void (*m1_handler)(struct wps_er_ap *ap, struct wpabuf *m1); }; struct wps_er_ap_settings { struct dl_list list; u8 uuid[WPS_UUID_LEN]; struct wps_credential ap_settings; }; struct wps_er { struct wps_context *wps; char ifname[17]; int forced_ifname; u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */ char *ip_addr_text; /* IP address of network i.f. we use */ unsigned ip_addr; /* IP address of network i.f. we use (host order) */ int multicast_sd; int ssdp_sd; struct dl_list ap; struct dl_list ap_unsubscribing; struct dl_list ap_settings; struct http_server *http_srv; int http_port; unsigned int next_ap_id; unsigned int event_id; int deinitializing; void (*deinit_done_cb)(void *ctx); void *deinit_done_ctx; struct in_addr filter_addr; int skip_set_sel_reg; const u8 *set_sel_reg_uuid_filter; }; /* wps_er.c */ void wps_er_ap_add(struct wps_er *er, const u8 *uuid, struct in_addr *addr, const char *location, int max_age); void wps_er_ap_remove(struct wps_er *er, struct in_addr *addr); int wps_er_ap_cache_settings(struct wps_er *er, struct in_addr *addr); /* wps_er_ssdp.c */ int wps_er_ssdp_init(struct wps_er *er); void wps_er_ssdp_deinit(struct wps_er *er); void wps_er_send_ssdp_msearch(struct wps_er *er); #endif /* WPS_ER_H */
Upload File
Create Folder