head	1.3;
access;
symbols
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2001.09.07.19.45.46;	author nectar;	state dead;
branches;
next	1.2;

1.2
date	2001.01.04.16.30.04;	author nectar;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.09.23.35.03;	author nectar;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Update 0.4d -> 0.4e
@
text
@--- lib/roken/socket.c.orig	Wed Jul 26 23:41:06 2000
+++ lib/roken/socket.c	Fri Nov  3 11:56:34 2000
@@@@ -222,6 +222,31 @@@@
 }
 
 /*
+ * Set the range of ports to use when binding with port = 0.
+ */
+void
+socket_set_portrange (int sock, int restrict, int af)
+{
+#if defined(IP_PORTRANGE)
+	if (af == AF_INET) {
+		int on = restrict ? IP_PORTRANGE_HIGH : IP_PORTRANGE_DEFAULT;
+		if (setsockopt (sock, IPPROTO_IP, IP_PORTRANGE, &on,
+		    sizeof(on)) < 0)
+			warn ("setsockopt IP_PORTRANGE (ignored)");
+	}
+#endif
+#if defined(IPV6_PORTRANGE)
+	if (af == AF_INET6) {
+		int on = restrict ? IPV6_PORTRANGE_HIGH : 
+		    IPV6_PORTRANGE_DEFAULT;
+		if (setsockopt (sock, IPPROTO_IPV6, IPV6_PORTRANGE, &on,
+		    sizeof(on)) < 0)
+			warn ("setsockopt IPV6_PORTRANGE (ignored)");
+	}
+#endif
+}
+	
+/*
  * Enable debug on `sock'.
  */
@


1.2
log
@= Update to use OpenSSL in the base if it has MD4 support (version 0.9.6
  or later).  If these libraries are used, then this port's libdes will
  not be built nor installed.

= A man page was renamed that I missed earlier: afs.3 -> kafs.3
@
text
@@


1.1
log
@= Use system libcom_err.
  No longer build or install the included libcom_err and compile_et.

= ftpd now uses IP_PORTRANGE* in the same fashion as the system ftpd.
  By default, ftpd will now use high port numbers for serving clients
  in passive mode.

= Fix segmentation fault in kadmin.
  A null pointer dereference that was only tickled when using kadmin
  with a kdc that uses LDAP as the backend.

= Fix a search filter in hdb-ldap.c.
  A lookup was failing to fetch operational attributes such as
  modifiersName.

= Bump PORTREVISION for above changes.
@
text
@a33 1
 
@

