xref: /openbsd-src/regress/usr.sbin/syslogd/args-only6.pl (revision bb7ea376b3b95bf0e689c799c1e5c542e041bf34)
1# The client writes a message to a localhost IPv6 UDP socket.
2# The syslogd writes it into a file and through a pipe.
3# The syslogd -6 passes it via IPv6 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 IPv4 socket in fstat output.
7
8use strict;
9use warnings;
10use Socket;
11
12our %args = (
13    client => {
14	connect => { domain => AF_INET6, addr => "::1", port => 514 },
15    },
16    syslogd => {
17	fstat => {
18	    qr/^root .* internet/ => 0,
19	    qr/^_syslogd .* internet/ => 1,
20	    qr/ internet / => 0,
21	},
22	loghost => '@[::1]:$connectport',
23	options => ["-6nu"],
24    },
25    server => {
26	listen => { domain => AF_INET6, addr => "::1" },
27    },
28    file => {
29	loggrep => qr/ ::1 /. get_testgrep(),
30    },
31);
32
331;
34