On Oct 3, 2008, at 2:05 PM, Tom Haynes wrote:

>> reads better as:
>>
>>            if (IN_CLASSA(addr))
>>                mask =  IN_CLASSA_NET;
>>            else if (IN_CLASSB(addr))
>>                mask =  IN_CLASSB_NET;
>>            else if (IN_CLASSC(addr))
>>                mask =  IN_CLASSC_NET;
>>            else
>>                mask = IP_HOST_MASK;
>
> Might read better, but appears not to work correctly:
>

but your new code is nice to read and it works too ;-)

Robert. 

Reply via email to