Matt Dillon ([EMAIL PROTECTED]) wrote:
>     A quick review of the code seems to indicate that this is indeed a bug.
>     As far as I can tell, the IN_CLASS*() macros assume host order.  e.g.
>     from /usr/include/netinet/in.h:
> 
>     #define IN_CLASSA(i)            (((u_int32_t)(i) & 0x80000000) == 0)
> 
>     Since s_addr is in network byte order, the conversion is necessary.  If
>     this fixes Danny's problems, and doesn't break anyone else (Paul?), I'd
>     say it should be committed.

After playing with it somemore, I agree.. It doesn't break for small
networks, which is what I was testing on.  I'll commit the fix.

paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to