1 #ifndef PCAPPP_IP_UTILS 2 #define PCAPPP_IP_UTILS 6 #include <netinet/in.h> 10 #include <netinet/in.h> 11 #include <arpa/inet.h> 13 #if defined(WIN32) || defined(WINx64) || defined(PCAPPP_MINGW_ENV) 17 #include <sys/socket.h> 18 #include <netinet/in.h> 19 #include <arpa/inet.h> 24 #if defined(WIN32) && !defined(_MSC_VER) 33 const char*
inet_ntop(
int af,
const void* src,
char* dst,
size_t size);
46 int inet_pton(
int af,
const char* src,
void* dst);
The main namespace for the PcapPlusPlus lib.
in_addr * sockaddr2in_addr(struct sockaddr *sa)
const char * inet_ntop(int af, const void *src, char *dst, size_t size)
void sockaddr2string(struct sockaddr *sa, char *resultString)
in6_addr * sockaddr2in6_addr(struct sockaddr *sa)
uint32_t in_addr2int(in_addr inAddr)
int inet_pton(int af, const char *src, void *dst)