mirror of
https://github.com/mfontanini/libtins
synced 2026-01-29 21:14:28 +01:00
Added packet.h and timestamp.h to tins.h
This commit is contained in:
@@ -121,15 +121,6 @@ public:
|
||||
Packet(const PtrPacket &pck)
|
||||
: pdu_(pck.pdu()), ts(pck.timestamp()) { }
|
||||
|
||||
/**
|
||||
* \brief Constructs a Packet from a PtrPacket object.
|
||||
*/
|
||||
Packet& operator=(const PtrPacket &pck) {
|
||||
pdu_ = pck.pdu();
|
||||
ts = pck.timestamp();
|
||||
return *this;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Packet destructor.
|
||||
*
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace Tins {
|
||||
* // smart pointer? :D
|
||||
* PDU *pdu = s.next_packet();
|
||||
* // Packet takes care of the PDU*. \sa Packet::release_pdu
|
||||
* Packet packet = s.next_packet();
|
||||
* Packet packet(s.next_packet());
|
||||
*
|
||||
* Is fine, but this:
|
||||
*
|
||||
|
||||
@@ -58,5 +58,7 @@
|
||||
#include "rsn_information.h"
|
||||
#include "ipv6_address.h"
|
||||
#include "ip_address.h"
|
||||
#include "packet.h"
|
||||
#include "timestamp.h"
|
||||
|
||||
#endif // TINS_TINS_H
|
||||
|
||||
Reference in New Issue
Block a user