summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/syslogd/args-proto-udp4-only6.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.sbin/syslogd/args-proto-udp4-only6.pl')
-rw-r--r--regress/usr.sbin/syslogd/args-proto-udp4-only6.pl24
1 files changed, 24 insertions, 0 deletions
diff --git a/regress/usr.sbin/syslogd/args-proto-udp4-only6.pl b/regress/usr.sbin/syslogd/args-proto-udp4-only6.pl
new file mode 100644
index 00000000000..15235527117
--- /dev/null
+++ b/regress/usr.sbin/syslogd/args-proto-udp4-only6.pl
@@ -0,0 +1,24 @@
+# The client writes a message to Sys::Syslog native method.
+# The syslogd writes it into a file and through a pipe.
+# The syslogd -6 does not pass it via IPv4 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 => '@udp4://127.0.0.1',
+ loggrep => {
+ qr/syslogd: no udp4 "\@udp4:\/\/127.0.0.1/ => 2, # XXX 2?
+ get_log() => 1,
+ },
+ options => ["-6"],
+ },
+ server => {
+ noserver => 1,
+ },
+);
+
+1;