Lines Matching refs:local
57 struct sockaddr_in6 local;
60 struct sockaddr_in local;
69 struct sockaddr_un local;
117 ctrl->local.sun_family = AF_UNIX;
121 ret = os_snprintf(ctrl->local.sun_path,
122 sizeof(ctrl->local.sun_path),
126 ret = os_snprintf(ctrl->local.sun_path,
127 sizeof(ctrl->local.sun_path),
132 if (os_snprintf_error(sizeof(ctrl->local.sun_path), ret)) {
151 if (bind(ctrl->s, (struct sockaddr *) &ctrl->local,
152 sizeof(ctrl->local)) < 0) {
160 unlink(ctrl->local.sun_path);
170 lchown(ctrl->local.sun_path, -1, AID_WIFI);
171 lchown(ctrl->local.sun_path, AID_SYSTEM, AID_WIFI);
179 unlink(ctrl->local.sun_path);
200 unlink(ctrl->local.sun_path);
225 unlink(ctrl->local.sun_path);
251 unlink(ctrl->local.sun_path);
260 * wpa_ctrl_cleanup() - Delete any local UNIX domain socket files that
333 ctrl->local.sin6_family = AF_INET6;
335 ctrl->local.sin6_addr = in6addr_any;
337 inet_pton(AF_INET6, "::1", &ctrl->local.sin6_addr);
340 ctrl->local.sin_family = AF_INET;
342 ctrl->local.sin_addr.s_addr = INADDR_ANY;
344 ctrl->local.sin_addr.s_addr = htonl((127 << 24) | 1);
348 if (bind(ctrl->s, (struct sockaddr *) &ctrl->local,
349 sizeof(ctrl->local)) < 0) {