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 IPv4 TCP to an explicit loghost.
4# The server receives the message on its TCP socket.
5# Find the message in client, file, pipe, syslogd, server log.
6# Syslogd should send to a non existing UDP host, DNS lookup fails.
7# Check that the syslogd keeps UDP sockets in fstat output.
8
9use strict;
10use warnings;
11use Socket;
12
13our %args = (
14    syslogd => {
15	loghost => '@tcp://127.0.0.1:$connectport',
16	conf => "*.*\t\@udp6://nonexist.example.com\n",
17	fstat => {
18	    qr/ internet dgram udp \*:514$/ => 0,
19	    qr/ internet6 dgram udp \*:514$/ => 1,
20	},
21    },
22    server => {
23	listen => { domain => AF_INET, proto => "tcp", addr => "127.0.0.1" },
24    },
25);
26
271;
28