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)
Mon, Mar 31, 3:20 AM
Unknown Object (File)
Sat, Mar 29, 12:08 PM
Unknown Object (File)
Mar 21 2025, 1:41 AM
Unknown Object (File)
Mar 1 2025, 9:27 AM
Unknown Object (File)
Feb 23 2025, 5:20 PM
Unknown Object (File)
Feb 22 2025, 2:42 PM
Unknown Object (File)
Feb 16 2025, 10:05 AM
Unknown Object (File)
Feb 15 2025, 2:46 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.