This change enabled the removal of some ugliness from
__pmSockAddrIsLoopBack(), however some ugliness was needed in the native
implementation of __pmInitSockAddr() as a result. The changes are mainly
cosmetic, but these additions to the API would have been eventually
necessary. Better now than later in my opinion.
The tests which inspired the original ugliness in
__pmSockAddrIsLoopBack() still pass with and without secure sockets enabled.
---------------------
git://sourceware.org/git/pcpfans.git brolley/dev
commit 4ab4232a9e90f411d5d102503bb0348803d3d636
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Thu Apr 18 18:07:28 2013 -0400
Add a 'family' argument to __pmLoopBackAddress() and
__pmSockAddrInit().
This allows these functions to manipulate IPv6 addresses.
A simplification of __pmSockAddrIsLoopBack() was made possible.
All callers updated.
|