Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/dns.h
// Copyright (c) 2017-2019 The Bitcoin developers | // Copyright (c) 2017-2019 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_SEEDER_DNS_H | #ifndef BITCOIN_SEEDER_DNS_H | ||||
#define BITCOIN_SEEDER_DNS_H 1 | #define BITCOIN_SEEDER_DNS_H 1 | ||||
#include <cstddef> | #include <cstddef> | ||||
#include <cstdint> | #include <cstdint> | ||||
// Total number of bytes in the DNS counts sections | |||||
// 4 sections each 2 bytes long | |||||
static const int DNS_HEADER_COUNTS_SIZE = 8; | |||||
struct addr_t { | struct addr_t { | ||||
int v; | int v; | ||||
union { | union { | ||||
uint8_t v4[4]; | uint8_t v4[4]; | ||||
uint8_t v6[16]; | uint8_t v6[16]; | ||||
} data; | } data; | ||||
}; | }; | ||||
Show All 23 Lines |