repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
hostap
hostap-master/src/ap/wnm_ap.h
/* * IEEE 802.11v WNM related functions and structures * Copyright (c) 2011-2014, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef WNM_AP_H #define WNM_AP_H struct sta_info; int ieee802_11_rx_wnm_action_ap(struct hostapd_d...
903
31.285714
72
h
hostap
hostap-master/src/ap/vlan_full.c
/* * hostapd / VLAN initialization - full dynamic VLAN * Copyright 2003, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * 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. */ #include ...
17,714
22.525896
88
c
hostap
hostap-master/src/ap/ieee802_11_auth.h
/* * hostapd / IEEE 802.11 authentication (ACL) * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef IEEE802_11_AUTH_H #define IEEE802_11_AUTH_H enum { HOSTAPD_ACL_REJECT = 0, HOSTAPD_ACL_ACCEPT = ...
1,039
30.515152
71
h
hostap
hostap-master/src/ap/dhcp_snoop.c
/* * DHCP snooping for Proxy ARP * Copyright (c) 2014, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include <netinet/ip.h> #include <netinet/udp.h> #include "utils/common.h" #include "l2_packet/l2_p...
3,781
20.011111
82
c
hostap
hostap-master/src/ap/taxonomy.c
/* * hostapd / Client taxonomy * Copyright (c) 2015 Google, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. * * Parse a series of IEs, as in Probe Request or (Re)Association Request frames, * and render them to a descriptive string. The tag number of ...
7,603
25.041096
80
c
hostap
hostap-master/src/ap/vlan_ioctl.c
/* * hostapd / VLAN ioctl API * Copyright 2003, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * 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. */ #include "utils/includes.h" #inclu...
3,838
23.608974
71
c
hostap
hostap-master/src/ap/vlan.h
/* * hostapd / VLAN definition * Copyright (c) 2015, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef VLAN_H #define VLAN_H #define MAX_NUM_TAGGED_VLAN 32 struct vlan_description { int notempty; /* 0 : no vlan informatio...
727
22.483871
73
h
hostap
hostap-master/src/ap/wps_hostapd.h
/* * hostapd / WPS integration * Copyright (c) 2008-2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef WPS_HOSTAPD_H #define WPS_HOSTAPD_H #ifdef CONFIG_WPS int hostapd_init_wps(struct hostapd_data *hapd, struc...
2,856
29.72043
79
h
hostap
hostap-master/src/ap/wpa_auth.h
/* * hostapd - IEEE 802.11i-2004 / WPA Authenticator * Copyright (c) 2004-2015, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef WPA_AUTH_H #define WPA_AUTH_H #include "common/defs.h" #include "common/eapol_common.h" #incl...
13,052
35.157895
79
h
hostap
hostap-master/src/ap/pmksa_cache_auth.c
/* * hostapd - PMKSA cache for IEEE 802.11i RSN * Copyright (c) 2004-2008, 2012-2015, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/eloop.h" #include "eapol_...
15,927
25.197368
79
c
hostap
hostap-master/src/ap/ieee802_11.h
/* * hostapd / IEEE 802.11 Management * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef IEEE802_11_H #define IEEE802_11_H struct hostapd_iface; struct hostapd_data; struct sta_info; struct hostapd...
5,657
38.02069
80
h
hostap
hostap-master/src/ap/ap_config.h
/* * hostapd / Configuration definitions and helpers functions * Copyright (c) 2003-2015, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef HOSTAPD_CONFIG_H #define HOSTAPD_CONFIG_H #include "common/defs.h" #include "utils/...
17,978
23.132886
74
h
hostap
hostap-master/src/ap/ap_list.h
/* * hostapd / AP table * Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi> * Copyright (c) 2003-2004, Instant802 Networks, Inc. * Copyright (c) 2006, Devicescape Software, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef AP_LIST_H #define A...
1,532
24.983051
71
h
hostap
hostap-master/src/ap/preauth_auth.c
/* * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #ifdef CONFIG_RSN_PREAUTH #include "utils/common.h" #inc...
6,626
23.186131
79
c
hostap
hostap-master/src/ap/authsrv.c
/* * Authentication server setup * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "crypto/tls.h" #include "eap_server/eap.h" #include "eap_s...
6,527
26.2
71
c
hostap
hostap-master/src/ap/ctrl_iface_ap.h
/* * Control interface for shared AP commands * Copyright (c) 2004-2013, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef CTRL_IFACE_AP_H #define CTRL_IFACE_AP_H int hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd, ...
1,391
36.621622
79
h
hostap
hostap-master/src/ap/ap_drv_ops.h
/* * hostapd - Driver operations * Copyright (c) 2009-2014, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef AP_DRV_OPS #define AP_DRV_OPS enum wpa_driver_if_type; struct wpa_bss_params; struct wpa_driver_scan_params; stru...
12,540
34.729345
80
h
hostap
hostap-master/src/ap/ctrl_iface_ap.c
/* * Control interface for shared AP commands * Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_defs.h" #include "common/s...
15,815
23.635514
79
c
hostap
hostap-master/src/ap/mbo_ap.c
/* * hostapd - MBO * Copyright (c) 2016, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_defs.h" #include "common/ieee802_11_common.h" #include "hos...
5,349
20.836735
87
c
hostap
hostap-master/src/ap/neighbor_db.c
/* * hostapd / Neighboring APs DB * Copyright(c) 2013 - 2016 Intel Mobile Communications GmbH. * Copyright(c) 2011 - 2016 Intel Corporation. All rights reserved. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "util...
2,965
20.649635
75
c
hostap
hostap-master/src/ap/dfs.h
/* * DFS - Dynamic Frequency Selection * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi> * Copyright (c) 2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef DFS_H #define DFS_H int hostapd_handle_dfs(struct hostapd_ifac...
1,099
34.483871
80
h
hostap
hostap-master/src/ap/beacon.h
/* * hostapd / IEEE 802.11 Management: Beacon and Probe Request/Response * Copyright (c) 2002-2004, Instant802 Networks, Inc. * Copyright (c) 2005-2006, Devicescape Software, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef BEACON_H #define ...
1,280
36.676471
80
h
hostap
hostap-master/src/ap/vlan_init.h
/* * hostapd / VLAN initialization * Copyright 2003, Instant802 Networks, Inc. * Copyright 2005, Devicescape Software, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef VLAN_INIT_H #define VLAN_INIT_H #ifndef CONFIG_NO_VLAN int vlan_init(str...
1,118
23.866667
77
h
hostap
hostap-master/src/ap/p2p_hostapd.c
/* * hostapd / P2P integration * Copyright (c) 2009-2010, Atheros Communications * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_defs.h" #include "p2p/p2p.h" #include "hos...
2,632
22.096491
76
c
hostap
hostap-master/src/ap/tkip_countermeasures.c
/* * hostapd / TKIP countermeasures * Copyright (c) 2002-2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/eloop.h" #include "common/ieee802_11_defs.h" #in...
2,840
25.801887
77
c
hostap
hostap-master/src/ap/hs20.h
/* * Hotspot 2.0 AP ANQP processing * Copyright (c) 2011-2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef HS20_H #define HS20_H struct hostapd_data; u8 * hostapd_eid_hs20_indication(struct hostapd_data *hapd, u8 *eid...
650
27.304348
73
h
hostap
hostap-master/src/ap/mbo_ap.h
/* * MBO related functions and structures * Copyright (c) 2016, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef MBO_AP_H #define MBO_AP_H struct hostapd_data; struct sta_info; struct ieee802_11_elems; #ifdef CONFIG_MBO v...
1,184
21.788462
76
h
hostap
hostap-master/src/ap/ndisc_snoop.h
/* * Neighbor Discovery snooping for Proxy ARP * Copyright (c) 2014, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef NDISC_SNOOP_H #define NDISC_SNOOP_H #if defined(CONFIG_PROXYARP) && defined(CONFIG_IPV6) int ndisc_snoop...
838
21.675676
71
h
hostap
hostap-master/src/ap/ap_list.c
/* * hostapd / AP table * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi> * Copyright (c) 2003-2004, Instant802 Networks, Inc. * Copyright (c) 2006, Devicescape Software, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h"...
6,983
21.313099
79
c
hostap
hostap-master/src/ap/ieee802_11_auth.c
/* * hostapd / IEEE 802.11 authentication (ACL) * Copyright (c) 2003-2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. * * Access control list for IEEE 802.11 authentication can uses statically * configured ACL from configuratio...
18,436
25.604618
79
c
hostap
hostap-master/src/ap/ap_mlme.c
/* * hostapd / IEEE 802.11 MLME * Copyright 2003-2006, Jouni Malinen <j@w1.fi> * Copyright 2003-2004, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h...
5,776
29.088542
79
c
hostap
hostap-master/src/ap/ap_drv_ops.c
/* * hostapd - Driver operations * Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_defs.h" #include "common/hw_features_co...
23,638
26.016
79
c
hostap
hostap-master/src/ap/pmksa_cache_auth.h
/* * hostapd - PMKSA cache for IEEE 802.11i RSN * Copyright (c) 2004-2008, 2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef PMKSA_CACHE_H #define PMKSA_CACHE_H #include "radius/radius.h" /** * struct rsn_pmksa_cach...
2,246
31.1
80
h
hostap
hostap-master/src/ap/vlan.c
/* * hostapd / VLAN definition * Copyright (c) 2016, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "ap/vlan.h" /* compare the two arguments, NULL is treated as emp...
756
20.628571
72
c
hostap
hostap-master/src/ap/hw_features.h
/* * hostapd / Hardware feature query and different modes * Copyright 2002-2003, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * Copyright (c) 2008-2011, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. ...
1,972
24.623377
77
h
hostap
hostap-master/src/ap/wpa_auth_ie.h
/* * hostapd - WPA/RSN IE and KDE definitions * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef WPA_AUTH_IE_H #define WPA_AUTH_IE_H struct wpa_eapol_ie_parse { const u8 *wpa_ie; size_t wpa_ie_le...
1,296
21.362069
71
h
hostap
hostap-master/src/ap/ndisc_snoop.c
/* * Neighbor Discovery snooping for Proxy ARP * Copyright (c) 2014, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include <netinet/ip6.h> #include <netinet/icmp6.h> #include "utils/common.h" #includ...
4,378
22.543011
85
c
hostap
hostap-master/src/ap/wmm.c
/* * hostapd / WMM (Wi-Fi Multimedia) * Copyright 2002-2003, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * 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. */ #include "utils/inclu...
10,161
29.981707
79
c
hostap
hostap-master/src/ap/wmm.h
/* * hostapd / WMM (Wi-Fi Multimedia) * Copyright 2002-2003, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef WME_H #define WME_H struct ieee80211_mgmt; struct wmm_tspec...
653
26.25
71
h
hostap
hostap-master/src/ap/ieee802_11_shared.c
/* * hostapd / IEEE 802.11 Management * Copyright (c) 2002-2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_defs.h" #include "hostapd.h" #incl...
16,082
23.629403
79
c
hostap
hostap-master/src/ap/eap_user_db.c
/* * hostapd / EAP user database * Copyright (c) 2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #ifdef CONFIG_SQLITE #include <sqlite3.h> #endif /* CONFIG_SQLITE */ #include "common.h" #include "eap_c...
7,869
26.809187
80
c
hostap
hostap-master/src/ap/x_snoop.h
/* * Generic Snooping for Proxy ARP * Copyright (c) 2014, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef X_SNOOP_H #define X_SNOOP_H #include "l2_packet/l2_packet.h" #ifdef CONFIG_PROXYARP int x_snoop_init(struct hostap...
1,326
22.280702
71
h
hostap
hostap-master/src/ap/rrm.c
/* * hostapd / Radio Measurement (RRM) * Copyright(c) 2013 - 2016 Intel Mobile Communications GmbH. * Copyright(c) 2011 - 2016 Intel Corporation. All rights reserved. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include ...
14,078
24.833028
85
c
hostap
hostap-master/src/ap/wpa_auth_glue.c
/* * hostapd / WPA authenticator glue code * Copyright (c) 2002-2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_defs.h" #include "common/sae....
18,981
25.697609
77
c
hostap
hostap-master/src/ap/peerkey_auth.c
/* * hostapd - PeerKey for Direct Link Setup (DLS) * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/eloop.h" #include "crypto/sha1.h"...
10,632
25.783375
72
c
hostap
hostap-master/src/ap/acs.h
/* * ACS - Automatic Channel Selection module * Copyright (c) 2011, Atheros Communications * Copyright (c) 2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef ACS_H #define ACS_H #ifdef CONFIG_ACS enum hostapd_chan_sta...
652
22.321429
107
h
hostap
hostap-master/src/ap/rrm.h
/* * hostapd / Radio Measurement (RRM) * Copyright(c) 2013 - 2016 Intel Mobile Communications GmbH. * Copyright(c) 2011 - 2016 Intel Corporation. All rights reserved. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef RRM_H #define RRM_H /* * Max...
983
32.931034
76
h
hostap
hostap-master/src/ap/accounting.h
/* * hostapd / RADIUS Accounting * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef ACCOUNTING_H #define ACCOUNTING_H #ifdef CONFIG_NO_ACCOUNTING static inline int accounting_sta_get_id(struct host...
1,147
23.956522
75
h
hostap
hostap-master/src/ap/gas_serv.h
/* * Generic advertisement service (GAS) server * Copyright (c) 2011-2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef GAS_SERV_H #define GAS_SERV_H /* First 16 ANQP InfoIDs can be included in the optimized bitmap */ #...
2,936
33.964286
76
h
hostap
hostap-master/src/ap/taxonomy.h
/* * hostapd / Station client taxonomy * Copyright (c) 2015 Google, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef TAXONOMY_H #define TAXONOMY_H void taxonomy_sta_info_probe_req(const struct hostapd_data *hapd, struct sta_info *sta, ...
766
29.68
73
h
hostap
hostap-master/src/ap/bss_load.c
/* * BSS Load Element / Channel Utilization * Copyright (c) 2014, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/eloop.h" #include "hostapd.h" #include "bss_lo...
1,642
23.893939
73
c
hostap
hostap-master/src/ap/ieee802_11_vht.c
/* * hostapd / IEEE 802.11ac VHT * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of BSD license * * See README and COPYING for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "commo...
13,200
25.668687
79
c
hostap
hostap-master/src/ap/vlan_init.c
/* * hostapd / VLAN initialization * Copyright 2003, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * 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. */ #include "utils/includes.h" ...
5,642
21.662651
76
c
hostap
hostap-master/src/ap/vlan_util.h
/* * hostapd / VLAN netlink/ioctl api * Copyright (c) 2012, Michael Braun <michael-dev@fami-braun.de> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef VLAN_UTIL_H #define VLAN_UTIL_H struct hostapd_data; struct hostapd_vlan; struct full_dynamic_v...
980
29.65625
73
h
hostap
hostap-master/src/ap/accounting.c
/* * hostapd / RADIUS Accounting * Copyright (c) 2002-2009, 2012-2015, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/eloop.h" #include "eapol_auth/eapol_auth...
14,810
26.176147
94
c
hostap
hostap-master/src/pae/ieee802_1x_cp.c
/* * IEEE 802.1X-2010 Controlled Port of PAE state machine - CP state machine * Copyright (c) 2013-2014, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/eloop.h...
16,244
21.345254
79
c
hostap
hostap-master/src/pae/ieee802_1x_kay_i.h
/* * IEEE 802.1X-2010 Key Agree Protocol of PAE state machine * Copyright (c) 2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef IEEE802_1X_KAY_I_H #define IEEE802_1X_KAY_I_H #include "utils/list.h" #include "common/def...
9,238
20.841608
78
h
hostap
hostap-master/src/pae/ieee802_1x_secy_ops.h
/* * SecY Operations * Copyright (c) 2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef IEEE802_1X_SECY_OPS_H #define IEEE802_1X_SECY_OPS_H #include "common/defs.h" #include "common/ieee802_1x_defs.h" struct ieee802_1...
2,444
39.75
80
h
hostap
hostap-master/src/pae/ieee802_1x_key.c
/* * IEEE 802.1X-2010 Key Hierarchy * Copyright (c) 2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. * * SAK derivation specified in IEEE Std 802.1X-2010, Clause 6.2 */ #include "utils/includes.h" #include "utils/common.h" #inc...
4,400
22.163158
75
c
hostap
hostap-master/src/pae/ieee802_1x_key.h
/* * IEEE 802.1X-2010 Key Hierarchy * Copyright (c) 2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef IEEE802_1X_KEY_H #define IEEE802_1X_KEY_H int ieee802_1x_cak_128bits_aes_cmac(const u8 *msk, const u8 *mac1, ...
928
33.407407
71
h
hostap
hostap-master/src/pae/ieee802_1x_cp.h
/* * IEEE Std 802.1X-2010 Controlled Port of PAE state machine - CP state machine * Copyright (c) 2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef IEEE802_1X_CP_H #define IEEE802_1X_CP_H #include "common/defs.h" #incl...
1,666
39.658537
80
h
hostap
hostap-master/src/pae/ieee802_1x_kay.h
/* * IEEE 802.1X-2010 Key Agree Protocol of PAE state machine * Copyright (c) 2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef IEEE802_1X_KAY_H #define IEEE802_1X_KAY_H #include "utils/list.h" #include "common/defs.h"...
7,422
26.697761
78
h
hostap
hostap-master/tests/test-rsa-sig-ver.c
/* * Testing tool for RSA PKCS #1 v1.5 signature verification * Copyright (c) 2014, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "crypto/crypto.h" #include "tls/rs...
4,281
20.41
78
c
hostap
hostap-master/tests/test-aes.c
/* * Test program for AES * Copyright (c) 2003-2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/crypto.h" #include "crypto/aes_wrap.h" #define BLOCK_SIZE 16 static...
15,896
24.4352
133
c
hostap
hostap-master/tests/test-asn1.c
/* * Testing tool for ASN.1 routines * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #include "common.h" #include "tls/asn1.h" static const char * asn1_class_str(int class) { sw...
4,437
21.642857
71
c
hostap
hostap-master/tests/hwsim/tnc/hostap2_imv.c
/* * Example IMV for TNC testing * Copyright (c) 2014, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #include "common.h" #include "common/tnc.h" static int initialized = 0; static TNC_IMVID my_id = -1; st...
5,056
23.789216
71
c
hostap
hostap-master/tests/hwsim/tnc/hostap2_imc.c
/* * Example IMC for TNC testing * Copyright (c) 2014, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #include "common.h" #include "common/tnc.h" static int initialized = 0; static TNC_IMCID my_id = -1; st...
4,427
23.065217
71
c
hostap
hostap-master/wlantest/bip.c
/* * BIP * Copyright (c) 2010-2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_defs.h" #include "crypto/aes_wrap.h" #include "wlantest.h" u8...
3,198
22.873134
77
c
hostap
hostap-master/wlantest/process.c
/* * Received frame processing * Copyright (c) 2010, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/crc32.h" #include "utils/radiotap.h" #include "utils/radio...
9,502
22.464198
79
c
hostap
hostap-master/wlantest/inject.c
/* * wlantest frame injection * Copyright (c) 2010-2015, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/defs.h" #include "common/ieee802_11_defs.h" #include ...
8,656
24.387097
78
c
hostap
hostap-master/wlantest/readpcap.c
/* * PCAP capture file reader * Copyright (c) 2010, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include <pcap.h> #include "utils/common.h" #include "wlantest.h" static void write_pcap_with_radio...
4,339
21.842105
71
c
hostap
hostap-master/wlantest/gcmp.c
/* * GCM with GMAC Protocol (GCMP) * Copyright (c) 2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_defs.h" #include "crypto/aes.h" #include "...
4,077
24.329193
79
c
hostap
hostap-master/wlantest/monitor.c
/* * Linux packet socket monitor * Copyright (c) 2010, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include <net/if.h> #include <netpacket/packet.h> #include "utils/common.h" #include "utils/eloop....
3,331
21.362416
73
c
hostap
hostap-master/wlantest/wired.c
/* * Received frame processing for wired interface * Copyright (c) 2010, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include <net/ethernet.h> #include <netinet/ip.h> #include <netinet/udp.h> #incl...
6,291
20.771626
79
c
hostap
hostap-master/wlantest/rx_ip.c
/* * Received Data frame processing for IPv4 packets * Copyright (c) 2010, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include <netinet/ip.h> #include <netinet/ip_icmp.h> #include "utils/common.h"...
4,395
23.696629
79
c
hostap
hostap-master/wlantest/rx_tdls.c
/* * Received Data frame processing for TDLS packets * Copyright (c) 2010, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "crypto/sha256.h" #include "crypto/crypto.h...
17,604
27.441034
77
c
hostap
hostap-master/wlantest/sta.c
/* * STA list * Copyright (c) 2010-2015, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/defs.h" #include "common/ieee802_11_defs.h" #include "common/ieee802_...
6,780
30.985849
79
c
hostap
hostap-master/wlantest/writepcap.c
/* * PCAP capture file writer * Copyright (c) 2010, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include <pcap.h> #include <pcap-bpf.h> #include "utils/common.h" #include "wlantest.h" #include "com...
8,360
21.597297
75
c
hostap
hostap-master/wlantest/ccmp.c
/* * CTR with CBC-MAC Protocol (CCMP) * Copyright (c) 2010-2012, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_defs.h" #include "crypto/aes.h" #i...
9,220
24.057065
78
c
hostap
hostap-master/wlantest/rx_data.c
/* * Received Data frame processing * Copyright (c) 2010-2015, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/defs.h" #include "common/ieee802_11_defs.h" #in...
18,411
26.812689
94
c
hostap
hostap-master/wlantest/wlantest_ctrl.h
/* * wlantest control interface * Copyright (c) 2010-2013, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef WLANTEST_CTRL_H #define WLANTEST_CTRL_H #define WLANTEST_SOCK_NAME "w1.fi.wlantest" #define WLANTEST_CTRL_MAX_CMD_...
4,978
27.947674
71
h
hostap
hostap-master/wlantest/wlantest.h
/* * wlantest - IEEE 802.11 protocol monitoring and testing tool * Copyright (c) 2010-2013, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef WLANTEST_H #define WLANTEST_H #include "utils/list.h" #include "common/wpa_common...
9,264
28.227129
79
h
hostap
hostap-master/wlantest/bss.c
/* * BSS list * Copyright (c) 2010, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/defs.h" #include "common/ieee802_11_defs.h" #include "common/ieee802_11_co...
9,792
27.385507
72
c
hostap
hostap-master/wlantest/tkip.c
/* * Temporal Key Integrity Protocol (CCMP) * Copyright (c) 2010, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/crc32.h" #include "common/ieee802_11_defs.h" ...
11,410
25.537209
79
c
hostap
hostap-master/hs20/client/est.c
/* * Hotspot 2.0 OSU client - EST client * Copyright (c) 2012-2014, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #include <openssl/err.h> #include <openssl/evp.h> #include <openssl/pem.h> #include <openssl/...
18,545
23.274869
106
c
hostap
hostap-master/hs20/client/osu_client.h
/* * Hotspot 2.0 - OSU client * Copyright (c) 2013-2014, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef OSU_CLIENT_H #define OSU_CLIENT_H #define SPP_NS_URI "http://www.wi-fi.org/specifications/hotspot2dot0/v1.0/spp" #de...
4,006
32.672269
78
h
hostap
hostap-master/hs20/server/spp_server.h
/* * Hotspot 2.0 SPP server * Copyright (c) 2012-2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef SPP_SERVER_H #define SPP_SERVER_H struct hs20_svc { const void *ctx; struct xml_node_ctx *xml; char *root_dir; FILE...
847
24.69697
80
h
hostap
hostap-master/eap_example/eap_example_server.c
/* * Example application showing how EAP server code from hostapd can be used as * a library. * Copyright (c) 2007, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/tls.h...
6,416
20.606061
78
c
hostap
hostap-master/eap_example/eap_example.c
/* * Example application showing how EAP peer and server code from * wpa_supplicant/hostapd can be used as a library. This example program * initializes both an EAP server and an EAP peer entities and then runs * through an EAP-PEAP/MSCHAPv2 authentication. * Copyright (c) 2007, Jouni Malinen <j@w1.fi> * * This ...
1,143
22.833333
72
c
hostap
hostap-master/hostapd/hlr_auc_gw.c
/* * HLR/AuC testing gateway for hostapd EAP-SIM/AKA database/authenticator * Copyright (c) 2005-2007, 2012-2016, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. * * This is an example implementation of the EAP-SIM/AKA database/authe...
24,556
21.123423
79
c
hostap
hostap-master/hostapd/ctrl_iface.h
/* * hostapd / UNIX domain socket -based control interface * Copyright (c) 2004, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef CTRL_IFACE_H #define CTRL_IFACE_H #ifndef CONFIG_NO_CTRL_IFACE int hostapd_ctrl_iface_init(s...
998
23.975
73
h
hostap
hostap-master/hostapd/main.c
/* * hostapd / main() * Copyright (c) 2002-2016, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #ifndef CONFIG_NATIVE_WINDOWS #include <syslog.h> #include <grp.h> #endif /* CONFIG_NATIVE_WINDOWS */ #i...
21,885
23.290788
79
c
hostap
hostap-master/hostapd/eap_register.c
/* * EAP method registration * Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #include "common.h" #include "eap_server/eap_methods.h" #include "eap_register.h" /** * eap_server_r...
3,209
20.258278
78
c
null
matplotlib-main/src/py_exceptions.h
/* -*- mode: c++; c-basic-offset: 4 -*- */ #ifndef MPL_PY_EXCEPTIONS_H #define MPL_PY_EXCEPTIONS_H #include <exception> #include <stdexcept> namespace py { class exception : public std::exception { public: const char *what() const throw() { return "python error has been set"; } }; } #define CA...
3,915
52.643836
78
h
null
matplotlib-main/src/py_adaptors.h
/* -*- mode: c++; c-basic-offset: 4 -*- */ #ifndef MPL_PY_ADAPTORS_H #define MPL_PY_ADAPTORS_H #define PY_SSIZE_T_CLEAN /*************************************************************************** * This module contains a number of C++ classes that adapt Python data * structures to C++ and Agg-friendly interfaces. ...
5,893
22.670683
93
h
null
matplotlib-main/src/agg_workaround.h
#ifndef MPL_AGG_WORKAROUND_H #define MPL_AGG_WORKAROUND_H #include "agg_pixfmt_rgba.h" /********************************************************************** WORKAROUND: This class is to workaround a bug in Agg SVN where the blending of RGBA32 pixels does not preserve enough precision */ template<class ColorT, cl...
3,501
39.72093
122
h
null
matplotlib-main/src/_tkmini.h
/* Small excerpts from the Tcl / Tk 8.6 headers * * License terms copied from: * http://www.tcl.tk/software/tcltk/license.html * as of 20 May 2016. * * Copyright (c) 1987-1994 The Regents of the University of California. * Copyright (c) 1993-1996 Lucent Technologies. * Copyright (c) 1994-1998 Sun Microsystems, ...
4,247
37.27027
78
h
null
matplotlib-main/src/mplutils.h
/* -*- mode: c++; c-basic-offset: 4 -*- */ /* Small utilities that are shared by most extension modules. */ #ifndef MPLUTILS_H #define MPLUTILS_H #define PY_SSIZE_T_CLEAN #include <Python.h> #include <stdint.h> #ifdef _POSIX_C_SOURCE # undef _POSIX_C_SOURCE #endif #ifndef _AIX #ifdef _XOPEN_SOURCE # undef _XO...
2,246
21.47
80
h
null
matplotlib-main/src/numpy_cpp.h
/* -*- mode: c++; c-basic-offset: 4 -*- */ #ifndef MPL_NUMPY_CPP_H #define MPL_NUMPY_CPP_H #define PY_SSIZE_T_CLEAN /*************************************************************************** * This file is based on original work by Mark Wiebe, available at: * * http://github.com/mwiebe/numpy-cpp * * However,...
12,413
20.440415
100
h
null
matplotlib-main/src/checkdep_freetype2.c
#ifdef __has_include #if !__has_include(<ft2build.h>) #error "FreeType version 2.3 or higher is required. \ You may unset the system_freetype entry in mplsetup.cfg to let Matplotlib download it." #endif #endif #include <ft2build.h> #include FT_FREETYPE_H #define XSTR(x) STR(x) #define STR(x) #x #pragma messa...
664
32.25
87
c