1# test divert-reply with raw ip 2# create a divert-reply out rule on the remote machine 3# client sends a proto 254 packet from the remote machine 4# server receives the proto 254 packet at the local machine 5 6use strict; 7use warnings; 8use Socket; 9 10our %args = ( 11 socktype => Socket::SOCK_RAW, 12 protocol => 254, 13 client => { func => \&write_datagram, noin => 1, }, 14 server => { func => \&read_datagram, noout => 1, }, 15 divert => "reply", 16); 17