pcp
[Top] [All Lists]

PCP Updates: __pmLoopBackAddress(), __pmInitSockAddr()

To: PCP <pcp@xxxxxxxxxxx>
Subject: PCP Updates: __pmLoopBackAddress(), __pmInitSockAddr()
From: Dave Brolley <brolley@xxxxxxxxxx>
Date: Thu, 18 Apr 2013 18:16:14 -0400
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4
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.

<Prev in Thread] Current Thread [Next in Thread>
  • PCP Updates: __pmLoopBackAddress(), __pmInitSockAddr(), Dave Brolley <=