1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Allow sending Dot3 on Windows using pcap_sendpacket.

This commit is contained in:
Matias Fontanini
2015-04-18 19:37:57 -07:00
parent 147c1a4315
commit 8c2b56e286
3 changed files with 9 additions and 7 deletions

View File

@@ -33,6 +33,7 @@
#include <stdint.h>
#include "macros.h"
#include "pdu.h"
#include "config.h"
#include "endianness.h"
#include "hw_address.h"
@@ -137,12 +138,12 @@ namespace Tins {
*/
uint32_t header_size() const;
#ifndef WIN32
#if !defined(WIN32) || defined(HAVE_PACKET_SENDER_PCAP_SENDPACKET)
/**
* \sa PDU::send()
*/
void send(PacketSender &sender, const NetworkInterface &iface);
#endif // WIN32
#endif // !WIN32 || HAVE_PACKET_SENDER_PCAP_SENDPACKET
/**
* \brief Check wether ptr points to a valid response for this PDU.

View File

@@ -33,6 +33,7 @@
#include <stdint.h>
#include "macros.h"
#include "pdu.h"
#include "config.h"
#include "endianness.h"
#include "hw_address.h"