VBVX 0.1.0
Header-only C++23 library for safe, zero-copy parsing of packet buffers.
Loading...
Searching...
No Matches
vbvx::SRv6HmacTlvView Struct Reference

HMAC TLV view for type==5 (HMAC). The 'value' pointer is the TLV variable data where the first two bytes are D/reserved, followed by a 4-octet HMAC Key ID, then the HMAC bytes. More...

#include <srv6_header.hxx>

Public Member Functions

constexpr bool valid () const noexcept
constexpr bool d_bit () const noexcept
constexpr auto key_id () const noexcept -> uint32_t
constexpr auto hmac () const noexcept -> std::span< const uint8_t >

Public Attributes

const uint8_t * value
uint8_t length

Detailed Description

HMAC TLV view for type==5 (HMAC). The 'value' pointer is the TLV variable data where the first two bytes are D/reserved, followed by a 4-octet HMAC Key ID, then the HMAC bytes.

Member Function Documentation

◆ d_bit()

bool vbvx::SRv6HmacTlvView::d_bit ( ) const
inlineconstexprnoexcept

◆ hmac()

auto vbvx::SRv6HmacTlvView::hmac ( ) const -> std::span< const uint8_t >
inlineconstexprnoexcept

◆ key_id()

auto vbvx::SRv6HmacTlvView::key_id ( ) const -> uint32_t
inlineconstexprnoexcept

◆ valid()

bool vbvx::SRv6HmacTlvView::valid ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ length

uint8_t vbvx::SRv6HmacTlvView::length

◆ value

const uint8_t* vbvx::SRv6HmacTlvView::value

The documentation for this struct was generated from the following file: