summaryrefslogtreecommitdiff
path: root/regress/sys/net/pf_divert/args-udp-reply.pl
blob: b22b45cbac790ec4bb8b09e2b35cacf371c3b4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# test divert-reply with udp
# create a divert-reply out rule on the remote machine
# client sends a UDP packet from the remote machine
# server receives the UDP packet at the local machine

use strict;
use warnings;

our %args = (
    protocol => "udp",
    client => { func => \&write_datagram, noin => 1, },
    server => { func => \&read_datagram, noout => 1, },
    divert => "reply",
);