diff --git a/include/tins/arp.h b/include/tins/arp.h index 9ed65a4..1fbba86 100644 --- a/include/tins/arp.h +++ b/include/tins/arp.h @@ -72,6 +72,14 @@ public: REPLY = 0x0002 }; + /** + * \brief Extracts metadata for this protocol based on the buffer provided + * + * \param buffer Pointer to a buffer + * \param total_sz Size of the buffer pointed by buffer + */ + static metadata extract_metadata(const uint8_t *buffer, uint32_t total_sz); + /** * \brief Constructs an ARP object using the provided addresses. * diff --git a/include/tins/bootp.h b/include/tins/bootp.h index c6e9294..7d27175 100644 --- a/include/tins/bootp.h +++ b/include/tins/bootp.h @@ -333,7 +333,7 @@ protected: vend_type& vend() { return vend_; } void write_serialization(uint8_t* buffer, uint32_t total_sz, const PDU* parent); -private: + /** * Struct that represents the Bootp datagram. */ @@ -355,6 +355,7 @@ private: uint8_t file[128]; } TINS_END_PACK; +private: bootp_header bootp_; vend_type vend_; }; diff --git a/include/tins/dhcp.h b/include/tins/dhcp.h index 8db8d65..ea8aec5 100644 --- a/include/tins/dhcp.h +++ b/include/tins/dhcp.h @@ -172,6 +172,14 @@ public: */ typedef std::list