[ECOS] Re: issue with raw bsd sockets

Mandeep Sandhu mandeepsandhu.chd@gmail.com
Fri Aug 7 17:40:00 GMT 2009


On Fri, Aug 7, 2009 at 10:04 PM, Grant Edwards<grant.b.edwards@gmail.com> wrote:
> On 2009-08-07, Jay Foster <jay@systech.com> wrote:
>
>> DHCP uses INADDR_BROADCAST (255.255.255.255) as the broadcast
>> address.  You probably need to set the interface broadcast
>> address to match.  You may also need to add a route to allow
>> broadcasts.  Look at the DHCP/BOOTP eCos code.  It does some
>> of this too.
>
> IMO, this is a major bit of suckage in the BSD network stack.

I agree, this sucks! Is there nothing like a default interface here?

> People have been complaining about it for a long time, and
> we've tripped over it several times under eCos.
>
> Under Linux, you can set the destination IP address to
> 255.255.255.255, and it gets sent to 255.255.255.255.  IOW, it
> "just works".  Under BSD and eCos you've got to jump through
> all sorts of hoops to send a broadast packet.
>
> --
> Grant Edwards                   grante             Yow! I'm a GENIUS!  I want
>                                  at               to dispute sentence
>                               visi.com            structure with SUSAN
>                                                   SONTAG!!
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
>

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list