1 #ifndef PACKETPP_DHCPV6_LAYER 2 #define PACKETPP_DHCPV6_LAYER 240 TLVRecordBuilder(static_cast<uint16_t>(optionType), optionValueAsHexStream, true) { }
250 TLVRecordBuilder(static_cast<uint16_t>(optionType), optionValue, optionValueLen) {}
307 std::string getMessageTypeAsString()
const;
319 uint32_t getTransactionID()
const;
326 void setTransactionID(uint32_t transactionId)
const;
354 size_t getOptionCount()
const;
393 bool removeAllOptions();
400 static inline bool isDhcpV6Port(uint16_t port);
408 static inline bool isDataValid(
const uint8_t* data,
size_t dataLen);
427 std::string toString()
const;
432 uint8_t* getOptionsBasePtr()
const {
return m_Data +
sizeof(
dhcpv6_header); }
444 return (port == 546) || (port == 547);
454 # endif // PACKETPP_DHCPV6_LAYER The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:263
DhcpV6OptionType
Definition: DhcpV6Layer.h:58
Definition: DhcpV6Layer.h:133
Definition: DhcpV6Layer.h:123
Definition: DhcpV6Layer.h:145
Definition: DhcpV6Layer.h:115
Definition: DhcpV6Layer.h:101
Definition: DhcpV6Layer.h:85
Definition: DhcpV6Layer.h:171
Definition: DhcpV6Layer.h:113
Definition: DhcpV6Layer.h:179
Definition: DhcpV6Layer.h:91
void parseNextLayer()
Definition: DhcpV6Layer.h:415
Definition: DhcpV6Layer.h:230
Definition: ProtocolType.h:278
static bool isDhcpV6Port(uint16_t port)
Definition: DhcpV6Layer.h:442
Definition: DhcpV6Layer.h:61
Definition: DhcpV6Layer.h:117
Definition: TLVData.h:363
DhcpV6Option(uint8_t *optionRawData)
Definition: DhcpV6Layer.h:202
Definition: DhcpV6Layer.h:37
Definition: DhcpV6Layer.h:95
Definition: DhcpV6Layer.h:63
Definition: DhcpV6Layer.h:183
Definition: DhcpV6Layer.h:25
Definition: DhcpV6Layer.h:129
Definition: DhcpV6Layer.h:35
Definition: DhcpV6Layer.h:187
Definition: DhcpV6Layer.h:109
Definition: DhcpV6Layer.h:107
Definition: DhcpV6Layer.h:75
Definition: DhcpV6Layer.h:135
Definition: DhcpV6Layer.h:137
size_t getTotalSize() const
Definition: DhcpV6Layer.h:119
Definition: TLVData.h:207
Definition: DhcpV6Layer.h:65
DhcpV6OptionType getType() const
static bool isDataValid(const uint8_t *data, size_t dataLen)
Definition: DhcpV6Layer.h:448
Definition: DhcpV6Layer.h:153
Definition: DhcpV6Layer.h:39
Definition: DhcpV6Layer.h:151
Definition: DhcpV6Layer.h:143
Definition: DhcpV6Layer.h:169
Definition: DhcpV6Layer.h:47
Definition: DhcpV6Layer.h:23
Definition: DhcpV6Layer.h:73
Definition: DhcpV6Layer.h:149
Definition: DhcpV6Layer.h:79
Definition: DhcpV6Layer.h:83
Definition: DhcpV6Layer.h:121
Definition: DhcpV6Layer.h:97
Definition: DhcpV6Layer.h:147
size_t getHeaderLen() const
Definition: DhcpV6Layer.h:420
Definition: DhcpV6Layer.h:81
Definition: DhcpV6Layer.h:181
Definition: DhcpV6Layer.h:279
Definition: DhcpV6Layer.h:125
DhcpV6OptionBuilder(DhcpV6OptionType optionType, const std::string &optionValueAsHexStream)
Definition: DhcpV6Layer.h:239
Definition: DhcpV6Layer.h:93
Definition: DhcpV6Layer.h:161
virtual ~DhcpV6Option()
Definition: DhcpV6Layer.h:207
Definition: DhcpV6Layer.h:87
Definition: DhcpV6Layer.h:43
Definition: DhcpV6Layer.h:127
Definition: DhcpV6Layer.h:105
Definition: DhcpV6Layer.h:131
Definition: DhcpV6Layer.h:31
DhcpV6OptionBuilder(DhcpV6OptionType optionType, const uint8_t *optionValue, uint8_t optionValueLen)
Definition: DhcpV6Layer.h:249
Definition: DhcpV6Layer.h:165
Definition: DhcpV6Layer.h:139
Definition: DhcpV6Layer.h:71
void computeCalculateFields()
Definition: DhcpV6Layer.h:425
Definition: DhcpV6Layer.h:33
Definition: DhcpV6Layer.h:89
Definition: DhcpV6Layer.h:45
Definition: DhcpV6Layer.h:167
Definition: DhcpV6Layer.h:163
Definition: DhcpV6Layer.h:21
size_t getDataSize() const
DhcpV6MessageType
Definition: DhcpV6Layer.h:18
Definition: DhcpV6Layer.h:173
Definition: DhcpV6Layer.h:141
Definition: DhcpV6Layer.h:111
Definition: DhcpV6Layer.h:195
Definition: DhcpV6Layer.h:103
Definition: DhcpV6Layer.h:157
Definition: DhcpV6Layer.h:159
Definition: DhcpV6Layer.h:77
std::string getValueAsHexString() const
OsiModelLayer getOsiModelLayer() const
Definition: DhcpV6Layer.h:429
Definition: DhcpV6Layer.h:99
Definition: DhcpV6Layer.h:185
Definition: DhcpV6Layer.h:67
Definition: DhcpV6Layer.h:29
Definition: DhcpV6Layer.h:41
Definition: DhcpV6Layer.h:175
Definition: DhcpV6Layer.h:69
Definition: DhcpV6Layer.h:155
Definition: DhcpV6Layer.h:177
Definition: DhcpV6Layer.h:27