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)
Sun, Dec 21, 6:54 AM
Unknown Object (File)
Sun, Dec 14, 6:42 AM
Unknown Object (File)
Wed, Dec 10, 1:19 AM
Unknown Object (File)
Wed, Dec 10, 1:16 AM
Unknown Object (File)
Sat, Dec 6, 9:35 AM
Unknown Object (File)
Nov 27 2025, 5:22 PM
Unknown Object (File)
Nov 27 2025, 1:24 AM
Unknown Object (File)
Nov 26 2025, 11:39 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.