Lines Matching refs:local
55 struct sockaddr_in6 local;
58 struct sockaddr_in local;
67 struct sockaddr_un local;
108 ctrl->local.sun_family = AF_UNIX;
111 ret = os_snprintf(ctrl->local.sun_path, sizeof(ctrl->local.sun_path),
115 if (os_snprintf_error(sizeof(ctrl->local.sun_path), ret)) {
121 if (bind(ctrl->s, (struct sockaddr *) &ctrl->local,
122 sizeof(ctrl->local)) < 0) {
130 unlink(ctrl->local.sun_path);
139 chmod(ctrl->local.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
140 chown(ctrl->local.sun_path, AID_SYSTEM, AID_WIFI);
148 unlink(ctrl->local.sun_path);
169 unlink(ctrl->local.sun_path);
194 unlink(ctrl->local.sun_path);
220 unlink(ctrl->local.sun_path);
229 * wpa_ctrl_cleanup() - Delete any local UNIX domain socket files that
302 ctrl->local.sin6_family = AF_INET6;
304 ctrl->local.sin6_addr = in6addr_any;
306 inet_pton(AF_INET6, "::1", &ctrl->local.sin6_addr);
309 ctrl->local.sin_family = AF_INET;
311 ctrl->local.sin_addr.s_addr = INADDR_ANY;
313 ctrl->local.sin_addr.s_addr = htonl((127 << 24) | 1);
317 if (bind(ctrl->s, (struct sockaddr *) &ctrl->local,
318 sizeof(ctrl->local)) < 0) {