Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/dns.cpp
#include "dns.h" | #include <seeder/dns.h> | ||||
#include <cctype> | |||||
#include <cstdbool> | |||||
#include <cstdio> | |||||
#include <cstdlib> | |||||
#include <cstring> | |||||
#include <ctime> | |||||
#include <arpa/inet.h> | #include <arpa/inet.h> | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <strings.h> | #include <strings.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include <cctype> | |||||
#include <cstdbool> | |||||
#include <cstdio> | |||||
#include <cstdlib> | |||||
#include <cstring> | |||||
#include <ctime> | |||||
#define BUFLEN 512 | #define BUFLEN 512 | ||||
#if defined IP_RECVDSTADDR | #if defined IP_RECVDSTADDR | ||||
#define DSTADDR_SOCKOPT IP_RECVDSTADDR | #define DSTADDR_SOCKOPT IP_RECVDSTADDR | ||||
#define DSTADDR_DATASIZE (CMSG_SPACE(sizeof(struct in6_addr))) | #define DSTADDR_DATASIZE (CMSG_SPACE(sizeof(struct in6_addr))) | ||||
#define dstaddr(x) (CMSG_DATA(x)) | #define dstaddr(x) (CMSG_DATA(x)) | ||||
#elif defined IPV6_PKTINFO | #elif defined IPV6_PKTINFO | ||||
#define DSTADDR_SOCKOPT IPV6_PKTINFO | #define DSTADDR_SOCKOPT IPV6_PKTINFO | ||||
▲ Show 20 Lines • Show All 585 Lines • Show Last 20 Lines |