tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Setting sin/sin6 port to 0 before ifa_ifwithaddr()

On Tue, Apr 14, 2009 at 02:41:20PM -0500, David Young wrote:
> I don't think that that is necessary for your purposes.  Also,
> calling the comparison routine through a function pointer may have an
> undesirable performance impact on some architectures (ARM?).

In fact, it should be a pessimation for almost all platforms compared
to a simple switch that covers the common cases and only falls back to a
function pointer list for non-AF_INET/non-AF_INET6.


Home | Main Index | Thread Index | Old Index