blob: 1400f7181723d204e914e9ee83f990a2f02352f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# test divert-to with udp
# create a divert-to in rule on the remote machine
# client sends a UDP packet from the local machine
# server receives the UDP packet at the remote machine
use strict;
use warnings;
our %args = (
protocol => "udp",
client => { func => \&write_datagram, noin => 1, },
server => { func => \&read_datagram, noout => 1, },
divert => "to",
);
|