From owner-freebsd-questions Mon Nov 19 20: 6:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web11608.mail.yahoo.com (web11608.mail.yahoo.com [216.136.172.60]) by hub.freebsd.org (Postfix) with SMTP id 0031737B405 for ; Mon, 19 Nov 2001 20:06:29 -0800 (PST) Message-ID: <20011120040629.73884.qmail@web11608.mail.yahoo.com> Received: from [202.94.0.21] by web11608.mail.yahoo.com via HTTP; Mon, 19 Nov 2001 20:06:29 PST Date: Mon, 19 Nov 2001 20:06:29 -0800 (PST) From: tang hongbin Subject: How can I add new ESP encryption functions into FreeBSD kernel To: questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dear Sir/Madam; A problem is troubling me in ages. I want to add my encryption algorithm of ESP, an algorithm like DES, into FreeBSD kernel so as to make kernel recognize it. I added its definitions in /usr/src/sys/net/pfkeyv2.h, added specific functions implementation into /usr/src/sys/netinet6/esp.core.c and added a new subdirectory in sys/crypto. Afterwards I rebuild kernel, but system can't recognize my ESP encryption algorithm when I use PF socket to add a new SA into SAD including my new encryption. In a word, please tell me what I should do step by step if I want to add a new ESP encryption algorithm that I have implemented into kernel so that I can use setkey commmand or sock system call to add SAs into SAD and the kernel can use fucntions I provided to encrypt or decrypt incoming or outgoing IP packages. Any your assistance would be greatly appreciated. Sincerelly yours, Tang hongbin __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message