mirror of
https://github.com/mfontanini/libtins
synced 2026-01-27 04:11:35 +01:00
Fixed/added copy constructor to IP/TCP/UDP/ARP/EthernetII PDUs.
This commit is contained in:
@@ -59,6 +59,13 @@ namespace Tins {
|
||||
* \param total_sz The total size of the buffer.
|
||||
*/
|
||||
ARP(const uint8_t *buffer, uint32_t total_sz);
|
||||
|
||||
/**
|
||||
* \brief Copy constructor
|
||||
*
|
||||
* \param other The object which will be copied.
|
||||
*/
|
||||
ARP(const ARP &other);
|
||||
|
||||
/* Getters */
|
||||
/**
|
||||
|
||||
@@ -80,6 +80,13 @@ namespace Tins {
|
||||
* \param total_sz The total size of the buffer.
|
||||
*/
|
||||
EthernetII(const uint8_t *buffer, uint32_t total_sz);
|
||||
|
||||
/**
|
||||
* \brief EthernetII copy constructor.
|
||||
*
|
||||
* \param other The packet which will be copied.
|
||||
*/
|
||||
EthernetII(const EthernetII &other);
|
||||
|
||||
/* Getters */
|
||||
/**
|
||||
|
||||
@@ -65,6 +65,13 @@ namespace Tins {
|
||||
*/
|
||||
ICMP(const uint8_t *buffer, uint32_t total_sz);
|
||||
|
||||
/**
|
||||
* \brief Copy constructor
|
||||
*
|
||||
* \param other The object which will be copied.
|
||||
*/
|
||||
ICMP(const ICMP &other);
|
||||
|
||||
/**
|
||||
* \brief Sets the code field.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user