summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-01-02 13:42:37 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-01-02 13:42:37 +0000
commit4ae9dcfb00d45b3bb77d7dd494a43f6b4993ed06 (patch)
tree8ade329f05af8b61ccebc20263b54bd46885b98e /lib/libc/gen
parent8c3e0f5fc92288480b324340714467ef82dad4a6 (diff)
add description for PF_INET6 (net.inet6.*).
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/sysctl.3149
1 files changed, 145 insertions, 4 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 0b9be1af9dd..d77c24b8b4f 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.3,v 1.31 1999/12/30 20:56:28 provos Exp $
+.\" $OpenBSD: sysctl.3,v 1.32 2000/01/02 13:42:36 itojun Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -475,7 +475,8 @@ privileges may change the value.
.Bl -column "Second level nameXXXXXX" "routing messagesXXX" -offset indent
.It Sy Second level name Type Changeable
.It Dv PF_ROUTE No " routing messages no"
-.It Dv PF_INET No " internet values yes"
+.It Dv PF_INET No " IPv4 values yes"
+.It Dv PF_INET6 No " IPv6 values yes"
.It Dv PF_ENCAP No " IPsec values yes"
.El
.Pp
@@ -519,7 +520,8 @@ The fifth and sixth level names are as follows:
.It Dv NET_RT_IFLIST No " None"
.El
.It Dv PF_INET
-Get or set various global information about the internet protocols.
+Get or set various global information about IPv4
+.Pq Internet Protocol version 4 .
The third level name is the protocol.
The fourth level name is the variable name.
The currently defined protocols and names are:
@@ -628,6 +630,139 @@ but for
.Tn UDP
sockets.
.El
+.It Dv PF_INET6
+Get or set various global information about IPv6
+.Pq Internet Protocol version 6 .
+The third level name is the protocol.
+The fourth level name is the variable name.
+The currently defined protocols and names are:
+.Bl -column "Protocol name" "Variable nameXX" "integer" "yes" -offset indent
+.It Pa Protocol name Variable name Type Changeable
+.It ip6 forwarding integer yes
+.It ip6 redirect integer yes
+.It ip6 hlim integer yes
+.It ip6 maxfragpackets integer yes
+.It ip6 accept_rtadv integer yes
+.It ip6 keepfaith integer yes
+.It ip6 log_interval integer yes
+.It ip6 hdrnestlimit integer yes
+.It ip6 dad_count integer yes
+.It ip6 auto_flowlabel integer yes
+.It ip6 defmcasthlim integer yes
+.It ip6 gif_hlim integer yes
+.It ip6 kame_version string no
+.It icmp6 rediraccept integer yes
+.It icmp6 redirtimeout integer yes
+.It icmp6 errratelimit integer yes
+.It icmp6 nd6_prune integer yes
+.It icmp6 nd6_delay integer yes
+.It icmp6 nd6_umaxtries integer yes
+.It icmp6 nd6_mmaxtries integer yes
+.It icmp6 nd6_useloopback integer yes
+.It icmp6 nd6_proxyall integer yes
+.It icmp6 nodeinfo integer yes
+.El
+.Pp
+The variables are as follows:
+.Bl -tag -width "123456"
+.It Li ip6.forwarding
+Returns 1 when IPv6 forwarding is enabled for the node,
+meaning that the node is acting as a router.
+.It Li ip6.redirect
+Returns 1 when ICMPv6 redirects may be sent by the node.
+This option is ignored unless the node is routing IP packets,
+and should normally be enabled on all systems.
+.It Li ip6.hlim
+The default hop limit value for an IPv6 unicast packet sourced by the node.
+This value applies to all the transport protocols on top of IPv6.
+There are APIs to override the value, as documented in
+.Xr ip6 4 .
+.It Li ip6.maxfragpackets
+The maximum number of fragmented packets the node will accept.
+0 means that the node will not accept any fragmented packets.
+-1 means that the node will accept as many fragmented packets as it receives.
+The flag is provided basically for avoiding possible DoS attacks.
+.It Li ip6.accept_rtadv
+If set to non-zero, the node will accept ICMPv6 router advertisement packets
+and autoconfigures address prefixes and default routers.
+The node must be a host
+.Pq not a router
+for the option to be meaningful.
+.It Li ip6.keepfaith
+If set to non-zero, it enables
+.Dq FAITH
+TCP relay IPv6-to-IPv4 translator code in the kernel.
+Refer
+.Xr faith 4
+and
+.Xr faithd 8
+for detail.
+.It Li ip6.log_interval
+The variable controls amount of logs generated by IPv6 packet
+forwarding engine, by seting interval between log output
+.Pq in seconds .
+.It Li ip6.hdrnestlimit
+The number of IPv6 extension headers permitted on incoming IPv6 packets.
+If set to 0, the node will accept as many extension headers as possible.
+.It Li ip6.dad_count
+The variable cofigures number of IPv6 DAD
+.Pq duplicated address detection
+probe packets.
+The packets will be generated when IPv6 interface addresses are configured.
+.It Li ip6.auto_flowlabel
+On connected transport protocol packets,
+fill IPv6 flowlabel field to help intermediate routers to identify packet flows.
+.It Li ip6.defmcasthlim
+The default hop limit value for an IPv6 multicast packet sourced by the node.
+This value applies to all the transport protocols on top of IPv6.
+There are APIs to override the value, as documented in
+.Xr ip6 4 .
+.It Li ip6.gif_hlim
+The maximum hop limit value for an IPv6 packet generated by
+.Xr gif 4
+tunnel interface.
+.It Li ip6.kame_version
+The string identifies the version of KAME IPv6 stack implemented in the kernel.
+.It Li icmp6.rediraccept
+If set to non-zero, the host will accept ICMPv6 redirect packets.
+Note that IPv6 routers will never accept ICMPv6 redirect packets,
+and the variable is meaningful on IPv6 hosts
+.Pq non-router
+only.
+.It Li icmp6.redirtimeout
+The variable specifies lifetime of routing entries generated by incoming
+ICMPv6 redirect.
+.It Li icmp6.errratelimit
+The variable specifies interval between ICMPv6 error messages,
+in microseconds.
+.It Li icmp6.nd6_prune
+The variable specifies interval between IPv6 neighbor cache babysitting,
+in seconds.
+.It Li icmp6.nd6_delay
+The variable specifies
+.Dv DELAY_FIRST_PROBE_TIME
+timing constant in IPv6 neighbor discovery specification
+.Pq RFC2461 ,
+in seconds.
+.It Li icmp6.nd6_umaxtries
+The variable specifies
+.Dv MAX_UNICAST_SOLICIT
+constant in IPv6 neighbor discovery specification
+.Pq RFC2461 .
+.It Li icmp6.nd6_mmaxtries
+The variable specifies
+.Dv MAX_MULTICAST_SOLICIT
+constant in IPv6 neighbor discovery specification
+.Pq RFC2461 .
+.It Li icmp6.nd6_useloopback
+If set to non-zero, kernel IPv6 stack will use loopback interface for
+local traffic.
+.It Li icmp6.nd6_proxyall
+The variable enables proxy neighbor advertisements.
+.It Li icmp6.nodeinfo
+The variable enables, or disables, kernel support for
+ICMPv6 node information query/reply.
+.El
.El
.Ss CTL_USER
The string and integer information available for the
@@ -815,14 +950,20 @@ definitions for third level profiling identifiers
.It Aq Pa vm/vm_param.h
definitions for second level virtual memory identifiers
.It Aq Pa netinet/in.h
-definitions for third level Internet identifiers and
+definitions for third level IPv4/v6 identifiers and
fourth level
.Tn IP
+and
+.Tn IPv6
identifiers
.It Aq Pa netinet/icmp_var.h
definitions for fourth level
.Tn ICMP
identifiers
+.It Aq Pa netinet/icmp6.h
+definitions for fourth level
+.Tn ICMPv6
+identifiers
.It Aq Pa netinet/tcp_var.h
definitions for fourth level
.Tn TCP