Page MenuHomeFreeBSD

Improve copy-and-paste versions of SIOCGIFADDR.
ClosedPublic

Authored by brooks on Mar 27 2018, 6:48 PM.
Tags
None
Referenced Files
F171715238: D14873.id40818.diff
Sat, Sep 12, 11:24 PM
Unknown Object (File)
Fri, Sep 11, 12:04 PM
Unknown Object (File)
Thu, Sep 10, 6:29 PM
Unknown Object (File)
Thu, Sep 10, 10:37 AM
Unknown Object (File)
Wed, Sep 9, 10:56 PM
Unknown Object (File)
Wed, Sep 9, 4:08 PM
Unknown Object (File)
Wed, Sep 9, 3:49 PM
Unknown Object (File)
Tue, Sep 8, 8:00 AM
Subscribers

Details

Summary

The original implementation used a reference to ifr_data and a cast to
do the equivalent of accessing ifr_addr. This was copied multiple
times since 1996.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This is the first of several changes to clean up use of ifr_data before placing all remaining access behind an accessor function.

This revision is now accepted and ready to land.Mar 27 2018, 8:17 PM
This revision was automatically updated to reflect the committed changes.