This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Sending network broadast packet.
- To: Mervyn Wongso <intertel_ecos at hotmail dot com>
- Subject: Re: [ECOS] Sending network broadast packet.
- From: Gary Thomas <gthomas at redhat dot com>
- Date: 26 Sep 2001 08:06:31 +0900
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- References: <OE17uNjVuMhvqgStMVh000000d1@hotmail.com>
On Wed, 2001-09-26 at 07:45, Mervyn Wongso wrote:
> I'm trying to send a packet with the destination IP address 255.255.255.255
> but the IP stack keeps altering the destionation address to the subnet
> broadcast address. But, when I set the interface's broadcast address to
> 255.255.255.255, I get EHOSTUNREACH error when I call sendto().
>
> Any help will be appreciated.
>
Look at the BOOTP or DHCP code - these routines use broadcast and work
fine.