Page MenuHomeFreeBSD

wlanwds: use a local copy of the ifaddr sockaddr, avoid cast
ClosedPublic

Authored by adrian on Feb 13 2025, 6:34 PM.
Referenced Files
Unknown Object (File)
Wed, Oct 8, 2:47 AM
Unknown Object (File)
Sat, Oct 4, 11:13 AM
Unknown Object (File)
Sat, Oct 4, 9:51 AM
Unknown Object (File)
Sep 13 2025, 4:42 AM
Unknown Object (File)
Sep 12 2025, 12:18 PM
Unknown Object (File)
Sep 12 2025, 10:25 AM
Unknown Object (File)
Sep 11 2025, 8:27 AM
Unknown Object (File)
Sep 9 2025, 7:59 PM
Subscribers

Details

Summary

Using the cast results in alignment errors from LLVM.
Instead use a local copy of the sockaddr.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested changes to this revision.Feb 16 2025, 9:14 PM
bz added a subscriber: bz.

Not really requesting changes but I believe an alternate solution

tools/tools/net80211/wlanwds/wlanwds.c
287

;;ifa = ifa->ifa_next

298

Check ifconfig::satosdl and it'll go away :)

This revision now requires changes to proceed.Feb 16 2025, 9:14 PM
tools/tools/net80211/wlanwds/wlanwds.c
287

oh wow, why'd I do it like this in 2017? I must've found this in some existing code, aiee.

tools/tools/net80211/wlanwds/wlanwds.c
298

oh god why aren't these functions in a library somewhere :P

This revision was not accepted when it landed; it landed in state Needs Review.Feb 28 2025, 2:51 AM
This revision was automatically updated to reflect the committed changes.