Sniffer touches for Windows.

This commit is contained in:
John Safranek 2019-10-04 17:06:35 -07:00
parent a467c75390
commit f025f08315

View File

@ -34,6 +34,8 @@
#ifndef _WIN32
#include <arpa/inet.h>
#else
#include <WS2tcpip.h>
#endif
#ifdef _WIN32
@ -1177,7 +1179,7 @@ static void SetError(int idx, char* error, SnifferSession* session, int fatal)
/* 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 == IPV4)