9fans archive / 1998 / 04 / 96 /    prev next

From: Paul Borman prb@bsd...
Subject: [9fans] encryption routines for il
Date: Wed, 22 Apr 1998 12:48:29 -0500 (CDT)

> I am looking at installing Pace Willisson's Unix based Authentication
> server on my BSDI box (thanks to Russ Cox for letting me know about
> it).
> 
> If anyone outside the US has implemented compatible versions of the
> missing encryption routines, please let me know.

I probably should mention that BSD/OS 3.0 includes support for
the Plan 9 bootp requests.

The basic code that puts out the bootp request is:

        strcpy((char *)bp->bp_vend, "p9  ");
        strcat((char *)bp->bp_vend, inet_ntoa(hp->subnet_mask));
        strcat((char *)bp->bp_vend, " ");
        strcat((char *)bp->bp_vend, inet_ntoa(hp->swap_server));
        strcat((char *)bp->bp_vend, " ");
        strcat((char *)bp->bp_vend, inet_ntoa(hp->nis_server->addr[0]));
        strcat((char *)bp->bp_vend, " ");
        strcat((char *)bp->bp_vend, inet_ntoa(hp->gateway->addr[0]));

(Please don't complain about using strcat, this was a quick hack and it
 does the job.  I probably should have used snprintf, but it is not worth
 changing it at this point.)

The fields for these entries are:

	sm	netmask, as expected
	sw	"swap server" is really your 9fs file server
	ds	dns server, as expected (only first address used)
	gw	gateway, as expected (only first address used)

				-Paul Borman
				 prb@bsd...