Subject: Re: How to build a kernel with arc4_setkey and friends in it?
To: Andrew Reilly <andrew-netbsd@areilly.bpc-users.org>
From: Jachym Holecek <freza@liberouter.org>
List: tech-pkg
Date: 02/19/2005 14:38:31
Hi,

> Since then, though, I've heavily tweaked my kernel config, as a
> slimming-down exercise.  I had to take gre out anyway, to make
> pptp work.  What I find now is that modload /usr/pkg/lkm/mppe.o
> complains that all of the arc4_* symbols are missing.

$ find . -name 'files*' | xargs grep -H arc4
./conf/files:include "crypto/arc4/files.arc4"
./conf/files:define     wlan: arc4
./crypto/arc4/files.arc4:#      $NetBSD: files.arc4,v 1.1 2002/10/11 01:52:07 thorpej Exp $
./crypto/arc4/files.arc4:define arc4
./crypto/arc4/files.arc4:file   crypto/arc4/arc4.c              arc4

What you need is to include a driver that depends on the wlan attribute
(because it seems to be the only arc4 consumer, currently):

./conf/files:device     an: arp, wlan, ifnet
./conf/files:device     awi: arp, wlan, ifnet
./conf/files:device     wi: arp, wlan, ifnet
./conf/files:device     ath: arp, wlan, ifnet
./conf/files:device     atw: arp, wlan, ifnet, smc93cx6
./conf/files:device rtw: arp, wlan, ifnet, smc93cx6
./dev/pci/files.pci:device      ipw: ifnet, wlan
./dev/pci/files.pci:device      iwi: ifnet, wlan

Alternatively, you could hack sys/conf/files to make some driver you already
need fake-depend on arc4. This should perhaps be documented in the MPPE
package?

	Regards,
		-- Jachym Holecek