File: unpack-eth-ipv4-tcp.pl

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 (14 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl
use strict;
use warnings;

use Net::Frame::Simple;

my $raw = pack('H*', "ffffffffffff00000000000008004500001483d80000800600007f0000017f0000018e100000212c69e5000000006002ffff000000000204540b");

my $oSimple = Net::Frame::Simple->new(
   raw        => $raw,
   firstLayer => 'ETH',
);

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