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
F163070369: D49148.id151555.diff
Sun, Jul 19, 7:47 PM
F163036425: D49148.id151657.diff
Sun, Jul 19, 11:41 AM
F163029601: D49148.id151554.diff
Sun, Jul 19, 9:25 AM
Unknown Object (File)
Sat, Jul 18, 5:16 AM
Unknown Object (File)
Jun 12 2026, 2:35 AM
Unknown Object (File)
May 12 2026, 5:55 PM
Unknown Object (File)
May 12 2026, 10:41 AM
Unknown Object (File)
May 12 2026, 7:18 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 Not Applicable
Unit
Tests Not Applicable

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.