1 #ifndef DOIPNEGATIVEDIAGNOSTICACK_H
2 #define DOIPNEGATIVEDIAGNOSTICACK_H
41 const char* name =
nullptr;
44 name =
"InvalidSourceAddress";
47 name =
"UnknownTargetAddress";
50 name =
"DiagnosticMessageTooLarge";
56 name =
"TargetUnreachable";
59 name =
"UnknownNetwork";
62 name =
"TransportProtocolError";
71 os << name <<
" (0x" << std::hex << std::uppercase << std::setw(2) << std::setfill(
'0')
72 <<
static_cast<unsigned int>(
static_cast<uint8_t
>(nack)) << std::dec <<
")";
85 if (!ack.has_value()) {
86 os <<
"PositiveAck (0x00)";
90 return os << ack.value();
std::optional< DoIPNegativeDiagnosticAck > DoIPDiagnosticAck
Alias for diagnostic acknowledgment type.
DoIPNegativeDiagnosticAck
@ DiagnosticMessageTooLarge
std::ostream & operator<<(std::ostream &os, const ByteArray &arr)
Stream operator for ByteArray.