xref: /openbsd-src/regress/usr.sbin/syslogd/args-socket.pl (revision f2da64fbbbf1b03f09f390ab01267c93dfd77c4c)
1# Test with default values, that is:
2# The client writes a message to a localhost IPv4 UDP socket.
3# The syslogd writes it into a file and through a pipe.
4# The syslogd passes it via UDP to the loghost.
5# The server receives the message on its UDP socket.
6# Find the message in client, file, pipe, syslogd, server log.
7# Check that the syslogd has one IPv4 socket in fstat output.
8
9use strict;
10use warnings;
11use Socket;
12
13our %args = (
14    client => {
15	connect => { domain => AF_INET, addr => "127.0.0.1", port => 514 },
16    },
17    syslogd => {
18	fstat => {
19	    qr/ internet dgram udp \*:514$/ => 1,
20	    qr/ internet6 dgram udp \*:514$/ => 1,
21	},
22	options => ["-nu"],
23    },
24);
25
261;
27