mirror of
https://github.com/mfontanini/libtins
synced 2026-01-29 13:04:28 +01:00
Modified PacketWriter interface to take references instead of pointers.
This commit is contained in:
@@ -44,8 +44,8 @@ PacketWriter::~PacketWriter() {
|
||||
pcap_close(handle);
|
||||
}
|
||||
|
||||
void PacketWriter::write(PDU *pdu) {
|
||||
PDU::serialization_type buffer = pdu->serialize();
|
||||
void PacketWriter::write(PDU &pdu) {
|
||||
PDU::serialization_type buffer = pdu.serialize();
|
||||
struct timeval tm;
|
||||
gettimeofday(&tm, 0);
|
||||
struct pcap_pkthdr header = {
|
||||
|
||||
Reference in New Issue
Block a user