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)
Mon, Jan 19, 11:15 PM
Unknown Object (File)
Sun, Jan 18, 9:54 AM
Unknown Object (File)
Dec 24 2025, 2:02 PM
Unknown Object (File)
Nov 30 2025, 6:20 AM
Unknown Object (File)
Nov 26 2025, 10:31 PM
Unknown Object (File)
Nov 2 2025, 7:10 PM
Unknown Object (File)
Nov 2 2025, 7:10 PM
Unknown Object (File)
Nov 2 2025, 7:08 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 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.