Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 262) sorted by relevance

1234567891011

/hostap-latest/src/utils/
Dlist.h64 #define offsetof(type, member) ((long) &((type *) 0)->member) argument
67 #define dl_list_entry(item, type, member) \ argument
68 ((type *) ((char *) item - offsetof(type, member)))
70 #define dl_list_first(list, type, member) \ argument
72 dl_list_entry((list)->next, type, member))
74 #define dl_list_last(list, type, member) \ argument
76 dl_list_entry((list)->prev, type, member))
78 #define dl_list_for_each(item, list, type, member) \ argument
79 for (item = dl_list_entry((list)->next, type, member); \
81 item = dl_list_entry(item->member.next, type, member))
[all …]
Djson.c202 token->type); in json_check_tree_state()
245 curr_token->parent->type == JSON_ARRAY && in json_parse()
260 token->type = *pos == '[' ? JSON_ARRAY : JSON_OBJECT; in json_parse()
280 curr_token->type != JSON_ARRAY) || in json_parse()
282 curr_token->type != JSON_OBJECT)) { in json_parse()
307 token->type = JSON_STRING; in json_parse()
311 curr_token->parent->type == JSON_ARRAY && in json_parse()
316 curr_token->type = JSON_STRING; in json_parse()
321 curr_token->type = JSON_VALUE; in json_parse()
327 curr_token->type = JSON_STRING; in json_parse()
[all …]
/hostap-latest/tests/hwsim/
Dtest_p2p_messages.py103 def p2p_hdr_helper(dst, src, type=None, dialog_token=1, req=True): argument
114 if type is not None:
115 msg['payload'] += struct.pack("<B", type)
120 def p2p_hdr(dst, src, type=None, dialog_token=1): argument
121 return p2p_hdr_helper(dst, src, type, dialog_token, True)
123 def p2p_hdr_resp(dst, src, type=None, dialog_token=1): argument
124 return p2p_hdr_helper(dst, src, type, dialog_token, False)
236 msg = p2p_hdr(dst, src, type=P2P_INVITATION_REQ, dialog_token=1)
256 msg = p2p_hdr(dst, src, type=P2P_INVITATION_REQ, dialog_token=1)
276 msg = p2p_hdr(dst, src, type=P2P_INVITATION_REQ, dialog_token=None)
[all …]
Dnetlink.py79 self.type = attr_type
87 hdr = struct.pack("HH", length+4, self.type)
110 self.type = msg_type
129 hdr = struct.pack("IHHII", length + 4*4, self.type,
135 self.type, self.pid, self.seq, self.flags, repr(self.payload))
139 assert self.type == NLMSG_ERROR
169 if msg.type == NLMSG_ERROR:
/hostap-latest/src/common/
Dnan_de.c31 enum nan_de_service_type type; member
112 if (srv->type == NAN_DE_PUBLISH && de->cb.publish_terminated) in nan_de_service_deinit()
114 if (srv->type == NAN_DE_SUBSCRIBE && de->cb.subscribe_terminated) in nan_de_service_deinit()
205 enum nan_service_control_type type, in nan_de_tx_sdf() argument
211 u8 ctrl = type; in nan_de_tx_sdf()
241 if (srv->type == NAN_DE_PUBLISH || ssi) { in nan_de_tx_sdf()
245 if (srv->type == NAN_DE_PUBLISH) { in nan_de_tx_sdf()
333 enum nan_service_control_type type; in nan_de_tx_multicast() local
336 if (srv->type == NAN_DE_PUBLISH) { in nan_de_tx_multicast()
339 type = NAN_SRV_CTRL_PUBLISH; in nan_de_tx_multicast()
[all …]
/hostap-latest/wpa_supplicant/dbus/
Ddbus_dict_helpers.c67 const char * wpa_dbus_type_as_string(const int type) in wpa_dbus_type_as_string() argument
69 switch (type) { in wpa_dbus_type_as_string()
402 const char *key, const char *type, in wpa_dbus_dict_begin_array() argument
412 type); in wpa_dbus_dict_begin_array()
426 type, iter_array); in wpa_dbus_dict_begin_array()
625 int type; in wpa_dbus_dict_open_read() local
634 type = dbus_message_iter_get_arg_type(iter); in wpa_dbus_dict_open_read()
635 if (type != DBUS_TYPE_ARRAY || in wpa_dbus_dict_open_read()
639 __func__, type, in wpa_dbus_dict_open_read()
640 type != DBUS_TYPE_ARRAY ? '?' : in wpa_dbus_dict_open_read()
[all …]
Ddbus_new_handlers_p2p.c35 if (entry.type != DBUS_TYPE_ARRAY || in wpas_dbus_validate_dbus_ipaddr()
114 enum p2p_discovery_type type = P2P_FIND_START_WITH_FULL; in wpas_dbus_handler_p2p_find() local
131 entry.type == DBUS_TYPE_INT32) { in wpas_dbus_handler_p2p_find()
134 if (entry.type != DBUS_TYPE_ARRAY || in wpas_dbus_handler_p2p_find()
154 entry.type == DBUS_TYPE_STRING) { in wpas_dbus_handler_p2p_find()
156 type = P2P_FIND_START_WITH_FULL; in wpas_dbus_handler_p2p_find()
158 type = P2P_FIND_ONLY_SOCIAL; in wpas_dbus_handler_p2p_find()
160 type = P2P_FIND_PROGRESSIVE; in wpas_dbus_handler_p2p_find()
164 (entry.type == DBUS_TYPE_INT32 || in wpas_dbus_handler_p2p_find()
165 entry.type == DBUS_TYPE_UINT32)) { in wpas_dbus_handler_p2p_find()
[all …]
Ddbus_new_introspect.c54 static void add_arg(struct wpabuf *xml, const char *name, const char *type, in add_arg() argument
58 if (type) in add_arg()
59 wpabuf_printf(xml, " type=\"%s\"", type); in add_arg()
66 static void add_entry(struct wpabuf *xml, const char *type, const char *name, in add_entry() argument
72 wpabuf_printf(xml, "<%s name=\"%s\"/>", type, name); in add_entry()
75 wpabuf_printf(xml, "<%s name=\"%s\">", type, name); in add_entry()
77 add_arg(xml, arg->name, arg->type, in add_entry()
81 wpabuf_printf(xml, "</%s>", type); in add_entry()
90 dsc->dbus_property, dsc->type, in add_property()
/hostap-latest/src/radius/
Dradius.c162 u16 type; /* 0..255 for basic types; member
289 static const struct radius_attr_type * radius_get_attr_type(u16 type) in radius_get_attr_type() argument
294 if (type == radius_attrs[i].type) in radius_get_attr_type()
302 static bool radius_is_long_ext_type(u8 type) in radius_is_long_ext_type() argument
304 return type == RADIUS_ATTR_LONG_EXT_TYPE_1 || in radius_is_long_ext_type()
305 type == RADIUS_ATTR_LONG_EXT_TYPE_2; in radius_is_long_ext_type()
309 static bool radius_is_ext_type(u8 type) in radius_is_ext_type() argument
311 return type >= RADIUS_ATTR_EXT_TYPE_1 && in radius_is_ext_type()
312 type <= RADIUS_ATTR_LONG_EXT_TYPE_2; in radius_is_ext_type()
327 if (radius_is_ext_type(hdr->type)) { in radius_msg_dump_attr()
[all …]
Dradius.h44 u8 type; member
50 u8 type; member
289 struct radius_attr_hdr * radius_msg_add_attr(struct radius_msg *msg, u16 type,
301 u8 type);
316 int radius_msg_add_ext_vs(struct radius_msg *msg, u16 type, u32 vendor_id,
326 int radius_msg_get_attr(struct radius_msg *msg, u8 type, u8 *buf, size_t len);
333 static inline int radius_msg_add_attr_int32(struct radius_msg *msg, u8 type, in radius_msg_add_attr_int32() argument
337 return radius_msg_add_attr(msg, type, (u8 *) &val, 4) != NULL; in radius_msg_add_attr_int32()
340 static inline int radius_msg_get_attr_int32(struct radius_msg *msg, u8 type, in radius_msg_get_attr_int32() argument
345 res = radius_msg_get_attr(msg, type, (u8 *) &val, 4); in radius_msg_get_attr_int32()
[all …]
/hostap-latest/wpa_supplicant/examples/
Dp2p-nfc.py132 def wpas_report_handover(req, sel, type): argument
136 …cmd = "NFC_REPORT_HANDOVER " + type + " P2P " + str(req).encode("hex") + " " + str(sel).encode("he…
143 def wpas_report_handover_wsc(req, sel, type): argument
147 …cmd = "NFC_REPORT_HANDOVER " + type + " WPS " + str(req).encode("hex") + " " + str(sel).encode("he…
215 if message.type != "urn:nfc:wkt:Hs":
216 summary("Response was not Hs - received: " + message.type)
234 print("Remote carrier type: " + carrier.type)
235 if carrier.type == "application/vnd.wfa.p2p":
269 summary("received handover request {}".format(request.type))
271 if not request.type == 'urn:nfc:wkt:Hr':
[all …]
Dwps-nfc.py129 def wpas_report_handover(req, sel, type): argument
133 return wpas.request("NFC_REPORT_HANDOVER " + type + " WPS " +
148 summary("received handover request {}".format(request.type))
150 if not request.type == 'urn:nfc:wkt:Hr':
159 summary("send handover response {}".format(response.type))
173 print("Remote carrier type: " + carrier.type)
174 if carrier.type == "application/vnd.wfa.wsc":
251 if message.type != "urn:nfc:wkt:Hs":
252 summary("Response was not Hs - received: " + message.type)
270 print("Remote carrier type: " + carrier.type)
[all …]
/hostap-latest/wpa_supplicant/wpa_gui-qt4/
Dpeers.cpp122 QString Peers::ItemType(int type) in ItemType() argument
125 switch (type) { in ItemType()
182 int type = ctx_item->data(peer_role_type).toInt(); in context_menu() local
183 menu->addAction(Peers::ItemType(type))->setEnabled(false); in context_menu()
196 if ((type == PEER_TYPE_ASSOCIATED_STATION || in context_menu()
197 type == PEER_TYPE_AP_WPS || in context_menu()
198 type == PEER_TYPE_WPS_PIN_NEEDED || in context_menu()
199 type == PEER_TYPE_WPS_ER_ENROLLEE || in context_menu()
200 type == PEER_TYPE_WPS_ENROLLEE) && in context_menu()
206 if (type == PEER_TYPE_P2P || type == PEER_TYPE_P2P_CLIENT) { in context_menu()
[all …]
/hostap-latest/src/wps/
Dndef.c23 const u8 *type; member
68 record->type = record->type_length == 0 ? NULL : pos; in ndef_parse_record()
112 static struct wpabuf * ndef_build_record(u8 flags, const void *type, in ndef_build_record() argument
154 wpabuf_put_data(record, type, type_length); in ndef_build_record()
163 if (record->type == NULL || in wifi_filter()
166 if (os_memcmp(record->type, wifi_handover_type, in wifi_filter()
189 if (record->type == NULL || in p2p_filter()
192 if (os_memcmp(record->type, p2p_handover_type, in p2p_filter()
Dwps_attr_parse.c152 static int wps_set_attr(struct wps_parse_attr *attr, u16 type, in wps_set_attr() argument
155 switch (type) { in wps_set_attr()
588 "len=%u", type, len); in wps_set_attr()
599 u16 type, len; in wps_parse_msg() local
621 type = WPA_GET_BE16(pos); in wps_parse_msg()
626 type, len); in wps_parse_msg()
638 if ((type & 0xff00) != 0x1000 && in wps_parse_msg()
651 if (type == 0 && len == 0) { in wps_parse_msg()
675 if (wps_set_attr(attr, type, pos, len) < 0) in wps_parse_msg()
679 prev_type = type; in wps_parse_msg()
/hostap-latest/src/eap_common/
Deap_teap_common.h45 be16 type; member
105 be16 type; /* PAC_TYPE_PAC_TYPE */ member
201 void eap_teap_put_tlv_hdr(struct wpabuf *buf, u16 type, u16 len);
202 void eap_teap_put_tlv(struct wpabuf *buf, u16 type, const void *data, u16 len);
203 void eap_teap_put_tlv_buf(struct wpabuf *buf, u16 type,
222 const char * eap_teap_tlv_type_str(enum teap_tlv_types type);
227 int eap_teap_allowed_anon_prov_phase2_method(int vendor, enum eap_type type);
Deap_fast_common.c19 void eap_fast_put_tlv_hdr(struct wpabuf *buf, u16 type, u16 len) in eap_fast_put_tlv_hdr() argument
22 hdr.type = host_to_be16(type); in eap_fast_put_tlv_hdr()
28 void eap_fast_put_tlv(struct wpabuf *buf, u16 type, const void *data, in eap_fast_put_tlv() argument
31 eap_fast_put_tlv_hdr(buf, type, len); in eap_fast_put_tlv()
36 void eap_fast_put_tlv_buf(struct wpabuf *buf, u16 type, in eap_fast_put_tlv_buf() argument
39 eap_fast_put_tlv_hdr(buf, type, wpabuf_len(data)); in eap_fast_put_tlv_buf()
Deap_fast_common.h44 be16 type; member
92 void eap_fast_put_tlv_hdr(struct wpabuf *buf, u16 type, u16 len);
93 void eap_fast_put_tlv(struct wpabuf *buf, u16 type, const void *data,
95 void eap_fast_put_tlv_buf(struct wpabuf *buf, u16 type,
Deap_teap_common.c23 void eap_teap_put_tlv_hdr(struct wpabuf *buf, u16 type, u16 len) in eap_teap_put_tlv_hdr() argument
27 hdr.tlv_type = host_to_be16(type); in eap_teap_put_tlv_hdr()
33 void eap_teap_put_tlv(struct wpabuf *buf, u16 type, const void *data, u16 len) in eap_teap_put_tlv() argument
35 eap_teap_put_tlv_hdr(buf, type, len); in eap_teap_put_tlv()
40 void eap_teap_put_tlv_buf(struct wpabuf *buf, u16 type, in eap_teap_put_tlv_buf() argument
43 eap_teap_put_tlv_hdr(buf, type, wpabuf_len(data)); in eap_teap_put_tlv_buf()
609 const char * eap_teap_tlv_type_str(enum teap_tlv_types type) in eap_teap_tlv_type_str() argument
611 switch (type) { in eap_teap_tlv_type_str()
709 int eap_teap_allowed_anon_prov_phase2_method(int vendor, enum eap_type type) in eap_teap_allowed_anon_prov_phase2_method() argument
715 (type == EAP_TYPE_PWD || type == EAP_TYPE_EKE); in eap_teap_allowed_anon_prov_phase2_method()
/hostap-latest/src/tls/
Dtlsv1_client_read.c359 u8 type; in tls_process_certificate() local
381 type = *pos++; in tls_process_certificate()
394 if (type == TLS_HANDSHAKE_TYPE_SERVER_KEY_EXCHANGE) in tls_process_certificate()
397 if (type == TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST) in tls_process_certificate()
400 if (type == TLS_HANDSHAKE_TYPE_SERVER_HELLO_DONE) in tls_process_certificate()
403 if (type != TLS_HANDSHAKE_TYPE_CERTIFICATE) { in tls_process_certificate()
407 "ServerHelloDone)", type); in tls_process_certificate()
829 u8 type, status_type; in tls_process_certificate_status() local
854 type = *pos++; in tls_process_certificate_status()
869 if (type != TLS_HANDSHAKE_TYPE_CERTIFICATE_STATUS) { in tls_process_certificate_status()
[all …]
/hostap-latest/hostapd/
Dwps-ap-nfc.py119 summary("received handover request {}".format(request.type))
121 if not request.type == 'urn:nfc:wkt:Hr':
130 summary("send handover response {}".format(response.type))
144 print("Remote carrier type: " + carrier.type)
145 if carrier.type == "application/vnd.wfa.wsc":
177 print("record type " + record.type)
178 if record.type == "application/vnd.wfa.wsc":
236 print("NDEF tag: " + tag.type)
/hostap-latest/src/eap_peer/
Deap_fast.c369 int vendor, enum eap_type type) in eap_fast_select_phase2_method() argument
377 (vendor != EAP_VENDOR_IETF || type != EAP_TYPE_MSCHAPV2)) { in eap_fast_select_phase2_method()
380 vendor, type); in eap_fast_select_phase2_method()
385 if (vendor == EAP_VENDOR_IETF && type == EAP_TYPE_TNC) { in eap_fast_select_phase2_method()
398 data->phase2_types[i].method != type) in eap_fast_select_phase2_method()
411 type != data->phase2_type.method || in eap_fast_select_phase2_method()
412 (vendor == EAP_VENDOR_IETF && type == EAP_TYPE_NONE)) in eap_fast_select_phase2_method()
743 struct eap_tlv_pac_type_tlv *type; in eap_fast_write_pac_request() local
752 pac->length = host_to_be16(sizeof(*type)); in eap_fast_write_pac_request()
754 type = (struct eap_tlv_pac_type_tlv *) (pac + 1); in eap_fast_write_pac_request()
[all …]
Deap_teap.c338 int vendor, enum eap_type type) in eap_teap_select_phase2_method() argument
346 !eap_teap_allowed_anon_prov_phase2_method(vendor, type)) { in eap_teap_select_phase2_method()
349 vendor, type); in eap_teap_select_phase2_method()
354 if (vendor == EAP_VENDOR_IETF && type == EAP_TYPE_TNC) { in eap_teap_select_phase2_method()
367 data->phase2_types[i].method != type) in eap_teap_select_phase2_method()
380 type != data->phase2_type.method || in eap_teap_select_phase2_method()
381 (vendor == EAP_VENDOR_IETF && type == EAP_TYPE_NONE)) in eap_teap_select_phase2_method()
932 static void eap_teap_parse_pac_tlv(struct eap_teap_pac *entry, int type, in eap_teap_parse_pac_tlv() argument
935 switch (type & 0x7fff) { in eap_teap_parse_pac_tlv()
959 type); in eap_teap_parse_pac_tlv()
[all …]
/hostap-latest/src/ap/
Dwpa_auth_ft.c51 u16 type; member
77 const u8 *src_addr, u8 type, in wpa_ft_rrb_decrypt() argument
80 const u8 *ad[3] = { src_addr, auth, &type }; in wpa_ft_rrb_decrypt()
81 size_t ad_len[3] = { ETH_ALEN, auth_len, sizeof(type) }; in wpa_ft_rrb_decrypt()
84 MAC2STR(src_addr), type); in wpa_ft_rrb_decrypt()
143 u16 type, size_t *tlv_len, const u8 **tlv_data) in wpa_ft_rrb_get_tlv() argument
151 type16 = host_to_le16(type); in wpa_ft_rrb_get_tlv()
165 if (f->type == type16) { in wpa_ft_rrb_get_tlv()
196 le_to_host16(f->type), len); in wpa_ft_rrb_dump()
236 int type; in wpa_ft_rrb_get_tlv_vlan() local
[all …]
/hostap-latest/src/drivers/
Ddriver_ndis_.c45 enum event_types type; in wpa_driver_ndis_event_process() local
51 type = *((int *) buf); in wpa_driver_ndis_event_process()
53 wpa_printf(MSG_DEBUG, "NDIS: event - type %d", type); in wpa_driver_ndis_event_process()
66 switch (type) { in wpa_driver_ndis_event_process()

1234567891011