summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2006-03-28 12:51:22 +0000
committerdwmalone <dwmalone@FreeBSD.org>2006-03-28 12:51:22 +0000
commitb5db288bf69a4cfb9c1c4cf659bfd91b9f8052b7 (patch)
tree00be43e7b0348927e3e607567fc4675809dfc7f8 /sys/netinet6
parent61ae660ca77ea2033c02a8dfb4e0b511d19c1e18 (diff)
downloadFreeBSD-src-b5db288bf69a4cfb9c1c4cf659bfd91b9f8052b7.zip
FreeBSD-src-b5db288bf69a4cfb9c1c4cf659bfd91b9f8052b7.tar.gz
This comment on various IPPORT_ defines was copied from in.h and
probably never fully applied to IPv6. Over time it has become more stale, so replace it with something more up to date. Reviewed by: ume MFC after: 1 month
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.h28
1 files changed, 3 insertions, 25 deletions
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index d5c0b23..4df2b87 100644
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -77,31 +77,9 @@
#define __KAME_VERSION "FreeBSD"
/*
- * Local port number conventions:
- *
- * Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root),
- * unless a kernel is compiled with IPNOPRIVPORTS defined.
- *
- * When a user does a bind(2) or connect(2) with a port number of zero,
- * a non-conflicting local port address is chosen.
- *
- * The default range is IPPORT_ANONMIN to IPPORT_ANONMAX, although
- * that is settable by sysctl(3); net.inet.ip.anonportmin and
- * net.inet.ip.anonportmax respectively.
- *
- * A user may set the IPPROTO_IP option IP_PORTRANGE to change this
- * default assignment range.
- *
- * The value IP_PORTRANGE_DEFAULT causes the default behavior.
- *
- * The value IP_PORTRANGE_HIGH is the same as IP_PORTRANGE_DEFAULT,
- * and exists only for FreeBSD compatibility purposes.
- *
- * The value IP_PORTRANGE_LOW changes the range to the "low" are
- * that is (by convention) restricted to privileged processes.
- * This convention is based on "vouchsafe" principles only.
- * It is only secure if you trust the remote host to restrict these ports.
- * The range is IPPORT_RESERVEDMIN to IPPORT_RESERVEDMAX.
+ * IPv6 port allocation rules should mirror the IPv4 rules and are controlled
+ * by the the net.inet.ip.portrange sysctl tree. The following defines exist
+ * for compatibility with userland applications that need them.
*/
#if __BSD_VISIBLE
#define IPV6PORT_RESERVED 1024
OpenPOWER on IntegriCloud