blob: 45d3a74ae1778edd17e96c5a747c191d872d26db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# test divert-to with icmp
use strict;
use warnings;
use Socket;
our %args = (
socktype => Socket::SOCK_RAW,
protocol => sub { shift->{af} eq "inet" ? "icmp" : "icmp6" },
client => { func => \&write_icmp_echo, out => "ICMP6?", noin => 1, },
server => { func => \&read_icmp_echo, in => "ICMP6?", noout => 1, },
divert => "to",
);
|