args-rip-to.pl revision 1.3
1# test divert-to with raw ip
2# create a divert-to in rule on the remote machine
3# client sends a proto 254 packet from the local machine
4# server receives the proto 254 packet at the remote 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 => "to",
16);
17