Fix UNIX domain socket address handling to be more portable
authorJouni Malinen <j@w1.fi>
Sat, 21 Mar 2009 20:07:14 +0000 (22:07 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 21 Mar 2009 20:07:14 +0000 (22:07 +0200)
commit75864b7f63e1bee6cea1c078ae767bf633a64496
tree3e656aaace51c0fb98a67250f3278078ddd0fa83
parent19b9436c0efe7036d94444e34e27523485c1e314
Fix UNIX domain socket address handling to be more portable

Remove all fields before sun_path before printing or comparing sun_path
contents. Using offsetof should be portable. In addition, set sun_len
for FreeBSD.
hostapd/ctrl_iface.c