Page MenuHomeFreeBSD

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

Authored by adrian on Thu, Feb 27, 2:25 AM.
Referenced Files
F111125489: D49148.id151554.diff
Thu, Feb 27, 6:49 PM
F111110533: D49148.id151555.diff
Thu, Feb 27, 1:54 PM
Unknown Object (File)
Thu, Feb 27, 1:08 PM
Unknown Object (File)
Thu, Feb 27, 10:05 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.Fri, Feb 28, 2:51 AM
This revision was automatically updated to reflect the committed changes.