SHA256
1
0
forked from pool/ser2net
ser2net/ser2net-config.patch
Marcus Meissner 78b5ccd72c Accepting request 630673 from home:algraf:branches:network:utilities
- Update to version 3.5
  - allows to declare device aliases which enabled by-path device names
  - adapted ser2net-config.patch
  - builds with autoconf, add build dependencies (autoconf, automake, libtool)

OBS-URL: https://build.opensuse.org/request/show/630673
OBS-URL: https://build.opensuse.org/package/show/network:utilities/ser2net?expand=0&rev=11
2018-09-06 14:42:00 +00:00

86 lines
3.2 KiB
Diff

--- a/ser2net.conf
+++ b/ser2net.conf
@@ -275,6 +275,9 @@
CLOSESTR:close1:close str\r\n
+#example for modern USB<->serial adapters, telnet to port 6969
+#6969:telnet:0:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS -XONXOFF -LOCAL -RTSCTS
+
# Don't do this by default
CONTROLPORT:localhost,2000
@@ -323,26 +326,26 @@
#192.168.27.3,2001:raw:600:/dev/ttyS0:9600 NONE 1STOPBIT 8DATABITS XONXOFF \
# LOCAL -RTSCTS
#2002:raw:600:/dev/ttyS1:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS
-2003:raw:5:/dev/ttyS2:9600
-2004:raw:5:/dev/ttyS3:115200
-2005:raw:5:/dev/ttyS4:9600
-2006:raw:5:/dev/ttyS5:9600
-2007:raw:5:/dev/ttyS6:9600 tw=tw1 tr=tr1
-3001:telnet:0:/dev/ttyS0:19200 remctl banner1
-3011:telnet:3:/dev/ttyS0:19200 banner2
+#2003:raw:5:/dev/ttyS2:9600
+#2004:raw:5:/dev/ttyS3:115200
+#2005:raw:5:/dev/ttyS4:9600
+#2006:raw:5:/dev/ttyS5:9600
+#2007:raw:5:/dev/ttyS6:9600 tw=tw1 tr=tr1
+#3001:telnet:0:/dev/ttyS0:19200 remctl banner1
+#3011:telnet:3:/dev/ttyS0:19200 banner2
#3002:telnet:0:/dev/ttyS1:9600
-3003:telnet:0:/dev/ttyS2:9600 banner3
-3003:telnet:0:/dev/ttyS2:9600 signature1 rs485=rs485port1
-3004:telnet:0:/dev/ttyS3:115200
-3005:telnet:0:/dev/ttyS4:9600
-3006:telnet:0:/dev/ttyS5:9600 open1 net-to-dev-bufsize=128
-3007:telnet:0:/dev/ttyS6:9600 close1 dev-to-net-bufsize=128
-5001:rawlp:10:/dev/lp0
-
-3020:telnet:0:/dev/ttyUSB0:115200 banner1 remctl telnet_brk_on_sync -chardelay \
- open1 max-connections=3
-udp,3020:raw:10:/dev/ttyUSB0:115200 banner1 remctl telnet_brk_on_sync \
- -chardelay open1 max-connections=1
+#3003:telnet:0:/dev/ttyS2:9600 banner3
+#3003:telnet:0:/dev/ttyS2:9600 signature1 rs485=rs485port1
+#3004:telnet:0:/dev/ttyS3:115200
+#3005:telnet:0:/dev/ttyS4:9600
+#3006:telnet:0:/dev/ttyS5:9600 open1 net-to-dev-bufsize=128
+#3007:telnet:0:/dev/ttyS6:9600 close1 dev-to-net-bufsize=128
+#5001:rawlp:10:/dev/lp0
+
+#3020:telnet:0:/dev/ttyUSB0:115200 banner1 remctl telnet_brk_on_sync -chardelay \
+# open1 max-connections=3
+#udp,3020:raw:10:/dev/ttyUSB0:115200 banner1 remctl telnet_brk_on_sync \
+# -chardelay open1 max-connections=1
# Bind only to ipv4 example
#ipv4,3020:telnet:0:/dev/ttyUSB0:115200 remctl
@@ -362,18 +365,18 @@
#3020:telnet:0:/dev/ttyUSB0:115200 remctl remaddr=otherserver,0
# A device file with ":" in it...
-DEVICE:MyUSBPort:/dev/serial/by-path/pci-0000:00:1d.0-usb-0:1.8.2.2:1.0-port0
-DEFAULT:speed:115200
+#DEVICE:MyUSBPort:/dev/serial/by-path/pci-0000:00:1d.0-usb-0:1.8.2.2:1.0-port0
+#DEFAULT:speed:115200
-3021:telnet:0:MyUSBPort:banner2 open1 close1 remctl closehtml \
- chardelay-scale=15 chardelay-min=500 chardelay-max=10000 \
- max-connections=2
+#3021:telnet:0:MyUSBPort:banner2 open1 close1 remctl closehtml \
+# chardelay-scale=15 chardelay-min=500 chardelay-max=10000 \
+# max-connections=2
# SOL connections
-3022:telnet:0:sol.lan -U minyard -P test i-ipmi:115200 banner
-3023:telnet:0:sol.lan -U admin -P admin t-crb8800-ipmi-1:115200 banner
+#3022:telnet:0:sol.lan -U minyard -P test i-ipmi:115200 banner
+#3023:telnet:0:sol.lan -U admin -P admin t-crb8800-ipmi-1:115200 banner
-ROTATOR:4001:3021 3022 3023
+#ROTATOR:4001:3021 3022 3023
#5000:telnet:0:/dev/ttyAPP0:9600 NONE 1STOPBIT 8DATABITS -XONXOFF LOCAL \
# -RTSCTS led-tx=tx led-rx=rx