[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IP_BROADCAST warning message !!
Christian,
I used the second approach to suppress the warning last weekend and
will modify the source tree tomorrow.
Thanks,
Nader
>>> "FOA" == FOA 72 <Christian> writes:
FOA> hmm, my memory served me ill, as usually, the thing I thought
FOA> about was related to arp.{cc,h}, not applicable to IP_BROADCAST.
FOA> I have two thoughts right now, either (i) ns should us the
FOA> system's IP_BROADCAST, if it is defined, or (ii), dependent on
FOA> whether ns implementations rely on the specific "numeric" value
FOA> 0xffffffff or not, ns sources needs to undefine IP_BROADCAST
FOA> before setting it...
FOA> Here's what one might do in ip.h then.
FOA> (i)
FOA> #ifndef IP_BROADCAST #define IP_BROADCAST ((u_int32_t)
FOA> 0xffffffff) #endif /* !IP_BROADCAST */
FOA> and
FOA> (ii)
FOA> #ifdef IP_BROADCAST #undef IP_BROADCAST #endif /* IP_BROADCAST */
FOA> #define IP_BROADCAST ((u_int32_t) 0xffffffff)
FOA> If I may suggest something, I'd suggest approach (ii).
FOA> Anyway, I haven't tried it yet...
FOA> Cheers,
FOA> /ChJ