1# The client writes a message to Sys::Syslog native method.
2# The syslogd writes it into a file and through a pipe.
3# The syslogd passes it via default loghost, IPv4, IPv6 to UDP server.
4# The server receives the message twice on its UDP socket.
5# Find the message in client, file, pipe, syslogd, server log.
6# Check that the syslogd has IPv4 and IPv6 dgram socket in fstat output.
7
8use strict;
9use warnings;
10use Socket;
11
12our %args = (
13    syslogd => {
14	fstat => {
15	    qr/^root .* internet/ => 0,
16	    qr/^_syslogd .* internet/ => 2,
17	    qr/ internet dgram udp \*:514$/ => 1,
18	    qr/ internet6 dgram udp \*:514$/ => 1,
19	},
20	conf =>
21	    "*.*\t\@[127.0.0.1]:\$connectport\n".
22	    "*.*\t\@[::1]:\$connectport\n",
23    },
24    server => {
25	loggrep => {
26	    get_testgrep() => 2,
27	},
28    },
29);
30
311;
32