Browse Source

Plan 9 from Bell Labs 2008-04-11

David du Colombier 16 years ago
parent
commit
57d64947cc
4 changed files with 70 additions and 37 deletions
  1. 1 1
      dist/replica/_plan9.db
  2. 1 1
      dist/replica/plan9.db
  3. 1 0
      dist/replica/plan9.log
  4. 67 35
      sys/man/3/ip

+ 1 - 1
dist/replica/_plan9.db

@@ -7699,7 +7699,7 @@ sys/man/3/ether - 664 sys sys 1196638941 2890
 sys/man/3/floppy - 664 sys sys 1196638941 881
 sys/man/3/floppy - 664 sys sys 1196638941 881
 sys/man/3/fs - 664 sys sys 1196638942 3159
 sys/man/3/fs - 664 sys sys 1196638942 3159
 sys/man/3/i82365 - 664 sys sys 1196638942 884
 sys/man/3/i82365 - 664 sys sys 1196638942 884
-sys/man/3/ip - 664 sys sys 1203556247 26665
+sys/man/3/ip - 664 sys sys 1207867035 27434
 sys/man/3/kbin - 664 sys sys 1202938916 654
 sys/man/3/kbin - 664 sys sys 1202938916 654
 sys/man/3/kbmap - 664 sys sys 1196638942 1732
 sys/man/3/kbmap - 664 sys sys 1196638942 1732
 sys/man/3/kprof - 664 sys sys 1196638942 1377
 sys/man/3/kprof - 664 sys sys 1196638942 1377

+ 1 - 1
dist/replica/plan9.db

@@ -7699,7 +7699,7 @@ sys/man/3/ether - 664 sys sys 1196638941 2890
 sys/man/3/floppy - 664 sys sys 1196638941 881
 sys/man/3/floppy - 664 sys sys 1196638941 881
 sys/man/3/fs - 664 sys sys 1196638942 3159
 sys/man/3/fs - 664 sys sys 1196638942 3159
 sys/man/3/i82365 - 664 sys sys 1196638942 884
 sys/man/3/i82365 - 664 sys sys 1196638942 884
-sys/man/3/ip - 664 sys sys 1203556247 26665
+sys/man/3/ip - 664 sys sys 1207867035 27434
 sys/man/3/kbin - 664 sys sys 1202938916 654
 sys/man/3/kbin - 664 sys sys 1202938916 654
 sys/man/3/kbmap - 664 sys sys 1196638942 1732
 sys/man/3/kbmap - 664 sys sys 1196638942 1732
 sys/man/3/kprof - 664 sys sys 1196638942 1377
 sys/man/3/kprof - 664 sys sys 1196638942 1377

+ 1 - 0
dist/replica/plan9.log

@@ -18980,3 +18980,4 @@
 1207684804 0 c sys/src/cmd/hget.c - 664 sys sys 1207684941 26055
 1207684804 0 c sys/src/cmd/hget.c - 664 sys sys 1207684941 26055
 1207711803 0 c 386/bin/hget - 775 sys sys 1207711756 236502
 1207711803 0 c 386/bin/hget - 775 sys sys 1207711756 236502
 1207767605 0 c sys/man/8/ndb - 664 sys sys 1207767560 15239
 1207767605 0 c sys/man/8/ndb - 664 sys sys 1207767560 15239
+1207868404 0 c sys/man/3/ip - 664 sys sys 1207867035 27434

+ 67 - 35
sys/man/3/ip

@@ -94,10 +94,14 @@ Writing
 alters aspects of the interface.
 alters aspects of the interface.
 The possible
 The possible
 .I ctl
 .I ctl
-messages are:
-.\" .TF "bind loopback"
-.TF "bind netdev"
+messages are those described under
+.B "Protocol directories"
+below and these:
+.TF "\fLbind loopback\fR"
 .PD
 .PD
+.
+.\" from devip.c
+.
 .TP
 .TP
 .BI "bind ether " path
 .BI "bind ether " path
 Treat the device mounted at
 Treat the device mounted at
@@ -132,6 +136,9 @@ to receive and transmit IP packets.
 .BI "bind loopback "
 .BI "bind loopback "
 Treat this interface as a local loopback.  Anything
 Treat this interface as a local loopback.  Anything
 written to it will be looped back.
 written to it will be looped back.
