head	1.4;
access;
symbols
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.3
	RELEASE_4_3_0:1.3
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.3
	RELEASE_4_1_0:1.3
	RELEASE_3_5_0:1.3
	RELEASE_4_0_0:1.3
	RELEASE_3_4_0:1.2
	RELEASE_3_3_0:1.2
	RELEASE_3_2_0:1.2
	RELEASE_3_1_0:1.1.1.1
	RELEASE_2_2_8:1.1.1.1
	RELEASE_3_0_0:1.1.1.1
	RELEASE_2_2_7:1.1.1.1
	RELEASE_2_2_6:1.1.1.1
	ARCHIE_1:1.1.1.1
	WHISTLE_ARCHIE:1.1.1;
locks; strict;
comment	@# @;


1.4
date	2006.04.06.13.54.44;	author archie;	state dead;
branches;
next	1.3;

1.3
date	2000.01.26.01.55.19;	author archie;	state Exp;
branches;
next	1.2;

1.2
date	99.03.10.22.27.53;	author archie;	state Exp;
branches;
next	1.1;

1.1
date	98.01.09.23.23.55;	author julian;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.01.09.23.23.55;	author julian;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Remove the skip port. Created before there was an IPSec implementation on
FreeBSD, it is now extremely obsolete. In any case it doesn't compile. Earlier
version of this port can still be used on older versions of FreeBSD of course.
@
text
@diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_keymgrsubr.C work.new/skip/keymgrd/skip_keymgrsubr.C
--- skipsrc-1.0.orig/skip/keymgrd/skip_keymgrsubr.C	Fri Oct 25 13:12:49 1996
+++ work.new/skip/keymgrd/skip_keymgrsubr.C	Mon Jan 24 12:35:40 2000
@@@@ -59,7 +59,6 @@@@
 #include "SkipCert.h"
 #include "X509skip.h"
 #include "HashCert.h"
-#include "malloc.h"
 #include "utils.h"
 #include "Sig.h"
 #include "skip_log.h"
@


1.3
log
@Bash this port until it compiles under -current again.
@
text
@@


1.2
log
@Build SKIP port as a KLD instead of an LKM.
@
text
@d1 11
a11 21
diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skip_certd.1m work.new/skip/man/skip_certd.1m
--- skipsrc-1.0.orig/skip/man/skip_certd.1m	Fri Oct 25 13:12:56 1996
+++ work.new/skip/man/skip_certd.1m	Mon Mar  8 21:33:39 1999
@@@@ -14,15 +14,10 @@@@
 .SH FILES
 .br
 /tmp/skip_certd.log
-.SS Solaris 1.x systems:
 .P
-/etc/skip/certs.dir
+@@@@PREFIX@@@@/etc/skip/certs.dir
 .br
-/etc/skip/certs.pag
+@@@@PREFIX@@@@/etc/skip/certs.pag
 .P
-.SS Solaris 2.x systems:
-.P
-/etc/opt/SUNWicg/skip/certs.dir
-/etc/opt/SUNWicg/skip/certs.pag
 .SH SEE ALSO
 caping(1)
@


1.1
log
@Initial revision
@
text
@d1 21
a21 92
diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/lib/skip_freebsd.c skipsrc-1.0/skip/tools/lib/skip_freebsd.c
--- skipsrc-1.0.orig/skip/tools/lib/skip_freebsd.c	Fri Oct 25 13:13:02 1996
+++ skipsrc-1.0/skip/tools/lib/skip_freebsd.c	Fri Dec  5 17:33:01 1997
@@@@ -235,7 +235,7 @@@@
 char *
 skip_default_if()
 {
-#define	SKIP_DEFAULT_IF		"eth0"	/* 3com 3c589 */
+#define	SKIP_DEFAULT_IF		"ed1"
 	static char		devname[MAXPATHLEN];
 	char			cbuf[sizeof(struct ifreq) * 16];
 	struct ifconf		ifc;
@@@@ -244,6 +244,7 @@@@
 	struct sockaddr_in	*sa;
 	char			hostname[MAXHOSTNAMELEN];
 	int			s, n;
+	int			goodness = 0;
 
 	strcpy(devname, SKIP_DEFAULT_IF);
 
@@@@ -253,11 +254,13 @@@@
 
 	hp = _skip_gethostbyname(hostname);
 
+#if 0
 	if (hp == NULL) {
 		return(devname);
 	}
+#endif
 
-	if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
+	if ((s = socket(PF_INET, SOCK_RAW, 0)) < 0) {
 		return (devname);
 	}
 
@@@@ -276,33 +279,37 @@@@
 	 * just in case the primary can't be found.
 	 * 
 	 */
-	end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
-	while (ifr < end) {
+	for (end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len),
+	    ifr = ifc.ifc_req;
+	  ifr < end;
+	  ifr = (struct ifreq *)
+	    ((char *) &ifr->ifr_addr + ifr->ifr_addr.sa_len))
+	{
+		int	newgoodness = 0;
 
 		strcpy(ifflags.ifr_name, ifr->ifr_name);
 		if (ioctl(s, SIOCGIFFLAGS, (char *) &ifflags) < 0) {
-			/*goto out;*/
+			continue;
 		}
 		if ((ifflags.ifr_flags & (IFF_LOOPBACK|IFF_UP|IFF_RUNNING)) ==
 					(IFF_UP|IFF_RUNNING)) {
-			/*
-			 * note the interface name just in case
-			 */
-			strcpy(devname, ifr->ifr_name);
-			/*
-			 * but try to find an exact match
-			 */
-			sa = (struct sockaddr_in *) &ifr->ifr_addr;
-			if (memcmp(hp->h_addr_list[0], (void *) &sa->sin_addr,
-							hp->h_length) == 0) {
-					break;
+			/* try to find an exact match */
+			if (hp && ifr->ifr_addr.sa_family == AF_INET) {
+			    sa = (struct sockaddr_in *) &ifr->ifr_addr;
+			    if (memcmp(hp->h_addr_list[0],
+				(void *) &sa->sin_addr, hp->h_length) == 0)
+				    break;
+			}
+			/* try to prefer ethernet interfaces */
+			if (ifflags.ifr_flags & IFF_BROADCAST)
+				newgoodness += 1;
+			if (!(ifflags.ifr_flags & IFF_POINTOPOINT))
+				newgoodness += 1;
+			if (newgoodness > goodness) {
+				strcpy(devname, ifr->ifr_name);
+				goodness = newgoodness;
 			}
 		}
-		if(ifr->ifr_addr.sa_len)      /* Dohw! */
-			ifr = (struct ifreq *) ((caddr_t) ifr +
-			ifr->ifr_addr.sa_len -
-			sizeof(struct sockaddr));
-		ifr++;
 	}
 out:
  	(void) close(s);
@


1.1.1.1
log
@Add a package for the SKIP package from Sun Microsystems,
for making secure pipes across the internet (etc.)
@
text
@@
