|
PcapPlusPlus
19.12
|
Go to the documentation of this file. 1 #ifndef PCAPPP_IP_UTILS
2 #define PCAPPP_IP_UTILS
10 #include <netinet/in.h>
11 #include <arpa/inet.h>
13 #if defined(WIN32) || defined(WINx64) || defined(PCAPPP_MINGW_ENV)
18 #include <sys/socket.h>
19 #include <netinet/in.h>
20 #include <arpa/inet.h>
25 #if defined(WIN32) && !defined(_MSC_VER)
34 const char*
inet_ntop(
int af,
const void* src,
char* dst,
size_t size);
47 int inet_pton(
int af,
const char* src,
void* dst);
126 uint32_t
fnv_hash(uint8_t* buffer,
size_t bufSize);
int inet_pton(int af, const char *src, void *dst)
uint32_t in_addr2int(in_addr inAddr)
size_t len
Definition: IpUtils.h:100
uint32_t fnv_hash(ScalarBuffer< uint8_t > vec[], size_t vecSize)
void sockaddr2string(struct sockaddr *sa, char *resultString)
uint16_t compute_checksum(ScalarBuffer< uint16_t > vec[], size_t vecSize)
in6_addr * sockaddr2in6_addr(struct sockaddr *sa)
const char * inet_ntop(int af, const void *src, char *dst, size_t size)
The main namespace for the PcapPlusPlus lib.
T * buffer
Definition: IpUtils.h:95
in_addr * sockaddr2in_addr(struct sockaddr *sa)