1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 03:51:35 +01:00

Added some helper methods to Dot1Q.

This commit is contained in:
Matias Fontanini
2013-03-26 23:42:43 -03:00
parent dfc0498b70
commit 97049140af
4 changed files with 41 additions and 8 deletions

View File

@@ -136,6 +136,8 @@ Constants::Ethernet::e pdu_flag_to_ether_type(PDU::PDUType flag) {
return Constants::Ethernet::IPV6;
case PDU::ARP:
return Constants::Ethernet::ARP;
case PDU::DOT1Q:
return Constants::Ethernet::VLAN;
default:
return Constants::Ethernet::UNKNOWN;
}