File: 09-tcp.t

package info (click to toggle)
libnet-frame-perl 1.21-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 316 kB
  • sloc: perl: 1,883; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use Test;
BEGIN { plan(tests => 1) }

use Net::Frame::Layer::TCP qw(:consts);

my $l = Net::Frame::Layer::TCP->new;
$l->pack;
$l->unpack;

print $l->print."\n";

my $encap = $l->encapsulate;
$encap ? print "[$encap]\n" : print "[none]\n";

ok(1);