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