summaryrefslogtreecommitdiff
path: root/regress/sys/net/pf_divert/args-rip-reply.pl
blob: 0744f48fe76bd15f2721ad161c4f26fde2450a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# test divert-reply with raw ip

use strict;
use warnings;
use Socket;

our %args = (
    socktype => Socket::SOCK_RAW,
    protocol => 254,
    client => { func => \&write_datagram, noin => 1, },
    server => { func => \&read_datagram, noout => 1, },
    divert => "reply",
);