1
0
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:
Matias Fontanini
2012-11-23 18:56:39 -03:00
parent 492fd611f9
commit b74a353c17
4 changed files with 174 additions and 65 deletions

View File

@@ -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.
*

View File

@@ -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:
*

View File

@@ -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