sending arbitrary UDP packets from kernel module
bms at incunabulum.net
Sun Dec 21 17:05:33 PST 2008
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.
More information about the freebsd-net