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) 20 #if defined(WIN32) && !defined(_MSC_VER) 29 const char*
inet_ntop(
int af,
const void* src,
char* dst,
size_t size);
42 int inet_pton(
int af,
const char* src,
void* dst);
121 uint32_t
fnv_hash(uint8_t* buffer,
size_t bufSize);
uint32_t fnv_hash(ScalarBuffer< uint8_t > vec[], size_t vecSize)
The main namespace for the PcapPlusPlus lib.
in6_addr * sockaddr2in6_addr(struct sockaddr *sa)
uint32_t in_addr2int(in_addr inAddr)
in_addr * sockaddr2in_addr(struct sockaddr *sa)
void sockaddr2string(struct sockaddr *sa, char *resultString)
size_t len
Definition: IpUtils.h:95
uint16_t compute_checksum(ScalarBuffer< uint16_t > vec[], size_t vecSize)
T * buffer
Definition: IpUtils.h:90
const char * inet_ntop(int af, const void *src, char *dst, size_t size)
int inet_pton(int af, const char *src, void *dst)