aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/ctrl_iface_common.h
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2016-03-04 09:20:23 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-05 15:15:05 (GMT)
commitacf57fae765b7bbabb6dcfa43a54af7f847b76cf (patch)
tree35075fdc728e7cb7fda30e4262b00ad2060a1444 /src/common/ctrl_iface_common.h
parent89b781bc89efa3600c9c44cd80af87125b167fa0 (diff)
downloadhostap-acf57fae765b7bbabb6dcfa43a54af7f847b76cf.zip
hostap-acf57fae765b7bbabb6dcfa43a54af7f847b76cf.tar.gz
hostap-acf57fae765b7bbabb6dcfa43a54af7f847b76cf.tar.bz2
ctrl_iface_common: Use sockaddr_storage instead of sockaddr_un
This is a step towards allowing UDP sockets to be used with the common implementation. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Diffstat (limited to 'src/common/ctrl_iface_common.h')
-rw-r--r--src/common/ctrl_iface_common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/ctrl_iface_common.h b/src/common/ctrl_iface_common.h
index 6844093..0b6e3e7 100644
--- a/src/common/ctrl_iface_common.h
+++ b/src/common/ctrl_iface_common.h
@@ -19,7 +19,7 @@
*/
struct wpa_ctrl_dst {
struct dl_list list;
- struct sockaddr_un addr;
+ struct sockaddr_storage addr;
socklen_t addrlen;
int debug_level;
int errors;
@@ -28,11 +28,11 @@ struct wpa_ctrl_dst {
void sockaddr_print(int level, const char *msg, struct sockaddr_storage *sock,
socklen_t socklen);
-int ctrl_iface_attach(struct dl_list *ctrl_dst, struct sockaddr_un *from,
+int ctrl_iface_attach(struct dl_list *ctrl_dst, struct sockaddr_storage *from,
socklen_t fromlen);
-int ctrl_iface_detach(struct dl_list *ctrl_dst, struct sockaddr_un *from,
+int ctrl_iface_detach(struct dl_list *ctrl_dst, struct sockaddr_storage *from,
socklen_t fromlen);
-int ctrl_iface_level(struct dl_list *ctrl_dst, struct sockaddr_un *from,
+int ctrl_iface_level(struct dl_list *ctrl_dst, struct sockaddr_storage *from,
socklen_t fromlen, const char *level);
#endif /* CONTROL_IFACE_COMMON_H */