public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Kernel space sockets
@ 2005-03-18 13:53 Josef E. Galea
  2005-03-18 14:09 ` Juergen Quade
  0 siblings, 1 reply; 3+ messages in thread
From: Josef E. Galea @ 2005-03-18 13:53 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel space sockets
  2005-03-18 13:53 Kernel space sockets Josef E. Galea
@ 2005-03-18 14:09 ` Juergen Quade
  2005-03-18 14:14   ` Josef E. Galea
  0 siblings, 1 reply; 3+ messages in thread
From: Juergen Quade @ 2005-03-18 14:09 UTC (permalink / raw)
  To: Josef E. Galea; +Cc: linux-kernel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel space sockets
  2005-03-18 14:09 ` Juergen Quade
@ 2005-03-18 14:14   ` Josef E. Galea
  0 siblings, 0 replies; 3+ messages in thread
From: Josef E. Galea @ 2005-03-18 14:14 UTC (permalink / raw)
  To: Juergen Quade; +Cc: linux-kernel

Juergen Quade wrote:

>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.
>
>  
>
Thanks :)
Josef

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-18 14:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-18 13:53 Kernel space sockets Josef E. Galea
2005-03-18 14:09 ` Juergen Quade
2005-03-18 14:14   ` Josef E. Galea

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox