Lines Matching refs:dest
58 struct sockaddr_in6 dest;
61 struct sockaddr_in dest;
70 struct sockaddr_un dest;
208 ctrl->dest.sun_family = AF_UNIX;
210 ctrl->dest.sun_path[0] = '\0';
211 os_strlcpy(ctrl->dest.sun_path + 1, ctrl_path + 10,
212 sizeof(ctrl->dest.sun_path) - 1);
214 res = os_strlcpy(ctrl->dest.sun_path, ctrl_path,
215 sizeof(ctrl->dest.sun_path));
216 if (res >= sizeof(ctrl->dest.sun_path)) {
222 if (connect(ctrl->s, (struct sockaddr *) &ctrl->dest,
223 sizeof(ctrl->dest)) < 0) {
356 ctrl->dest.sin6_family = AF_INET6;
357 inet_pton(AF_INET6, "::1", &ctrl->dest.sin6_addr);
358 ctrl->dest.sin6_port = htons(WPA_CTRL_IFACE_PORT);
360 ctrl->dest.sin_family = AF_INET;
361 ctrl->dest.sin_addr.s_addr = htonl((127 << 24) | 1);
362 ctrl->dest.sin_port = htons(WPA_CTRL_IFACE_PORT);
412 ctrl->dest.sin6_scope_id = scope_id;
413 ctrl->dest.sin6_port = htons(port_id);
414 os_memcpy(&ctrl->dest.sin6_addr, h->h_addr, h->h_length);
416 ctrl->dest.sin_port = htons(port_id);
417 os_memcpy(&ctrl->dest.sin_addr.s_addr, h->h_addr, h->h_length);
423 if (connect(ctrl->s, (struct sockaddr *) &ctrl->dest,
424 sizeof(ctrl->dest)) < 0) {
428 inet_ntop(AF_INET6, &ctrl->dest.sin6_addr, addr,
429 sizeof(ctrl->dest)),
430 ntohs(ctrl->dest.sin6_port),
434 inet_ntoa(ctrl->dest.sin_addr),
435 ntohs(ctrl->dest.sin_port),