Net-Packet-EtherType

NAME

Net::Packet::EtherType - Enumerator to describe EtherType.

SYNOPSIS

use Net::Packet::EtherType :short;

my $etype_Int = 0x0800; # EtherType value of IPv4
my $etype = EtherType($etype_Int);
say $etype; # 'IPv4'

$etype = EtherType::IPv4;
say $etype.value.base(16); # '800'

say EtherType.enums; # Prints all implemented values.

DESCRIPTION

enum Net::Packet::EtherType

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.