summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/syslogd/args-proto-udp6-only4.pl
blob: 1977824f6b19abe67eb8680a16cc7212122ef25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# The client writes a message to Sys::Syslog native method.
# The syslogd writes it into a file and through a pipe.
# The syslogd -4 does not pass it via IPv6 UDP to the loghost.
# Find the message in client, file, pipe, syslogd log.
# Check that the syslogd logs the error.

use strict;
use warnings;

our %args = (
    syslogd => {
	loghost => '@udp6://[::1]',
	loggrep => {
	    qr/syslogd: no udp6 "\@udp6:\/\/\[::1\]/ => 2,
	    get_testlog() => 1,
	},
	options => ["-4"],
    },
    server => {
	noserver => 1,
    },
);

1;