Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Aug 2001 22:54:10 +0900
From:      Shoichi Sakane <sakane@kame.net>
To:        ewancarr@yahoo.com
Cc:        FreeBSD-Security@FreeBSD.ORG
Subject:   Re: PFKEY/test-pfkey
Message-ID:  <20010802225410A.sakane@kame.net>
In-Reply-To: Your message of "Mon, 30 Jul 2001 17:30:22 %2B0100 (BST)" <20010730163022.96220.qmail@web13308.mail.yahoo.com>
References:  <20010730163022.96220.qmail@web13308.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010802225410A.sakane>