mirror of
https://github.com/mfontanini/libtins
synced 2026-01-24 19:21:35 +01:00
Fixed/added copy constructor to IP/TCP/UDP/ARP/EthernetII PDUs.
This commit is contained in:
@@ -96,5 +96,6 @@ void Tins::UDP::copy_fields(const UDP *other) {
|
||||
Tins::PDU *Tins::UDP::clone_pdu() const {
|
||||
UDP *new_pdu = new UDP();
|
||||
new_pdu->copy_fields(this);
|
||||
new_pdu->copy_inner_pdu(*this);
|
||||
return new_pdu;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user