1# The client writes a message to a localhost IPv4 UDP socket. 2# The syslogd writes it into a file and through a pipe. 3# The syslogd -4 passes it via IPv4 UDP to the loghost. 4# The server receives the message on its UDP socket. 5# Find the message in client, file, pipe, syslogd, server log. 6# Check that the syslogd has no IPv6 socket in fstat output. 7 8use strict; 9use warnings; 10use Socket; 11 12our %args = ( 13 client => { 14 connect => { domain => AF_INET, addr => "127.0.0.1", port => 514 }, 15 }, 16 syslogd => { 17 fstat => { 18 qr/^root .* internet/ => 0, 19 qr/^_syslogd .* internet/ => 1, 20 qr/ internet6 / => 0, 21 }, 22 loghost => '@127.0.0.1:$connectport', 23 options => ["-4nu"], 24 }, 25 server => { 26 listen => { domain => AF_INET, addr => "127.0.0.1" }, 27 }, 28 file => { 29 loggrep => qr/ 127.0.0.1 /. get_testgrep(), 30 }, 31); 32 331; 34