This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Problem reading broadcast IP
On Fri, Jan 18, 2008 at 01:36:16PM +0100, Emmanuel Coullien wrote:
> I thank you for your answer. For your information, here are what I tested :
>
> srv_recept.sin_addr.s_addr=inet_addr("255.255.255.255"); --> OK,
> Broadcast received
> srv_recept.sin_addr.s_addr=inet_addr("192.255.255.255"); --> Doesn't
> receive any Broadcast
> srv_recept.sin_addr.s_addr=inet_addr("192.168.255.255"); --> Doesn't
> receive any Broadcast
> srv_recept.sin_addr.s_addr=inet_addr("192.168.1.255"); --> Doesn't
> receive any Broadcast
>
> It seems to be strange because when I do that on a PC, it works fine,
> and then I expected that it will work on eCos too.
What OS is the PC running?
Like i said, broadcast is an interesting subject which different OSs
do differently. eCos uses the FreeBSD TCP/IP stack, so you should look
at documentation from FreeBSD.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss