Date: Mon, 22 Dec 2008 01:05:29 +0000 From: Bruce Simpson <bms@incunabulum.net> To: Ferner Cilloniz <fernercc@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: sending arbitrary UDP packets from kernel module Message-ID: <494EE7D9.5060000@incunabulum.net> In-Reply-To: <1229738406.5614.17.camel@mobiliare.Belkin>
index | next in thread | previous in thread | raw e-mail
Ferner Cilloniz wrote: > So i have done some research and reading and found that i need to call > either udp_send or udp_output. Can anyone help me out with providing the > proper arguments to these functions so i may call them and send > arbitrary UDP packets from a kernel module? > The NFS and BOOTP code would be the first place to look, it has a rather shonky way of creating a socket in-kernel so that an INPCB will be created, allowing you to send and receive UDP datagrams. Fire up KScope or similar and look at how it does it. cheers BMShome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?494EE7D9.5060000>
