From owner-freebsd-security Thu Aug 2 7: 1:27 2001 Delivered-To: freebsd-security@freebsd.org Received: from mine.kame.net (kame195.kame.net [203.178.141.195]) by hub.freebsd.org (Postfix) with ESMTP id 39CE837B401 for ; Thu, 2 Aug 2001 07:01:21 -0700 (PDT) (envelope-from sakane@kame.net) Received: from localhost ([3ffe:501:481d:e101::1]) by mine.kame.net (8.11.1/3.7W) with ESMTP id f72E33Y92542; Thu, 2 Aug 2001 23:03:04 +0900 (JST) To: ewancarr@yahoo.com Cc: FreeBSD-Security@FreeBSD.ORG Subject: Re: PFKEY/test-pfkey In-Reply-To: Your message of "Mon, 30 Jul 2001 17:30:22 +0100 (BST)" <20010730163022.96220.qmail@web13308.mail.yahoo.com> References: <20010730163022.96220.qmail@web13308.mail.yahoo.com> X-Mailer: Cue version 0.6 (010413-1707/sakane) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Message-Id: <20010802225410A.sakane@kame.net> Date: Thu, 02 Aug 2001 22:54:10 +0900 From: Shoichi Sakane X-Dispatcher: imput version 20000228(IM140) Lines: 19 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Is there any test code out there for playing with > the PFKEY API. I'd like to be able to have my > userland program send a PF_GET message to the > "key engine" (I take this is just a fancy name for the > SPD ?). I've found the file test-pfkey.c on the cvs > tree at freebsd but...'scuse me for being a bit thick > here but it seems to send the different types of PFKEY > message types but I dont see where it handles the > responses e.g. when sending the PF_GET where is the > return message handled...any help/pointers appreciated i'm not sure what the different types of PFKEY message types is. anyway, if you sent a SADB_REGISTER message to the kernel, then you sent a SADB_GET message to the one, you could get a response of the SADB_GET message from the kernel. test-pfkey.c calls recv() in order to get a response after sending the SADB_GET message to the kernel. you can get basic information from RFC2367. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message