summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-07-31 06:06:41 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-09-24 13:17:24 -0500
commit7f51898c1b170e0036e6931a17ada46e2b4fd52e (patch)
tree7a7d89b028823b905401395dc7dcfc0b5da38761 /doc
parentee1f4caaa2a3f79d692155eec8a4c7289d60e106 (diff)
net: Make netconsole src and dest ports configurable
It is desirable to use different port numbers for sending and receiving packets with netconsole in the case where you have more than one device on the local subnet with netconsole enabled for broadcast. When they use the same port for both, any output from one will look like input to the other. This is typlically not desirable. This patch allows the input and output ports to be specified separately in the environment. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Cc: Mike Frysinger <vapier@gentoo.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/README.NetConsole3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/README.NetConsole b/doc/README.NetConsole
index c8bcb90a392..070e86a6f78 100644
--- a/doc/README.NetConsole
+++ b/doc/README.NetConsole
@@ -11,6 +11,9 @@ port of the destination. The format is <ip_addr>:<port>. If <port> is
omitted, the value of 6666 is used. If the env var doesn't exist, the
broadcast address and port 6666 are used. If it is set to an IP
address of 0 (or 0.0.0.0) then no messages are sent to the network.
+The source / listening port can be configured separately by setting
+the 'ncinport' environment variable and the destination port can be
+configured by setting the 'ncoutport' environment variable.
For example, if your server IP is 192.168.1.1, you could use: