30 #ifndef TINS_PDU_UTILS_H
31 #define TINS_PDU_UTILS_H
33 #include <tins/macros.h>
35 #include <tins/detail/type_traits.h>
50 static char test(
typename U::PDUType*);
53 static long test(...);
55 static const bool value =
sizeof(test<T>(0)) == 1;
74 inline typename Internals::enable_if<!is_pdu<T>::value,
PDU&>::type
Base class for protocol data units.
Definition: pdu.h:107
PDUType
Enum which identifies each type of PDU.
Definition: pdu.h:127
TINS_API std::string to_string(PDU::PDUType pduType)
Converts a PDUType to a string.
Definition: pdu_utils.cpp:37
PDU & dereference_until_pdu(PDU &pdu)
Definition: pdu_utils.h:61
The Tins namespace.
Definition: address_range.h:38
Definition: pdu_utils.h:48