summaryrefslogtreecommitdiff
path: root/regress/sys/net/pf_divert/args-rip-reply.pl
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2015-07-28 12:31:30 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2015-07-28 12:31:30 +0000
commit9ee53e869876be6a6d019c35178223271edf7c80 (patch)
treeeb06c7dc4a35ed6ef4d0b70a96e3ade220c4dd03 /regress/sys/net/pf_divert/args-rip-reply.pl
parent6a8a43c328009d9b99f46847cb6e900d2bfb7de3 (diff)
Add more and deeper tests for pf divert-reply rules. Especially
the combination of sending and receiving multiple packets over one socket is tested for UDP, raw IP and ICMP.
Diffstat (limited to 'regress/sys/net/pf_divert/args-rip-reply.pl')
-rw-r--r--regress/sys/net/pf_divert/args-rip-reply.pl11
1 files changed, 5 insertions, 6 deletions
diff --git a/regress/sys/net/pf_divert/args-rip-reply.pl b/regress/sys/net/pf_divert/args-rip-reply.pl
index 1c71ecddb20..0744f48fe76 100644
--- a/regress/sys/net/pf_divert/args-rip-reply.pl
+++ b/regress/sys/net/pf_divert/args-rip-reply.pl
@@ -5,10 +5,9 @@ use warnings;
use Socket;
our %args = (
- socktype => Socket::SOCK_RAW,
- protocol => 254,
- skip => sub { shift->{af} eq "inet" ? 20 : 0 },
- client => { func => \&write_datagram, noin => 1, },
- server => { func => \&read_datagram, noout => 1, },
- divert => "reply",
+ socktype => Socket::SOCK_RAW,
+ protocol => 254,
+ client => { func => \&write_datagram, noin => 1, },
+ server => { func => \&read_datagram, noout => 1, },
+ divert => "reply",
);