1
0
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:
Matias Fontanini
2012-03-24 01:27:22 -03:00
parent 594eabd282
commit e6ccdcd75e
9 changed files with 39 additions and 0 deletions

View File

@@ -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 */
/**

View File

@@ -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 */
/**

View File

@@ -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.
*