Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261597AbVCRNxb (ORCPT ); Fri, 18 Mar 2005 08:53:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261602AbVCRNxb (ORCPT ); Fri, 18 Mar 2005 08:53:31 -0500 Received: from mail3.euroweb.net.mt ([217.145.4.38]:25478 "EHLO mail3.euroweb.net.mt") by vger.kernel.org with ESMTP id S261597AbVCRNxa (ORCPT ); Fri, 18 Mar 2005 08:53:30 -0500 Message-ID: <423ADD5B.5060708@euroweb.net.mt> Date: Fri, 18 Mar 2005 14:53:31 +0100 From: "Josef E. Galea" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: Kernel space sockets Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 667 Lines: 16 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/