VBVX 0.1.0
Header-only C++23 library for safe, zero-copy parsing of packet buffers.
Loading...
Searching...
No Matches
test_icmp4.cxx File Reference
#include <gtest/gtest.h>
#include "header_view.hxx"
#include "vbvx/icmp4.hxx"

Classes

class  IcmpHeaderBytesFixture

Enumerations

enum class  ICMPv4Type
 ICMPv4 Type Numbers. More...

Functions

 TEST (IcmpTypeTest, KnownTypes)
 TEST (IcmpTypeTest, UnassignedReturnsNullopt)
 TEST (IcmpHeaderTest, LayoutAndAlignment)
 TEST_F (IcmpHeaderBytesFixture, HeaderFieldsParsed)
 TEST_F (IcmpHeaderBytesFixture, ZeroCopyReflectsMutations)
 TEST_F (IcmpHeaderBytesFixture, CopyReturnsValueWithSameFields)

Enumeration Type Documentation

◆ ICMPv4Type

enum class vbvx::ICMPv4Type : uint8_t
strong

ICMPv4 Type Numbers.

See also
IANA "ICMP Type Numbers" registry: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml
RFC 792: https://datatracker.ietf.org/doc/html/rfc792

Function Documentation

◆ TEST() [1/3]

TEST ( IcmpHeaderTest ,
LayoutAndAlignment  )

◆ TEST() [2/3]

TEST ( IcmpTypeTest ,
KnownTypes  )

◆ TEST() [3/3]

TEST ( IcmpTypeTest ,
UnassignedReturnsNullopt  )

◆ TEST_F() [1/3]

TEST_F ( IcmpHeaderBytesFixture ,
CopyReturnsValueWithSameFields  )

◆ TEST_F() [2/3]

TEST_F ( IcmpHeaderBytesFixture ,
HeaderFieldsParsed  )

◆ TEST_F() [3/3]

TEST_F ( IcmpHeaderBytesFixture ,
ZeroCopyReflectsMutations  )