From owner-freebsd-net@FreeBSD.ORG Tue Mar 17 09:29:02 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2FBC1065670 for ; Tue, 17 Mar 2009 09:29:02 +0000 (UTC) (envelope-from vanhu@zeninc.net) Received: from smtp.zeninc.net (smtp.zeninc.net [80.67.176.25]) by mx1.freebsd.org (Postfix) with ESMTP id 6F6B38FC0C for ; Tue, 17 Mar 2009 09:29:02 +0000 (UTC) (envelope-from vanhu@zeninc.net) Received: from astro.zen.inc (astro.zen.inc [192.168.1.239]) by smtp.zeninc.net (smtpd) with ESMTP id A254B2798B8; Tue, 17 Mar 2009 10:29:00 +0100 (CET) Received: by astro.zen.inc (Postfix, from userid 1000) id 2A72917054; Tue, 17 Mar 2009 10:29:34 +0100 (CET) Date: Tue, 17 Mar 2009 10:29:34 +0100 From: VANHULLEBUS Yvan To: srikanth jampala Message-ID: <20090317092933.GA72942@zeninc.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: All mail clients suck. This one just sucks less. Cc: freebsd-net@freebsd.org Subject: Re: SA add notification to externa module X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2009 09:29:04 -0000 On Tue, Mar 17, 2009 at 02:23:13PM +0530, srikanth jampala wrote: > Hi all Hi. > This is my first posting. > > I want the notifications about the SA (security association) add/delete > events, > from the kernel to my externel kernel module. > > How can I do this... ? Such events are notified to all PFKey registered sockets. Usually, those notifications are sent to userland, but I guess you could start searching from there (see key_sendup_mbuf(x, y, KEY_SENDUP_REGISTERED) in netipsec/keysock.c). Yvan.