1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 04:34:27 +01:00

Removed copy constructor from several PDUs.

This commit is contained in:
Matias Fontanini
2011-09-08 10:18:15 -03:00
parent f30f404632
commit b17ee6a6cb
7 changed files with 44 additions and 51 deletions

View File

@@ -55,16 +55,6 @@ Tins::ARP::ARP(const uint8_t *buffer, uint32_t total_sz) : PDU(0x0608) {
inner_pdu(new RawPDU(buffer + sizeof(arphdr), total_sz));
}
Tins::ARP::ARP(const ARP &other) : PDU(other) {
copy_fields(&other);
}
Tins::ARP &Tins::ARP::operator= (const ARP &other) {
copy_fields(&other);
copy_inner_pdu(other);
return *this;
}
Tins::ARP::ARP(const arphdr *arp_ptr) : PDU(Utils::net_to_host_s(0x0806)) {
memcpy(&_arp, arp_ptr, sizeof(arphdr));
}