Lines Matching refs:dest

63 	struct sockaddr_in6 dest;  member
66 struct sockaddr_in dest; member
75 struct sockaddr_un dest; member
216 ctrl->dest.sun_family = AF_UNIX; in wpa_ctrl_open2()
218 ctrl->dest.sun_path[0] = '\0'; in wpa_ctrl_open2()
219 os_strlcpy(ctrl->dest.sun_path + 1, ctrl_path + 10, in wpa_ctrl_open2()
220 sizeof(ctrl->dest.sun_path) - 1); in wpa_ctrl_open2()
222 res = os_strlcpy(ctrl->dest.sun_path, ctrl_path, in wpa_ctrl_open2()
223 sizeof(ctrl->dest.sun_path)); in wpa_ctrl_open2()
224 if (res >= sizeof(ctrl->dest.sun_path)) { in wpa_ctrl_open2()
230 if (connect(ctrl->s, (struct sockaddr *) &ctrl->dest, in wpa_ctrl_open2()
231 sizeof(ctrl->dest)) < 0) { in wpa_ctrl_open2()
363 ctrl->dest.sin6_family = AF_INET6; in wpa_ctrl_open()
364 inet_pton(AF_INET6, "::1", &ctrl->dest.sin6_addr); in wpa_ctrl_open()
365 ctrl->dest.sin6_port = htons(WPA_CTRL_IFACE_PORT); in wpa_ctrl_open()
367 ctrl->dest.sin_family = AF_INET; in wpa_ctrl_open()
368 ctrl->dest.sin_addr.s_addr = htonl((127 << 24) | 1); in wpa_ctrl_open()
369 ctrl->dest.sin_port = htons(WPA_CTRL_IFACE_PORT); in wpa_ctrl_open()
419 ctrl->dest.sin6_scope_id = scope_id; in wpa_ctrl_open()
420 ctrl->dest.sin6_port = htons(port_id); in wpa_ctrl_open()
421 os_memcpy(&ctrl->dest.sin6_addr, h->h_addr, h->h_length); in wpa_ctrl_open()
423 ctrl->dest.sin_port = htons(port_id); in wpa_ctrl_open()
424 os_memcpy(&ctrl->dest.sin_addr.s_addr, h->h_addr, h->h_length); in wpa_ctrl_open()
430 if (connect(ctrl->s, (struct sockaddr *) &ctrl->dest, in wpa_ctrl_open()
431 sizeof(ctrl->dest)) < 0) { in wpa_ctrl_open()
435 inet_ntop(AF_INET6, &ctrl->dest.sin6_addr, addr, in wpa_ctrl_open()
436 sizeof(ctrl->dest)), in wpa_ctrl_open()
437 ntohs(ctrl->dest.sin6_port), in wpa_ctrl_open()
441 inet_ntoa(ctrl->dest.sin_addr), in wpa_ctrl_open()
442 ntohs(ctrl->dest.sin_port), in wpa_ctrl_open()