From 9ee53e869876be6a6d019c35178223271edf7c80 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Tue, 28 Jul 2015 12:31:30 +0000 Subject: 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. --- regress/sys/net/pf_divert/args-rip-reply.pl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'regress/sys/net/pf_divert/args-rip-reply.pl') 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", ); -- cgit v1.2.3