Lines Matching refs:from
60 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_attach() argument
68 os_memcpy(&dst->addr, from, sizeof(struct sockaddr_in)); in wpa_supplicant_ctrl_iface_attach()
74 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach()
80 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_detach() argument
87 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && in wpa_supplicant_ctrl_iface_detach()
88 from->sin_port == dst->addr.sin_port) { in wpa_supplicant_ctrl_iface_detach()
95 "%s:%d", inet_ntoa(from->sin_addr), in wpa_supplicant_ctrl_iface_detach()
96 ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_detach()
107 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_level() argument
117 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr && in wpa_supplicant_ctrl_iface_level()
118 from->sin_port == dst->addr.sin_port) { in wpa_supplicant_ctrl_iface_level()
120 "level %s:%d", inet_ntoa(from->sin_addr), in wpa_supplicant_ctrl_iface_level()
121 ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_level()
159 struct sockaddr_in from; in wpa_supplicant_ctrl_iface_receive() local
160 socklen_t fromlen = sizeof(from); in wpa_supplicant_ctrl_iface_receive()
167 (struct sockaddr *) &from, &fromlen); in wpa_supplicant_ctrl_iface_receive()
172 if (from.sin_addr.s_addr != htonl((127 << 24) | 1)) { in wpa_supplicant_ctrl_iface_receive()
180 "source %s", inet_ntoa(from.sin_addr)); in wpa_supplicant_ctrl_iface_receive()
220 if (wpa_supplicant_ctrl_iface_attach(priv, &from, fromlen)) in wpa_supplicant_ctrl_iface_receive()
227 if (wpa_supplicant_ctrl_iface_detach(priv, &from, fromlen)) in wpa_supplicant_ctrl_iface_receive()
232 if (wpa_supplicant_ctrl_iface_level(priv, &from, fromlen, in wpa_supplicant_ctrl_iface_receive()
244 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive()
248 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive()
251 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from, in wpa_supplicant_ctrl_iface_receive()
439 struct sockaddr_in from; in wpa_supplicant_global_ctrl_iface_receive() local
440 socklen_t fromlen = sizeof(from); in wpa_supplicant_global_ctrl_iface_receive()
446 (struct sockaddr *) &from, &fromlen); in wpa_supplicant_global_ctrl_iface_receive()
451 if (from.sin_addr.s_addr != htonl((127 << 24) | 1)) { in wpa_supplicant_global_ctrl_iface_receive()
459 "source %s", inet_ntoa(from.sin_addr)); in wpa_supplicant_global_ctrl_iface_receive()
496 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in wpa_supplicant_global_ctrl_iface_receive()
500 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from, in wpa_supplicant_global_ctrl_iface_receive()