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
F127448154: D48996.diff
Mon, Sep 1, 1:39 AM
Unknown Object (File)
Sat, Aug 30, 8:04 AM
Unknown Object (File)
Wed, Aug 27, 11:35 PM
Unknown Object (File)
Thu, Aug 14, 11:06 PM
Unknown Object (File)
Thu, Aug 14, 4:17 PM
Unknown Object (File)
Thu, Aug 14, 11:58 AM
Unknown Object (File)
Tue, Aug 12, 5:42 PM
Unknown Object (File)
Sun, Aug 10, 1:58 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 62650
Build 59534: arc lint + arc unit

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.