From cc3cd744d9997b3b5a2f5f9a5a311330c179b4fb Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Mon, 15 Jun 2020 21:51:21 +0200 Subject: [PATCH] Address UDP-RECV does not support option fork --- CHANGES | 4 ++++ doc/socat.yo | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 2dccaf6..1234423 100644 --- a/CHANGES +++ b/CHANGES @@ -182,6 +182,10 @@ New features: Added AF_VSOCK support with VSOCK-CONNECT and VSOCK-LISTEN addresses. Developed by Stefano Garzarella. +Documentation: + Address UDP-RECV does not support option fork. + Thanks to Fulvio Scapin for reporting that mistake in docu. + ####################### V 1.7.3.4: Corrections: diff --git a/doc/socat.yo b/doc/socat.yo index 4124a35..c275999 100644 --- a/doc/socat.yo +++ b/doc/socat.yo @@ -1229,10 +1229,10 @@ label(ADDRESS_UDP_RECV)dit(bf(tt(UDP-RECV:))) Creates a UDP socket on [link(UDP service)(TYPE_UDP_SERVICE)] using UDP/IP version 4 or 6 depending on option link(pf)(OPTION_PROTOCOL_FAMILY). It receives packets from multiple unspecified peers and merges the data. - No replies are possible. It works well with, e.g., socat UDP-SENDTO address peers; it behaves similar to a syslog server.nl() + No replies are possible. It works well with, e.g., socat link(UDP-SENDTO)(ADDRESS_UDP_SENDTO) address peers; it behaves similar to a syslog server.nl() + Note: if you need the link(fork)(OPTION_FORK) option, use link(UDP-RECVFROM)(ADDRESS_UDP_RECVFROM) in unidirectional mode (with link(option -u)(option_u)) instead.nl() Option groups: link(FD)(GROUP_FD),link(SOCKET)(GROUP_SOCKET),link(IP4)(GROUP_IP4),link(IP6)(GROUP_IP6),link(RANGE)(GROUP_RANGE) nl() Useful options: - link(fork)(OPTION_FORK), link(pf)(OPTION_PROTOCOL_FAMILY), link(bind)(OPTION_BIND), link(sourceport)(OPTION_SOURCEPORT), @@ -1330,7 +1330,7 @@ label(ADDRESS_UNIX_RECV)dit(bf(tt(UNIX-RECV:))) Creates a unixdomain() datagram socket [link()(TYPE_FILENAME)]. Receives packets from multiple unspecified peers and merges the data. No replies are possible. It can be, e.g., addressed by socat UNIX-SENDTO address peers. - It behaves similar to a syslog server. + It behaves similar to a syslog server.nl() Option groups: link(FD)(GROUP_FD),link(SOCKET)(GROUP_SOCKET),link(NAMED)(GROUP_NAMED),link(UNIX)(GROUP_SOCK_UNIX) nl() See also: link(UNIX-SENDTO)(ADDRESS_UNIX_SENDTO),