1# test divert-packet input rule with udp 2# create a divert-packet in rule on the remote machine 3# client sends a UDP packet from the local machine 4# packet process reflects the UDP packet on divert socket on the remote machine 5# server receives the UDP packet at the remote machine 6 7use strict; 8use warnings; 9 10our %args = ( 11 protocol => "udp", 12 client => { 13 func => \&write_datagram, 14 noin => 1, 15 }, 16 packet => { 17 func => \&read_write_packet, 18 in => "Client", 19 }, 20 server => { 21 func => \&read_datagram, 22 in => "Packet", 23 noout => 1, 24 }, 25 divert => "packet-in", 26); 27