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

Re: IP_BROADCAST warning message !!



Nader,

I have also just used the second method with the new released (ns-2.1b6) and it 
seems to work perfectly !! Thanks ChJ !!

Ofcourse ~/ns-2.1b6/ip.h needs updating !!

-- Martin


> Date: Mon, 24 Jan 2000 17:45:50 -0800 (PST)
> From: Nader Salehi <[email protected]>
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> To: Christian J�nsson FOA 72 <[email protected]>
> Cc: "Martin Koyabe" <[email protected]>, [email protected]
> Subject: Re: IP_BROADCAST warning message !! 
> X-URL: http://www.isi.edu/~salehi
> 
> 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
> 
> 
> 
>