All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Josef E. Galea" <josefeg@euroweb.net.mt>
To: linux-kernel@vger.kernel.org
Subject: Kernel space sockets
Date: Fri, 18 Mar 2005 14:53:31 +0100	[thread overview]
Message-ID: <423ADD5B.5060708@euroweb.net.mt> (raw)

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.

Thanks,
Josef

             reply	other threads:[~2005-03-18 13:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-18 13:53 Josef E. Galea [this message]
2005-03-18 14:09 ` Kernel space sockets Juergen Quade
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=423ADD5B.5060708@euroweb.net.mt \
    --to=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.