Fix UNIX domain socket address handling to be more portable
authorSam Leffler <sam@errno.com>
Sat, 21 Mar 2009 20:00:27 +0000 (22:00 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 21 Mar 2009 20:00:27 +0000 (22:00 +0200)
commit19b9436c0efe7036d94444e34e27523485c1e314
tree0a1fae7899a77edfc19bc26369497fa35c7c6a9c
parent22498d6dc3e9d1001e4523a4dcfa3d4bfcc6ae11
Fix UNIX domain socket address handling to be more portable

Removing just sun_family is not portable since some systems (e.g.,
FreeBSD) include an additional sun_len field. Using offsetof should be
portable. In addition, set sun_ken for FreeBSD.
wpa_supplicant/ctrl_iface_unix.c