Skip to content

Commit

Permalink
new ETH_HLEN constant for NetPacket::Ethernet
Browse files Browse the repository at this point in the history
  • Loading branch information
yanick committed Mar 13, 2015
1 parent 25ccbf2 commit c7bde0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/NetPacket/Ethernet.pm
Expand Up @@ -21,7 +21,7 @@ BEGIN {
ETH_TYPE_PPPOED
ETH_TYPE_PPPOES /;

@EXPORT_OK = ( 'eth_strip', @eth_types );
@EXPORT_OK = ( 'eth_strip', 'ETH_HLEN', @eth_types );

%EXPORT_TAGS = (
ALL => [@EXPORT, @EXPORT_OK],
Expand All @@ -47,6 +47,8 @@ use constant ETH_TYPE_IPX => 0x8137;
use constant ETH_TYPE_PPPOED => 0x8863;
use constant ETH_TYPE_PPPOES => 0x8864;

use constant ETH_HLEN => 6;

#
# VLAN Tag field masks
#
Expand Down

0 comments on commit c7bde0d

Please sign in to comment.