|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Unit tests for PROFINET Ethernet VLAN-tag detection. More...
#include <gtest/gtest.h>#include <array>#include <cstdint>#include "profinet/protocol.h"#include "profinet/util.h"
Include dependency graph for test_skipVlanTags.cpp:Go to the source code of this file.
Namespaces | |
| namespace | profinet |
Functions | |
| profinet::TEST_F (SkipVlanTagsTest, UntaggedFrameReturnsOffset12) | |
| profinet::TEST_F (SkipVlanTagsTest, Single8021QTagReturnsOffset16) | |
| profinet::TEST_F (SkipVlanTagsTest, DoubleTaggedQinQFrameReturnsOffset20) | |
| profinet::TEST_F (SkipVlanTagsTest, ShortFrameReturnsEthernetHeaderLength) | |
Unit tests for PROFINET Ethernet VLAN-tag detection.
Verifies that the Ethernet parser correctly determines the location of the EtherType when Ethernet frames are untagged, 802.1Q tagged, or QinQ double-tagged.
PROFINET RT and RTA traffic may be received with priority VLAN tags. Therefore protocol parsing must not assume that the EtherType always starts at Ethernet byte offset 12.
Definition in file test_skipVlanTags.cpp.