[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UDP broadcast inside kernel
On Thu, Dec 07, 2006 at 12:43:07PM +0700, Mulyadi Santosa wrote:
> Hi Jeongki ...
>
> > I implemented a module using "http://kernelnewbies.org/Simple_UDP_Server".
> > So, now I can send and receive unicast messages inside kernel.
> > But, I need to send and receive broadcast messages inside kernel.
> > How can I change the code using above one?
>
> I am not so sure, but IIRC sending to broadcast address such as
> 192.168.255.255 on 192.168.0.0/16 network will do what you want. As for
> receiving the broadcast data, I think simply listen to the designated port
> will do the trick. Mind you again, this is just my guess.
Usually broadcast is a bad idea. I think what you want is multicast with a Class D address.
Look at DVMRP
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/