+.
+.\" from ipifc.c
+.
 .TP
 .TP
 .B "unbind
 .B "unbind
 Disassociate the physical device from an IP interface.
 Disassociate the physical device from an IP interface.
@@ -169,16 +176,6 @@ to be connected to the local Ethernet.
 .BI remove\  "local mask"
 .BI remove\  "local mask"
 Remove a local IP address from an interface.
 Remove a local IP address from an interface.
 .TP
 .TP
-.BI addmulti\  Media-addr
-Treat the multicast
-.I Media-addr
-on this interface as a local address.
-.TP
-.BI remmulti\  Media-addr
-Remove the multicast address
-.I Media-addr
-from this interface.
-.TP
 .BI mtu\  n
 .BI mtu\  n
 Set the maximum transfer unit for this device to
 Set the maximum transfer unit for this device to
 .IR n .
 .IR n .
@@ -195,6 +192,10 @@ is missing or non-zero) or disallow
 .RI ( n
 .RI ( n
 is 0) forwarding packets between this interface and
 is 0) forwarding packets between this interface and
 others.
 others.
+.
+.\" remainder from netif.c (thus called from devether.c),
+.\" except add6 and ra6 from ipifc.c
+.
 .TP
 .TP
 .B bridge
 .B bridge
 Enable bridging (see
 Enable bridging (see
@@ -214,11 +215,24 @@ A
 .I type
 .I type
 of -1 means `all' but appears to be a no-op.
 of -1 means `all' but appears to be a no-op.
 .TP
 .TP
+.BI addmulti\  Media-addr
+Treat the multicast
+.I Media-addr
+on this interface as a local address.
+.TP
+.BI remmulti\  Media-addr
+Remove the multicast address
+.I Media-addr
+from this interface.
+.TP
 .B scanbs
 .B scanbs
 Make the wireless interface scan for base stations.
 Make the wireless interface scan for base stations.
 .TP
 .TP
 .B headersonly
 .B headersonly
 Set the interface to pass only packet headers, not data too.
 Set the interface to pass only packet headers, not data too.
+.
+.\" remainder from ipifc.c; tedious, so put them last
+.
 .TP
 .TP
 .BI "add6 " "v6addr pfx-len [onlink auto validlt preflt]"
 .BI "add6 " "v6addr pfx-len [onlink auto validlt preflt]"
 Add the local IPv6 address
 Add the local IPv6 address
@@ -229,7 +243,7 @@ to this interface.
 See RFC 2461 §6.2.1 for more detail.
 See RFC 2461 §6.2.1 for more detail.
 The remaining arguments are optional:
 The remaining arguments are optional:
 .RS
 .RS
-.TF onlink
+.TF "\fIonlink\fR"
 .TP
 .TP
 .I onlink
 .I onlink
 flag: address is `on-link'
 flag: address is `on-link'
@@ -255,7 +269,7 @@ and the meanings of their values follow.
 See RFC 2461 §6.2.1 for more detail.
 See RFC 2461 §6.2.1 for more detail.
 Flags are true iff non-zero.
 Flags are true iff non-zero.
 .RS
 .RS
-.TF minraint
+.TF "\fLreachtime\fR"
 .TP
 .TP
 .B recvra
 .B recvra
 flag: receive and process RAs.
 flag: receive and process RAs.
@@ -356,7 +370,7 @@ indicate what routing protocol originated the route.
 Writing to
 Writing to
 .B /net/iproute
 .B /net/iproute
 changes the route table.  The messages are:
 changes the route table.  The messages are:
-.TF "tag str"
+.TF "\fLtag \fIstring\fR"
 .PD
 .PD
 .TP
 .TP
 .B flush
 .B flush
@@ -387,7 +401,7 @@ Writing to
 .B /net/arp
 .B /net/arp
 administers the ARP information.
 administers the ARP information.
 The control messages are:
 The control messages are:
-.TF "del addr"
+.TF "\fLdel \fIIP-addr\fR"
 .PD
 .PD
 .TP
 .TP
 .B flush
 .B flush
@@ -425,7 +439,7 @@ about bad packets.
 Writing to
 Writing to
 .B /net/log
 .B /net/log
 controls debugging.  The control messages are:
 controls debugging.  The control messages are:
-.TF "clear addr"
+.TF "\fLclear \fIarglist\fR"
 .PD
 .PD
 .TP
 .TP
 .BI set\  arglist
 .BI set\  arglist
@@ -549,7 +563,7 @@ file (see
 to receive incoming calls.
 to receive incoming calls.
 .PP
 .PP
 The following control messages are supported:
 The following control messages are supported:
-.TF announceX
+.TF "\fLremmulti \fIip\fR"
 .PD
 .PD
 .TP
 .TP
 .BI connect\  ip-address ! port "!r " local
 .BI connect\  ip-address ! port "!r " local
@@ -604,17 +618,18 @@ This exists to support emulation
 of BSD sockets by the APE libraries (see
 of BSD sockets by the APE libraries (see
 .IR pcc (1))
 .IR pcc (1))
 and is not otherwise used.
 and is not otherwise used.
-.TP
-.BI backlog\  n
-Set the maximum number of unanswered (queued) incoming
-connections to an announced port to
-.IR n .
-By default
-.I n
-is set to five.  If more than
-.I n
-connections are pending,
-further requests for a service will be rejected.
+.\" this is gone
+.\" .TP
+.\" .BI backlog\  n
+.\" Set the maximum number of unanswered (queued) incoming
+.\" connections to an announced port to
+.\" .IR n .
+.\" By default
+.\" .I n
+.\" is set to five.  If more than
+.\" .I n
+.\" connections are pending,
+.\" further requests for a service will be rejected.
 .TP
 .TP
 .BI ttl\  n
 .BI ttl\  n
 Set the time to live IP field in outgoing packets to
 Set the time to live IP field in outgoing packets to
@@ -623,6 +638,23 @@ Set the time to live IP field in outgoing packets to
 .BI tos\  n
 .BI tos\  n
 Set the service type IP field in outgoing packets to
 Set the service type IP field in outgoing packets to
 .IR n .
 .IR n .
+.TP
+.B ignoreadvice
+Don't break (UDP) connections because of ICMP errors.
+.TP
+.BI addmulti\  "ifc-ip [ mcast-ip ]"
+Treat
+.I ifc-ip
+on this multicast interface as a local address.
+If
+.I mcast-ip
+is present,
+use it as the interface's multicast address.
+.TP
+.BI remmulti\  ip
+Remove the address
+.I ip
+from this multicast interface.
 .PP
 .PP
 Port numbers must be in the range 1 to 32767.
 Port numbers must be in the range 1 to 32767.
 .PP
 .PP
@@ -667,7 +699,7 @@ ends.
 TCP
 TCP
 .B ctl
 .B ctl
 files support the following additional messages:
 files support the following additional messages:
-.TF checksumnn
+.TF "\fLkeepalive\fI n\fR"
 .PD
 .PD
 .TP
 .TP
 .B hangup
 .B hangup
@@ -818,7 +850,7 @@ file, and the conversation resumes.
 RUDP
 RUDP
 .I ctl
 .I ctl
 files accept the following messages:
 files accept the following messages:
-.TF "randdrop percent"
+.TF "\fLranddrop \fI[ percent ]\fR"
 .TP
 .TP
 .B headers
 .B headers
 Corresponds to the
 Corresponds to the
@@ -928,7 +960,7 @@ Received packets are checked against their MAC's,
 decrypted, and queued for reading from
 decrypted, and queued for reading from
 .BR data .
 .BR data .
 The control messages are:
 The control messages are:
-.TF "alg secret"
+.TF "\fLesp \fIalg secret\fR"
 .PD
 .PD
 .TP
 .TP
 .BI esp\  "alg secret
 .BI esp\  "alg secret
@@ -988,7 +1020,7 @@ file are routed to an interface and transmitted.
 A filter is a semicolon-separated list of
 A filter is a semicolon-separated list of
 relations.  Each relation describes a portion
 relations.  Each relation describes a portion
 of a packet to match.  The possible relations are:
 of a packet to match.  The possible relations are:
-.TF "iph[n:m]=expr"
+.TF "\fLdata[\fIn\fL:\fIm\fL]=\fIexpr\fR "
 .PD
 .PD
 .TP
 .TP
 .BI proto= n
 .BI proto= n
@@ -1203,7 +1235,7 @@ header length errors
 .IR listen (8)
 .IR listen (8)
 .br
 .br
 .PD 0
 .PD 0
-.TF /lib/rfc/rfc2822
+.TF "\fL/lib/rfc/rfc2822"
 .TP
 .TP
 .B /lib/rfc/rfc2460
 .B /lib/rfc/rfc2460
 IPv6
 IPv6