shithub: riscv

Download patch

ref: 04b8539ee29154c7455027c4cae457db79ad8fb7
parent: 48fa332c61fe037b3f89575c2333df9216652316
author: aiju <devnull@localhost>
date: Thu Jun 1 03:07:55 EDT 2017

plan9.ini(8): document netconsole

--- a/sys/man/8/plan9.ini
+++ b/sys/man/8/plan9.ini
@@ -623,6 +623,29 @@
 .LP
 would use COM1 at 19,200 baud
 with odd parity.
+.LP
+The value
+.B net
+specifies ``netconsole'' which sends console messages as UDP packets over the network.
+It bypasses the IP stack and writes Ethernet packets directly to the NIC.
+In this case
+.I params
+is mandatory and takes the form
+.IP
+\fIsrcip\fR [ \fB!\fIsrcport \fR] [ \fB/\fIdevno \fR] \fB, \fIdstip\fR [ \fB!\fIdstport \fR] [ \fB/\fIdstmac \fR]
+.LP
+\fISrcip\fR, \fIsrcport\fR (default 6665), \fIdstip\fR and \fIdstport\fR (default 6666) specify the source IP address, source port, destination IP address and destination port, respectively.
+\fIDevno\fR (default 0) specifies which NIC to use, a value of \fIn\fR corresponds to NIC at \fL#l\fIn\fR (see
+.IR ether (3)).
+\fIDstmac\fR specifies the destination MAC address; broadcast packets are sent if it is unspecified.
+Note that it is possible, but not recommended, to send packets to a host outside the local network by specifying the MAC address of the gateway as \fIdstmac\fR.
+Example lines are
+.IP
+.EX
+console=net 192.168.0.4,192.168.0.8
+console=net 192.168.2.10!1337/1,192.168.2.3!1337/0ea7deadbeef
+.EE
+.LP
 .SS "PC CARD"
 .SS \fLpccard0=disabled\fP
 Disable probing for and automatic configuration of PC card controllers.