From: Juergen Quade <quade@hsnr.de>
To: "Josef E. Galea" <josefeg@euroweb.net.mt>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Kernel space sockets
Date: Fri, 18 Mar 2005 15:09:41 +0100 [thread overview]
Message-ID: <20050318140941.GA31622@hsnr.de> (raw)
In-Reply-To: <423ADD5B.5060708@euroweb.net.mt>
On Fri, Mar 18, 2005 at 02:53:31PM +0100, Josef E. Galea wrote:
> Hi,
>
> I'm trying to implement a UDP server in a kernel module. So far I have
> created the struct socket using sock_create_kern(), and used
> sock->ops->bind() on it. Now how do I send UDP datagrams? I looked at
> some code and found the function sock->ops->sendmsg() but I can't figure
> out where to put the destination address. I would appreciate it if
> someone could point me to some tutorial or sample code.
Maybe the sample code on this (german) site helps:
http://ezs.kr.hsnr.de/TreiberBuch/Artikel/index.html
Look at "Folge" 16.
Juergen.
next prev parent reply other threads:[~2005-03-18 14:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-18 13:53 Kernel space sockets Josef E. Galea
2005-03-18 14:09 ` Juergen Quade [this message]
2005-03-18 14:14 ` Josef E. Galea
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050318140941.GA31622@hsnr.de \
--to=quade@hsnr.de \
--cc=josefeg@euroweb.net.mt \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox