1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 03:31:36 +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

@@ -373,6 +373,7 @@ void Tins::TCP::copy_fields(const TCP *other) {
Tins::PDU *Tins::TCP::clone_pdu() const {
TCP *new_pdu = new TCP();
new_pdu->copy_fields(this);
new_pdu->copy_inner_pdu(*this);
return new_pdu;
}