Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 19 of 19) sorted by relevance

/hostap-3.6.0/tests/hwsim/
Dtest_p2p_messages.py25 def ie_p2p(attrs): argument
26 return struct.pack("<BBBBBB", WLAN_EID_VENDOR_SPECIFIC, 4 + len(attrs),
27 0x50, 0x6f, 0x9a, 9) + attrs
29 def ie_wsc(attrs): argument
30 return struct.pack("<BBBBBB", WLAN_EID_VENDOR_SPECIFIC, 4 + len(attrs),
31 0x00, 0x50, 0xf2, 4) + attrs
153 attrs = p2p_attr_listen_channel(chan=chan)
154 msg['payload'] = ie_ssid("DIRECT-") + ie_supp_rates() + ie_p2p(attrs)
236 attrs = p2p_attr_config_timeout()
237 attrs += p2p_attr_invitation_flags()
[all …]
Dtest_cfg80211.py38 attrs = build_nl80211_attr_u32('IFINDEX', ifindex)
39 attrs += build_nl80211_attr_u16('REASON_CODE', 1)
40 attrs += build_nl80211_attr_mac('MAC', apdev[0]['bssid'])
41 nl80211_command(dev[0], 'DISASSOCIATE', attrs)
48 attrs = build_nl80211_attr_u32('IFINDEX', ifindex)
50 attrs += build_nl80211_attr_u32('WIPHY_FREQ', freq)
52 attrs += build_nl80211_attr_u32('DURATION', duration)
54 attrs += build_nl80211_attr_flag('OFFCHANNEL_TX_OK')
55 attrs += build_nl80211_attr('FRAME', frame)
56 return parse_nl80211_attrs(nl80211_command(dev, 'FRAME', attrs))
[all …]
Dtest_ap_wps.py6438 attrs = {}
6446 attrs[attr] = data[0:length]
6448 msg['wsc_attrs'] = attrs
6450 if ATTR_MSG_TYPE in attrs:
6451 msg['wsc_msg_type'], = struct.unpack('B', attrs[ATTR_MSG_TYPE])
6640 attrs = build_wsc_attr(ATTR_VERSION, '\x10')
6641 attrs += build_attr_msg_type(WPS_M1)
6642 attrs += build_wsc_attr(ATTR_UUID_E, uuid_e)
6643 attrs += build_wsc_attr(ATTR_MAC_ADDR, mac_addr)
6644 attrs += build_wsc_attr(ATTR_ENROLLEE_NONCE, e_nonce)
[all …]
Dhwsim.py29 attrs = []
31 attrs.append(netlink.U32Attr(HWSIM_ATTR_CHANNELS, n_channels))
33 attrs.append(netlink.FlagAttr(HWSIM_ATTR_USE_CHANCTX))
35 attrs.append(netlink.FlagAttr(HWSIM_ATTR_SUPPORT_P2P_DEVICE))
40 attrs=attrs)
44 attrs = [netlink.U32Attr(HWSIM_ATTR_RADIO_ID, radio_id)]
48 attrs=attrs)
Dnetlink.py77 def __init__(self, attr_type, attrs): argument
78 self.attrs = attrs
83 for attr in self.attrs:
183 attrs = {}
186 attrs[attr_type] = Attr(attr_type, data[4:attr_len])
189 return attrs
222 def __init__(self, family, cmd, attrs=[], flags=0): argument
223 Message.__init__(self, family, flags=flags, payload=[GenlHdr(cmd)] + attrs)
230 m = GenlMessage(GENL_ID_CTRL, CTRL_CMD_GETFAMILY, flags=NLM_F_REQUEST, attrs=[a])
234 attrs = parse_attributes(m.payload[4:])
[all …]
Dnl80211.py346 attrs = {}
355 attrs[attr] = msg[0:alen]
357 return attrs
Dtest_p2p_grpform.py1097 attrs = p2p_attr_capability(dev_capab=0x25, group_capab=0x08)
1098 attrs += p2p_attr_go_intent(go_intent=7, tie_breaker=1)
1099 attrs += p2p_attr_config_timeout()
1100 attrs += p2p_attr_listen_channel(chan=(int(peer['listen_freq']) - 2407) // 5)
1101 attrs += p2p_attr_intended_interface_addr(lower.p2p_dev_addr())
1102 attrs += p2p_attr_channel_list()
1103 attrs += p2p_attr_device_info(addr_low, config_methods=0x80, name="Device A")
1104 attrs += p2p_attr_operating_channel()
1106 msg['payload'] += ie_p2p(attrs) + ie_wsc(wsc_attrs)
Dtest_radius.py783 attrs = b''
786 attrs += req._PktEncodeAttribute(code, data)
789 flen = 4 + 16 + len(attrs)
792 hmac_obj.update(attrs)
1069 attrs = reply._PktEncodeAttributes()
1072 flen = 4 + 16 + len(attrs)
1075 hmac_obj.update(attrs)
1438 attrs = req._PktEncodeAttributes()
1441 flen = 4 + 16 + len(attrs)
1444 hmac_obj.update(attrs)
Dtest_eap_proto.py114 attrs = reply._PktEncodeAttributes()
117 flen = 4 + 16 + len(attrs)
120 hmac_obj.update(attrs)
/hostap-3.6.0/src/radius/
Dradius_das.c59 struct radius_das_attrs attrs; in radius_das_disconnect() local
76 os_memset(&attrs, 0, sizeof(attrs)); in radius_das_disconnect()
86 attrs.nas_ip_addr = buf; in radius_das_disconnect()
98 attrs.nas_ipv6_addr = buf; in radius_das_disconnect()
104 attrs.nas_identifier = buf; in radius_das_disconnect()
105 attrs.nas_identifier_len = len; in radius_das_disconnect()
120 attrs.sta_addr = sta_addr; in radius_das_disconnect()
125 attrs.user_name = buf; in radius_das_disconnect()
126 attrs.user_name_len = len; in radius_das_disconnect()
131 attrs.acct_session_id = buf; in radius_das_disconnect()
[all …]
Dradius.c1701 u8 radius_msg_find_unlisted_attr(struct radius_msg *msg, u8 *attrs) in radius_msg_find_unlisted_attr() argument
1709 for (j = 0; attrs[j]; j++) { in radius_msg_find_unlisted_attr()
1710 if (attr->type == attrs[j]) in radius_msg_find_unlisted_attr()
1714 if (attrs[j] == 0) in radius_msg_find_unlisted_attr()
Dradius.h340 u8 radius_msg_find_unlisted_attr(struct radius_msg *msg, u8 *attrs);
/hostap-3.6.0/hs20/client/
Dest.c229 STACK_OF(AttrOrOID) *attrs;
243 ASN1_SEQUENCE_OF(CsrAttrs, attrs, AttrOrOID)
340 if (!csrattrs || ! csrattrs->attrs) in add_csrattrs()
345 csrattrs->attrs)); in add_csrattrs()
349 csrattrs->attrs), i); in add_csrattrs()
361 num = sk_AttrOrOID_num(csrattrs->attrs); in add_csrattrs()
363 num = SKM_sk_num(AttrOrOID, csrattrs->attrs); in add_csrattrs()
367 AttrOrOID *ao = sk_AttrOrOID_value(csrattrs->attrs, i); in add_csrattrs()
369 AttrOrOID *ao = SKM_sk_value(AttrOrOID, csrattrs->attrs, i); in add_csrattrs()
632 unsigned char *attrs; in est_build_csr() local
[all …]
/hostap-3.6.0/hs20/server/ca/
Dest-csrattrs.cnf1 asn1 = SEQUENCE:attrs
3 [attrs]
Dest-csrattrs.sh4 base64 est-csrattrs.der > est-attrs.b64
/hostap-3.6.0/wpa_supplicant/
Deapol_test.c155 struct extra_radius_attr *attrs) in add_extra_attrs() argument
158 for (p = attrs; p; p = p->next) { in add_extra_attrs()
167 find_extra_attr(struct extra_radius_attr *attrs, u8 type) in find_extra_attr() argument
170 for (p = attrs; p; p = p->next) { in find_extra_attr()
/hostap-3.6.0/src/wps/
Dwps_enrollee.c804 struct wpabuf *attrs, int wps2) in wps_process_ap_settings_e() argument
895 cred.cred_attr = wpabuf_head(attrs); in wps_process_ap_settings_e()
896 cred.cred_attr_len = wpabuf_len(attrs); in wps_process_ap_settings_e()
/hostap-3.6.0/src/drivers/
Ddriver_nl80211.c294 struct nlattr *attrs; in ack_handler_cookie() local
300 attrs = (struct nlattr *) in ack_handler_cookie()
311 nla_parse(tb, NLMSGERR_ATTR_MAX, attrs, attr_len, NULL); in ack_handler_cookie()
331 struct nlattr *attrs; in error_handler() local
347 attrs = (void *) ((unsigned char *) nlh + ack_len); in error_handler()
350 nla_parse(tb, NLMSGERR_ATTR_MAX, attrs, len, NULL); in error_handler()
/hostap-3.6.0/src/common/
Ddpp.c3055 static u8 * dpp_get_csr_attrs(const u8 *attrs, size_t attrs_len, size_t *len) in dpp_get_csr_attrs() argument
3060 b64 = dpp_get_attr(attrs, attrs_len, DPP_ATTR_CSR_ATTR_REQ, &b64_len); in dpp_get_csr_attrs()