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
Unknown Object (File)
Tue, May 12, 5:55 PM
Unknown Object (File)
Tue, May 12, 10:41 AM
Unknown Object (File)
Tue, May 12, 7:18 AM
Unknown Object (File)
Mon, May 11, 9:58 PM
Unknown Object (File)
Thu, May 7, 9:51 PM
Unknown Object (File)
Mon, Apr 27, 1:18 PM
Unknown Object (File)
Apr 23 2026, 6:15 PM
Unknown Object (File)
Apr 23 2026, 12:53 AM
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 62649
Build 59533: 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.