Page MenuHomeFreeBSD

wlanwds: convert getifaddrs() iteration to use the ifa_next pointer
ClosedPublic

Authored by adrian on Feb 27 2025, 2:25 AM.
Referenced Files
F174659385: D49148.id151554.diff
Mon, Oct 5, 12:46 AM
F174624081: D49148.id151657.diff
Sun, Oct 4, 6:29 PM
Unknown Object (File)
Sat, Oct 3, 8:26 PM
Unknown Object (File)
Fri, Oct 2, 4:34 AM
Unknown Object (File)
Wed, Sep 9, 4:09 PM
Unknown Object (File)
Sep 3 2026, 7:05 AM
Unknown Object (File)
Aug 30 2026, 7:39 AM
Unknown Object (File)
Aug 24 2026, 10:37 PM
Subscribers

Details

Summary

I don't know what I was thinking in 2017 when I wrote this, but
it's very wrong.

Use ifa->ifa_next to iterate, not the array index / pointer arithmetic.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62648
Build 59532: arc lint + arc unit

Event Timeline

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.