Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 57) sorted by relevance

123

/hostap-latest/tests/fuzzing/eapol-supp/
Deapol-supp.c56 static void * get_network_ctx(void *arg) in get_network_ctx() argument
62 static void set_state(void *arg, enum wpa_states state) in set_state() argument
67 static void deauthenticate(void *arg, u16 reason_code) in deauthenticate() argument
72 static u8 * alloc_eapol(void *arg, u8 type, in alloc_eapol() argument
99 static int ether_send(void *arg, const u8 *dest, u16 proto, in ether_send() argument
118 static int init_wpa(struct arg_ctx *arg) in init_wpa() argument
128 ctx->ctx = arg; in init_wpa()
129 ctx->msg_ctx = arg; in init_wpa()
137 arg->wpa = wpa_sm_init(ctx); in init_wpa()
138 if (!arg->wpa) in init_wpa()
[all …]
/hostap-latest/wpa_supplicant/doc/docbook/
Deapol_test.sgml21 <arg>-nWS</arg>
22 <arg>-c<replaceable>config file</replaceable></arg>
23 <arg>-a<replaceable>server IP address</replaceable></arg>
24 <arg>-A<replaceable>client IP address</replaceable></arg>
25 <arg>-p<replaceable>UDP port</replaceable></arg>
26 <arg>-s<replaceable>shared secret</replaceable></arg>
27 <arg>-r<replaceable>re-authentications</replaceable></arg>
28 <arg>-t<replaceable>timeout</replaceable></arg>
29 <arg>-C<replaceable>Connect-Info</replaceable></arg>
30 <arg>-M<replaceable>MAC address</replaceable></arg>
[all …]
Dwpa_gui.sgml21 <arg>-p <replaceable>path to ctrl sockets</replaceable></arg>
22 <arg>-i <replaceable>ifname</replaceable></arg>
23 <arg>-m <replaceable>seconds</replaceable></arg>
24 <arg>-t</arg>
25 <arg>-q</arg>
Dwpa_cli.sgml21 <arg>-p <replaceable>path to ctrl sockets</replaceable></arg>
22 <arg>-g <replaceable>path to global ctrl_interface socket</replaceable></arg>
23 <arg>-i <replaceable>ifname</replaceable></arg>
24 <arg>-hvB</arg>
25 <arg>-a <replaceable>action file</replaceable></arg>
26 <arg>-P <replaceable>pid file</replaceable></arg>
27 <arg>-G <replaceable>ping interval</replaceable></arg>
28 <arg><replaceable>command ...</replaceable></arg>
Dwpa_priv.sgml21 <arg>-c <replaceable>ctrl path</replaceable></arg>
22 <arg>-Bdd</arg>
23 <arg>-P <replaceable>pid file</replaceable></arg>
24 <arg>driver:ifname <replaceable>[driver:ifname ...]</replaceable></arg>
Dwpa_passphrase.sgml19 <arg><replaceable>ssid</replaceable></arg>
20 <arg><replaceable>passphrase</replaceable></arg>
Dwpa_supplicant.sgml19 <arg>-BddfhKLqqsTtuvW</arg>
20 <arg>-i<replaceable>ifname</replaceable></arg>
21 <arg>-c<replaceable>config file</replaceable></arg>
22 <arg>-D<replaceable>driver</replaceable></arg>
23 <arg>-P<replaceable>PID_file</replaceable></arg>
24 <arg>-f<replaceable>output file</replaceable></arg>
25 <arg>-I<replaceable>additional config file</replaceable></arg>
/hostap-latest/tests/hwsim/
Dtshark.py33 arg = ["tshark", "-r", filename,
36 arg.append('-Tfields')
38 arg.append('-e')
39 arg.append(d)
41 arg.append('-V')
42 cmd = subprocess.Popen(arg, stdout=subprocess.PIPE,
73 arg[3] = '-R'
74 cmd = subprocess.Popen(arg, stdout=subprocess.PIPE,
109 arg = ["tshark", "-r", filename,
111 arg.append('-Tjson')
[all …]
Dtest_p2p_service.py401 arg = ev.split(' ')
403 …if "OK" not in dev[0].global_request("P2P_SERV_DISC_RESP %s %s %s %s" % (arg[2], arg[3], arg[4], r…
427 arg = ev.split(' ')
429 …if "OK" not in dev[0].global_request("P2P_SERV_DISC_RESP %s %s %s %s" % (arg[2], arg[3], arg[4], r…
443 for cmd in ["%s%s%s%s" % (arg[2], arg[3], arg[4], resp),
444 "%s %s %s %s" % ("0", arg[3], arg[4], resp),
445 "%s %s %s %s" % (arg[2], "foo", arg[4], resp),
446 "%s %s%s%s" % (arg[2], arg[3], arg[4], resp),
447 "%s %s %s%s" % (arg[2], arg[3], arg[4], resp),
448 "%s %s %s %s" % (arg[2], arg[3], arg[4], "12345"),
[all …]
/hostap-latest/src/ap/
Dvlan_full.c249 unsigned long arg[2]; in br_delbr() local
261 arg[0] = BRCTL_DEL_BRIDGE; in br_delbr()
262 arg[1] = (unsigned long) br_name; in br_delbr()
264 if (ioctl(fd, SIOCGIFBR, arg) < 0 && errno != ENXIO) { in br_delbr()
288 unsigned long arg[4]; in br_addbr() local
306 arg[0] = BRCTL_ADD_BRIDGE; in br_addbr()
307 arg[1] = (unsigned long) br_name; in br_addbr()
309 if (ioctl(fd, SIOCGIFBR, arg) < 0) { in br_addbr()
327 arg[0] = BRCTL_SET_BRIDGE_FORWARD_DELAY; in br_addbr()
328 arg[1] = 1; in br_addbr()
[all …]
/hostap-latest/wpa_supplicant/dbus/
Ddbus_new_introspect.c69 const struct wpa_dbus_argument *arg; in add_entry() local
76 for (arg = args; arg && arg->name; arg++) { in add_entry()
77 add_arg(xml, arg->name, arg->type, in add_entry()
78 include_dir ? (arg->dir == ARG_IN ? "in" : "out") : in add_entry()
Ddbus_new.c2850 struct network_handler_args *arg; in wpas_dbus_register_network() local
2884 arg = os_zalloc(sizeof(struct network_handler_args)); in wpas_dbus_register_network()
2885 if (!arg) { in wpas_dbus_register_network()
2891 arg->wpa_s = wpa_s; in wpas_dbus_register_network()
2892 arg->ssid = ssid; in wpas_dbus_register_network()
2894 wpas_dbus_register(obj_desc, arg, wpa_dbus_free, NULL, in wpas_dbus_register_network()
3095 struct bss_handler_args *arg; in wpas_dbus_register_bss() local
3115 arg = os_zalloc(sizeof(struct bss_handler_args)); in wpas_dbus_register_bss()
3116 if (!arg) { in wpas_dbus_register_bss()
3121 arg->wpa_s = wpa_s; in wpas_dbus_register_bss()
[all …]
Ddbus_new_helpers.c128 const struct wpa_dbus_argument *arg; in is_signature_correct() local
133 for (arg = method_dsc->args; arg && arg->name; arg++) { in is_signature_correct()
134 if (arg->dir == ARG_IN) { in is_signature_correct()
137 ret = os_snprintf(pos, blen, "%s", arg->type); in is_signature_correct()
/hostap-latest/wlantest/
Dwlantest_cli.c354 int arg = get_cmd_arg_num(str, pos); in complete_clear_sta_counters() local
358 switch (arg) { in complete_clear_sta_counters()
468 int arg = get_cmd_arg_num(str, pos); in complete_clear_tdls_counters() local
472 switch (arg) { in complete_clear_tdls_counters()
603 int arg = get_cmd_arg_num(str, pos); in complete_get_sta_counter() local
608 switch (arg) { in complete_get_sta_counter()
704 int arg = get_cmd_arg_num(str, pos); in complete_get_bss_counter() local
708 switch (arg) { in complete_get_bss_counter()
823 int arg = get_cmd_arg_num(str, pos); in complete_get_tdls_counter() local
828 switch (arg) { in complete_get_tdls_counter()
[all …]
/hostap-latest/wpa_supplicant/
Dwpa_cli_cmds.c153 int arg = get_cmd_arg_num(str, pos); in wpa_cli_complete_network() local
157 switch (arg) { in wpa_cli_complete_network()
176 int arg = get_cmd_arg_num(str, pos); in wpa_cli_complete_network_id() local
177 if (arg == 1) in wpa_cli_complete_network_id()
364 int arg = get_cmd_arg_num(str, pos); in wpa_cli_complete_set() local
437 if (arg == 1) { in wpa_cli_complete_set()
449 if (arg > 1 && os_strncasecmp(str, "set bssid_filter ", 17) == 0) in wpa_cli_complete_set()
472 int arg = get_cmd_arg_num(str, pos); in wpa_cli_complete_sta() local
475 switch (arg) { in wpa_cli_complete_sta()
569 int arg = get_cmd_arg_num(str, pos); in wpa_cli_complete_deauthenticate() local
[all …]
Dwpa_cli.c444 int arg = get_cmd_arg_num(str, pos); in wpa_cli_complete_help() local
447 switch (arg) { in wpa_cli_complete_help()
505 int arg = get_cmd_arg_num(str, pos); in wpa_cli_complete_set() local
580 if (arg == 1) { in wpa_cli_complete_set()
592 if (arg > 1 && os_strncasecmp(str, "set bssid_filter ", 17) == 0) in wpa_cli_complete_set()
626 int arg = get_cmd_arg_num(str, pos); in wpa_cli_complete_get() local
681 if (arg == 1) { in wpa_cli_complete_get()
1567 int arg = get_cmd_arg_num(str, pos); in wpa_cli_complete_network() local
1571 switch (arg) { in wpa_cli_complete_network()
1591 int arg = get_cmd_arg_num(str, pos); in wpa_cli_complete_network_id() local
[all …]
/hostap-latest/wpa_supplicant/wpa_gui-qt4/
Daddinterface.cpp82 QStringList arg = (*it).split(QChar('\t')); in addInterfaces() local
83 if (arg.size() < 3) in addInterfaces()
89 item->setText(0, arg[0]); in addInterfaces()
90 item->setText(1, arg[1]); in addInterfaces()
91 item->setText(2, arg[2]); in addInterfaces()
Dpeers.cpp1342 QString arg; in ctx_p2p_connect() local
1350 arg = ctx_item->data(peer_role_selected_pin).toString(); in ctx_p2p_connect()
1356 arg.toLocal8Bit().constData()); in ctx_p2p_connect()
1368 "peer device: ") + arg); in ctx_p2p_connect()
1374 arg = input.get_string(); in ctx_p2p_connect()
1376 arg = "pbc"; in ctx_p2p_connect()
1382 arg = input.get_string(); in ctx_p2p_connect()
1390 arg.toLocal8Bit().constData()); in ctx_p2p_connect()
1479 QString arg = ctx_item->data(peer_role_selected_pin).toString(); in ctx_p2p_display_pin_pd() local
1486 arg.toLocal8Bit().constData()); in ctx_p2p_display_pin_pd()
[all …]
/hostap-latest/src/common/
Dcli.c195 int arg = 0, i; in get_cmd_arg_num() local
199 arg++; in get_cmd_arg_num()
205 if (arg > 0) in get_cmd_arg_num()
206 arg--; in get_cmd_arg_num()
207 return arg; in get_cmd_arg_num()
/hostap-latest/hostapd/
Dhostapd_cli.c284 char *arg; in hostapd_cli_exec() local
289 arg = os_malloc(len); in hostapd_cli_exec()
290 if (arg == NULL) in hostapd_cli_exec()
292 os_snprintf(arg, len, "%s %s", arg1, arg2); in hostapd_cli_exec()
293 res = os_exec(program, arg, 1); in hostapd_cli_exec()
294 os_free(arg); in hostapd_cli_exec()
341 int arg = get_cmd_arg_num(str, pos); in hostapd_complete_stations() local
344 switch (arg) { in hostapd_complete_stations()
815 int arg = get_cmd_arg_num(str, pos); in hostapd_cli_complete_help() local
818 switch (arg) { in hostapd_cli_complete_help()
[all …]
Dhostapd_cli_cmds.c81 int arg = get_cmd_arg_num(str, pos); in hostapd_complete_set() local
100 if (arg == 1) { in hostapd_complete_set()
207 int arg = get_cmd_arg_num(str, pos); in hostapd_complete_stations() local
210 switch (arg) { in hostapd_complete_stations()
800 int arg = get_cmd_arg_num(str, pos); in hostapd_complete_get() local
806 if (arg == 1) { in hostapd_complete_get()
/hostap-latest/src/drivers/
Ddriver_nl80211_scan.c32 static int get_noise_for_scan_results(struct nl_msg *msg, void *arg) in get_noise_for_scan_results() argument
41 struct nl80211_noise_info *info = arg; in get_noise_for_scan_results()
870 static int bss_info_handler(struct nl_msg *msg, void *arg) in bss_info_handler() argument
872 struct nl80211_bss_info_arg *_arg = arg; in bss_info_handler()
980 struct nl80211_bss_info_arg arg; in nl80211_get_scan_results() local
993 arg.drv = drv; in nl80211_get_scan_results()
994 arg.res = res; in nl80211_get_scan_results()
995 arg.bssid = bssid; in nl80211_get_scan_results()
996 ret = send_and_recv_resp(drv, msg, bss_info_handler, &arg); in nl80211_get_scan_results()
1055 static int nl80211_dump_scan_handler(struct nl_msg *msg, void *arg) in nl80211_dump_scan_handler() argument
[all …]
Ddriver_macsec_linux.c569 struct cb_arg *arg = (struct cb_arg *) argp; in dump_callback() local
573 if (ret_hdr->nlmsg_type != arg->drv->ctx.macsec_genl_id) in dump_callback()
584 if (nla_get_u32(tb_msg[MACSEC_ATTR_IFINDEX]) != (u32) arg->ifindex) in dump_callback()
587 if (arg->txsa < 4 && !tb_msg[MACSEC_ATTR_TXSA_LIST]) { in dump_callback()
589 } else if (arg->txsa < 4) { in dump_callback()
602 if (nla_get_u8(tb[MACSEC_SA_ATTR_AN]) != arg->txsa) in dump_callback()
606 *arg->pn = nla_get_u32(tb[MACSEC_SA_ATTR_PN]); in dump_callback()
613 if (arg->rxsci == UNUSED_SCI) in dump_callback()
629 if (nla_get_u64(tb[MACSEC_RXSC_ATTR_SCI]) != arg->rxsci) in dump_callback()
646 arg->rxsa) in dump_callback()
[all …]
Ddriver_nl80211.h314 void *arg, int use_existing);
349 int process_global_event(struct nl_msg *msg, void *arg);
350 int process_bss_event(struct nl_msg *msg, void *arg);
/hostap-latest/tests/hwsim/vm/
Dmin-seq.py26 arg = ['./vm-run.sh'] + tests
27 cmd = subprocess.Popen(arg, stdout=subprocess.PIPE)

123