mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Sniffer touches for Windows.
This commit is contained in:
@ -34,6 +34,8 @@
|
|||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
#else
|
||||||
|
#include <WS2tcpip.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@ -1177,7 +1179,7 @@ static void SetError(int idx, char* error, SnifferSession* session, int fatal)
|
|||||||
|
|
||||||
|
|
||||||
/* Compare IpAddrInfo structs */
|
/* Compare IpAddrInfo structs */
|
||||||
static inline int MatchAddr(IpAddrInfo l, IpAddrInfo r)
|
static WC_INLINE int MatchAddr(IpAddrInfo l, IpAddrInfo r)
|
||||||
{
|
{
|
||||||
if (l.version == r.version) {
|
if (l.version == r.version) {
|
||||||
if (l.version == IPV4)
|
if (l.version == IPV4)
|
||||||
|
Reference in New Issue
Block a user