Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 134) sorted by relevance

123456

/hostap-3.7.0/wpa_supplicant/examples/
Dwpas-dbus-new-signals.py31 for path in ifaces:
32 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
89 def scanDone2(success, path=None): argument
90 print("Scan done: success=%s [path=%s]" % (success, path))
148 path = wpas.GetInterface(ifname)
149 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
157 path=path)
161 path=path)
165 path=path)
169 path=path)
[all …]
Ddpp-qrcode.py15 scriptsdir = os.path.dirname(os.path.realpath(sys.modules[__name__].__file__))
16 sys.path.append(os.path.join(scriptsdir, '..', '..', 'wpaspy'))
24 if os.path.isdir(wpas_ctrl):
26 ifaces = [os.path.join(wpas_ctrl, i) for i in os.listdir(wpas_ctrl)]
Dwpas-dbus-new.py30 for path in ifaces:
31 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
123 path = None
125 path = wpas.GetInterface(ifname)
130 path = wpas.CreateInterface({'Ifname': ifname, 'Driver': 'test'})
138 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
145 wpas.RemoveInterface(dbus.ObjectPath(path))
Dwpas-dbus-new-getall.py23 path = wpas.GetInterface(ifname)
24 if_obj = bus.get_object("fi.w1.wpa_supplicant1", path)
28 print("GetAll(fi.w1.wpa_supplicant1.Interface, %s):" % (path))
34 print("GetAll(fi.w1.wpa_supplicant1.Interface.WPS, %s):" % (path))
/hostap-3.7.0/wpa_supplicant/dbus/
Ddbus_new_helpers.c379 const char *path; in message_handler() local
385 path = dbus_message_get_path(message); in message_handler()
387 if (!method || !path || !msg_interface) in message_handler()
391 msg_interface, method, path, in message_handler()
446 os_free(obj_dsc->path); in free_dbus_object_desc()
482 obj_desc->path = os_strdup(dbus_path); in wpa_dbus_ctrl_iface_init()
531 const char *path, const char *ifname, in wpa_dbus_register_object_per_iface() argument
547 obj_desc->path = os_strdup(path); in wpa_dbus_register_object_per_iface()
551 if (!dbus_connection_try_register_object_path(con, path, &vtable, in wpa_dbus_register_object_per_iface()
558 ifname, path, error.name, error.message); in wpa_dbus_register_object_per_iface()
[all …]
Ddbus_new_helpers.h29 char *path; member
121 const char *path, const char *ifname,
126 const char *path);
129 const char *path,
137 const char *path);
140 const char *path, const char *interface,
146 char * wpas_dbus_new_decompose_object_path(const char *path, const char *sep,
Ddbus_new.c374 char net_obj_path[WPAS_DBUS_OBJECT_PATH_MAX], *path; in wpas_dbus_signal_network() local
393 path = net_obj_path; in wpas_dbus_signal_network()
395 &path) || in wpas_dbus_signal_network()
514 char path[WPAS_DBUS_OBJECT_PATH_MAX]; in wpas_dbus_signal_network_enabled_changed() local
518 os_snprintf(path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_network_enabled_changed()
522 wpa_dbus_mark_property_changed(wpa_s->global->dbus, path, in wpas_dbus_signal_network_enabled_changed()
1329 char peer_obj_path[WPAS_DBUS_OBJECT_PATH_MAX], *path; in wpas_dbus_signal_p2p_provision_discovery() local
1386 path = peer_obj_path; in wpas_dbus_signal_p2p_provision_discovery()
1392 &path)) in wpas_dbus_signal_p2p_provision_discovery()
1433 char peer_obj_path[WPAS_DBUS_OBJECT_PATH_MAX], *path; in wpas_dbus_signal_p2p_go_neg_req() local
[all …]
/hostap-3.7.0/tests/hwsim/
Drun-tests.py27 scriptsdir = os.path.dirname(os.path.realpath(sys.modules[__name__].__file__))
28 sys.path.append(os.path.join(scriptsdir, '..', '..', 'wpaspy'))
85 def add_log_file(conn, test, run, type, path): argument
86 if not os.path.exists(path):
89 with open(path, 'rb') as f:
136 output = os.path.abspath(os.path.join(self._logdir, '%s.dat' % (self._testname, )))
150 output = os.path.abspath(os.path.join(self._logdir, '%s.dbus' % (self._testname, )))
165 output = os.path.join(self._logdir, '%s.dmesg' % (self._testname, ))
167 while os.path.exists(output):
168 output = os.path.join(self._logdir, '%s.dmesg-%d' % (self._testname, num))
[all …]
Dtest_dbus.py57 path = wpas.GetInterface(dev.ifname)
58 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
59 return (bus, wpas_obj, path, if_obj)
115 (bus, wpas_obj, path, if_obj) = prepare_dbus(dev[0])
125 logger.debug("GetAll(%s, %s): %s" % (WPAS_DBUS_IFACE, path, str(props)))
129 logger.debug("GetAll(%s, %s): %s" % (WPAS_DBUS_IFACE_WPS, path, str(props)))
179 (bus, wpas_obj, path, if_obj) = prepare_dbus(dev[0])
213 (bus, wpas_obj, path, if_obj) = prepare_dbus(dev[0])
336 (bus, wpas_obj, path, if_obj) = prepare_dbus(dev[0])
358 (bus, wpas_obj, path, if_obj) = prepare_dbus(dev[0])
[all …]
Dtest_macsec.py281 cap_veth0 = os.path.join(params['logdir'], prefix + ".veth0.pcap")
282 cap_veth1 = os.path.join(params['logdir'], prefix + ".veth1.pcap")
283 cap_macsec0 = os.path.join(params['logdir'], prefix + ".macsec0.pcap")
284 cap_macsec1 = os.path.join(params['logdir'], prefix + ".macsec1.pcap")
479 pidfile = os.path.join(params['logdir'], prefix + ".pid")
482 if os.path.exists(pidfile + str(i)):
573 conffile = os.path.join(params['logdir'], prefix + ".conf")
574 pidfile = os.path.join(params['logdir'], prefix + ".pid")
575 logfile0 = os.path.join(params['logdir'], prefix + ".veth0.log")
576 logfile1 = os.path.join(params['logdir'], prefix + ".veth1.log")
[all …]
Dtest_ap_config.py94 with open(os.path.join(params['logdir'], 'hostapd-test.pid'), "r") as f:
109 with open(os.path.join(params['logdir'], 'hostapd-test.pid'), "r") as f:
127 with open(os.path.join(params['logdir'], 'hostapd-test.pid'), "r") as f:
167 prg = os.path.join(params['logdir'], 'alt-hostapd/hostapd/hostapd')
168 if not os.path.exists(prg):
197 if not os.path.exists(pidfile):
213 prg = os.path.join(params['logdir'], 'alt-hostapd/hostapd/hostapd')
214 if not os.path.exists(prg):
269 with open(os.path.join(params['logdir'], 'hostapd-test.pid'), "r") as f:
277 with open(os.path.join(params['logdir'], 'hostapd-test.pid'), "r") as f:
Dtest_wpas_config.py164 config = os.path.join(params['logdir'], 'wpas_config_file.conf')
165 if os.path.exists(config):
303 if os.path.exists(config):
348 if os.path.exists(config):
398 if os.path.exists(config):
443 if os.path.exists(config):
491 if os.path.exists(config):
542 config = os.path.join(params['logdir'],
544 if os.path.exists(config):
621 config = os.path.join(params['logdir'], 'wpas_config_file_sae.conf')
Dtest_tnc.py8 import os.path
82 if not os.path.exists("tnc/libhostap_imc.so"):
101 if not os.path.exists("tnc/libhostap_imc.so"):
115 if not os.path.exists("tnc/libhostap_imc.so"):
183 if not os.path.exists("tnc/libhostap_imc.so"):
Dtest_cert_check.py104 cert_file = os.path.join(params['logdir'], "cert_check_basic.pem")
115 cert_file = os.path.join(params['logdir'], "cert_check_v3.pem")
128 cert_file = os.path.join(params['logdir'], "cert_check_dnsname.pem")
185 cert_file = os.path.join(params['logdir'], "cert_check_dnsname.pem")
241 cert_file = os.path.join(params['logdir'], "cert_check_dnsname_alt.pem")
272 cert_file = os.path.join(params['logdir'], "cert_check_dnsname_cn.pem")
/hostap-3.7.0/src/utils/
Dext_password_file.c20 char *path; /* path of the password file */ member
46 data->path = os_strdup(params); in ext_password_file_init()
47 if (!data->path) { in ext_password_file_init()
67 str_clear_free(data->path); in ext_password_file_deinit()
90 f = fopen(data->path, "r"); in ext_password_file_get()
94 data->path, strerror(errno)); in ext_password_file_get()
Dxml-utils.c64 xml_node_t *root, const char *path) in get_node_iter() argument
70 end = os_strchr(path, '/'); in get_node_iter()
77 if (os_strcasecmp(name, path) == 0) in get_node_iter()
90 const char *path) in get_node() argument
95 search = os_strdup(path); in get_node()
107 const char *path) in get_child_node() argument
114 match = get_node(ctx, node, path); in get_child_node()
340 char *nodename, *value, *path; in add_mo_node() local
359 path = get_node_text(ctx, node, "Path"); in add_mo_node()
360 if (path) in add_mo_node()
[all …]
Dwpa_debug.c133 char *line, *tmp1, *path = NULL; in wpa_debug_open_linux_tracing() local
157 path = tmp_path; in wpa_debug_open_linux_tracing()
164 if (path == NULL) { in wpa_debug_open_linux_tracing()
169 snprintf(buf, sizeof(buf) - 1, "%s/tracing/trace_marker", path); in wpa_debug_open_linux_tracing()
551 int wpa_debug_open_file(const char *path) in wpa_debug_open_file() argument
556 if (!path) in wpa_debug_open_file()
559 if (last_path == NULL || os_strcmp(last_path, path) != 0) { in wpa_debug_open_file()
562 last_path = os_strdup(path); in wpa_debug_open_file()
565 out_fd = open(path, O_CREAT | O_APPEND | O_WRONLY, in wpa_debug_open_file()
593 (void)path; in wpa_debug_open_file()
/hostap-3.7.0/src/wps/
Dhttp_client.c190 char *u, *addr, *port, *path; in http_client_url_parse() local
199 path = os_strchr(addr, '/'); in http_client_url_parse()
201 if (path == NULL) { in http_client_url_parse()
202 path = "/"; in http_client_url_parse()
204 *path = '\0'; /* temporary nul termination for address */ in http_client_url_parse()
205 if (port > path) in http_client_url_parse()
225 if (*path == '\0') { in http_client_url_parse()
227 *path = '/'; in http_client_url_parse()
230 *ret_path = path; in http_client_url_parse()
245 char *u, *path; in http_client_url() local
[all …]
/hostap-3.7.0/wpaspy/
Dwpaspy.py17 def __init__(self, path, port=9877): argument
21 self.path = path
25 if not path.startswith('/'):
27 mode = os.stat(path).st_mode
35 self.dest = path
48 ai_list = socket.getaddrinfo(path, port, socket.AF_INET,
60 print("connect exception ", path, str(port))
/hostap-3.7.0/hostapd/
Dhlr_auc_gw.txt26 hlr_auc_gw [-hu] [-s<socket path>] [-g<triplet file>] [-m<milenage file>] \
32 -s<socket path> = path for UNIX domain socket
34 -g<triplet file> = path for GSM authentication triplets
35 -m<milenage file> = path for Milenage keys
36 -D<DB file> = path to SQLite database
41 following commands in "sqlite3 /path/to/hlr_auc_gw.db":
72 "hlr_auc_gw -D /path/to/hlr_auc_gw.db" can then be used to fetch
/hostap-3.7.0/wpa_supplicant/
Dmain_winsvc.c424 TCHAR *path; in main() local
428 path = os_malloc(MAX_PATH * sizeof(TCHAR)); in main()
429 if (path == NULL) in main()
431 if (!GetModuleFileName(NULL, path, MAX_PATH)) { in main()
434 os_free(path); in main()
438 path = wpa_strdup_tchar(argv[2]); in main()
439 if (path == NULL) in main()
442 ret = register_service(path); in main()
443 os_free(path); in main()
Deapol_test.py17 dir = os.path.dirname(os.path.realpath(sys.modules[__name__].__file__))
18 sys.path.append(os.path.join(dir, '..', 'wpaspy'))
25 self.ctrl = wpaspy.Ctrl(os.path.join(wpas_ctrl, ifname))
28 self.mon = wpaspy.Ctrl(os.path.join(wpas_ctrl, ifname))
/hostap-3.7.0/tests/remote/
Drun-tests.py21 scriptsdir = os.path.dirname(os.path.realpath(sys.modules[__name__].__file__))
22 sys.path.append(os.path.join(scriptsdir, '..', '..', 'wpaspy'))
23 sys.path.append(os.path.join(scriptsdir, '..', 'hwsim'))
133 symlink = os.path.join(log_dir, "current");
134 if os.path.exists(symlink):
136 log_dir = os.path.join(log_dir, time.strftime("%Y_%m_%d_%H_%M_%S"))
137 if not os.path.exists(log_dir):
139 os.symlink(os.path.join("../", log_dir), symlink)
157 file_name = os.path.join(log_dir, 'run-tests.log')
/hostap-3.7.0/wpa_supplicant/examples/p2p/
Dp2p_connect.py62 global path
108 self.path = None
110 self.path = self.wpas.GetInterface(ifname)
117 path = self.wpas.CreateInterface(
129 self.wpas_dbus_interface,self.path)
153 'peer':dbus.ObjectPath(self.path+'/Peers/'+self.addr)}
Dp2p_invite.py48 global path
97 self.path = self.wpas.GetInterface(
107 self.wpas_dbus_interface, self.path)
119 {'peer':dbus.ObjectPath(self.path+'/Peers/'+self.addr)}

123456