Home
last modified time | relevance | path

Searched refs:msg_type (Results 1 – 15 of 15) sorted by relevance

/hostap-latest/src/radius/
Dradius_client.c103 RadiusType msg_type; member
291 RadiusType msg_type, in radius_client_register() argument
302 if (msg_type == RADIUS_ACCT) { in radius_client_register()
348 int s, RadiusType msg_type) in radius_client_handle_send_error() argument
359 if (msg_type == RADIUS_ACCT || in radius_client_handle_send_error()
360 msg_type == RADIUS_ACCT_INTERIM) { in radius_client_handle_send_error()
391 if (entry->msg_type == RADIUS_ACCT || in radius_client_retransmit()
392 entry->msg_type == RADIUS_ACCT_INTERIM) { in radius_client_retransmit()
437 if (entry->msg_type == RADIUS_ACCT_INTERIM) { in radius_client_retransmit()
463 if (entry->msg_type == RADIUS_ACCT && in radius_client_retransmit()
[all …]
Dradius_client.h268 RadiusType msg_type,
279 RadiusType msg_type, const u8 *addr);
/hostap-latest/src/wps/
Dwps_validate.c545 static int wps_validate_msg_type(const u8 *msg_type, int mandatory) in wps_validate_msg_type() argument
547 if (msg_type == NULL) { in wps_validate_msg_type()
555 if (*msg_type < WPS_Beacon || *msg_type > WPS_WSC_DONE) { in wps_validate_msg_type()
557 "attribute value 0x%x", *msg_type); in wps_validate_msg_type()
1302 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m1()
1358 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m2()
1413 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m2d()
1465 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m3()
1501 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m4()
1570 wps_validate_msg_type(attr.msg_type, 1) || in wps_validate_m5()
[all …]
Dwps_enrollee.c1294 if (attr.msg_type == NULL) { in wps_process_wsc_msg()
1300 switch (*attr.msg_type) { in wps_process_wsc_msg()
1340 *attr.msg_type); in wps_process_wsc_msg()
1351 if (ret == WPS_CONTINUE && *attr.msg_type != WPS_M2D) { in wps_process_wsc_msg()
1372 if (attr.msg_type == NULL) { in wps_process_wsc_ack()
1377 if (*attr.msg_type != WPS_WSC_ACK) { in wps_process_wsc_ack()
1379 *attr.msg_type); in wps_process_wsc_ack()
1419 if (attr.msg_type == NULL) { in wps_process_wsc_nack()
1424 if (*attr.msg_type != WPS_WSC_NACK) { in wps_process_wsc_nack()
1426 *attr.msg_type); in wps_process_wsc_nack()
[all …]
Dwps_attr_build.c276 int wps_build_msg_type(struct wpabuf *msg, enum wps_msg_type msg_type) in wps_build_msg_type() argument
278 wpa_printf(MSG_DEBUG, "WPS: * Message Type (%d)", msg_type); in wps_build_msg_type()
281 wpabuf_put_u8(msg, msg_type); in wps_build_msg_type()
Dwps_upnp.h34 enum wps_msg_type msg_type);
Dwps_upnp_web.c532 if (attr.msg_type && in web_process_put_message()
533 *attr.msg_type != WPS_M2 && in web_process_put_message()
534 *attr.msg_type != WPS_M2D && in web_process_put_message()
646 attr.msg_type == NULL) in web_process_put_wlan_response()
649 type = *attr.msg_type; in web_process_put_wlan_response()
Dwps_registrar.c3040 if (attr.msg_type == NULL) { in wps_process_wsc_msg()
3046 if (*attr.msg_type != WPS_M1 && in wps_process_wsc_msg()
3054 switch (*attr.msg_type) { in wps_process_wsc_msg()
3097 *attr.msg_type); in wps_process_wsc_msg()
3122 if (attr.msg_type == NULL) { in wps_process_wsc_ack()
3127 if (*attr.msg_type != WPS_WSC_ACK) { in wps_process_wsc_ack()
3129 *attr.msg_type); in wps_process_wsc_ack()
3194 if (attr.msg_type == NULL) { in wps_process_wsc_nack()
3199 if (*attr.msg_type != WPS_WSC_NACK) { in wps_process_wsc_nack()
3201 *attr.msg_type); in wps_process_wsc_nack()
[all …]
Dwps_er.c765 m1 = !probe_req && attr->msg_type && *attr->msg_type == WPS_M1; in wps_er_add_sta_data()
1089 if (attr.msg_type && *attr.msg_type == WPS_M1) in wps_er_process_wlanevent_eap()
1093 if (attr.msg_type) { in wps_er_process_wlanevent_eap()
1094 switch (*attr.msg_type) { in wps_er_process_wlanevent_eap()
1749 if (wps_parse_msg(msg, &attr) == 0 && attr.msg_type) { in wps_er_ap_process()
1750 switch (*attr.msg_type) { in wps_er_ap_process()
Dwps_attr_parse.h18 const u8 *msg_type; /* 1 octet */ member
Dwps_i.h171 int wps_build_msg_type(struct wpabuf *msg, enum wps_msg_type msg_type);
Dwps_attr_parse.c170 attr->msg_type = pos; in wps_set_attr()
/hostap-latest/tests/hwsim/
Dnetlink.py109 def __init__(self, msg_type, flags=0, seq=-1, payload=None): argument
110 self.type = msg_type
165 msglen, msg_type, flags, seq, pid = struct.unpack("IHHII",
167 msg = Message(msg_type, flags, seq, contents[16:])
Dtest_ap_wps.py6478 def recv_wsc_msg(dev, opcode, msg_type): argument
6480 if msg['wsc_opcode'] != opcode or msg['wsc_msg_type'] != msg_type:
6488 def build_attr_msg_type(msg_type): argument
6489 return build_wsc_attr(ATTR_MSG_TYPE, struct.pack('B', msg_type))
6743 def build_ack(eap_id, e_nonce, r_nonce, msg_type=WPS_WSC_ACK, eap_code=1): argument
6745 if msg_type is not None:
6746 attrs += build_attr_msg_type(msg_type)
6755 msg_type=WPS_WSC_NACK, eap_code=1): argument
6757 if msg_type is not None:
6758 attrs += build_attr_msg_type(msg_type)
[all …]
/hostap-latest/src/ap/
Dwps_hostapd.c1696 enum wps_msg_type msg_type) in hostapd_rx_req_put_wlan_response() argument
1754 p->type = msg_type; in hostapd_rx_req_put_wlan_response()