Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/dns.h
| #ifndef _DNS_H_ | #ifndef BITCOIN_SEEDER_DNS_H | ||||
| #define _DNS_H_ 1 | #define BITCOIN_SEEDER_DNS_H 1 | ||||
| #include <stdint.h> | #include <stdint.h> | ||||
| typedef struct { | typedef struct { | ||||
| int v; | int v; | ||||
| union { | union { | ||||
| unsigned char v4[4]; | uint8_t v4[4]; | ||||
| unsigned char v6[16]; | uint8_t v6[16]; | ||||
| } data; | } data; | ||||
| } addr_t; | } addr_t; | ||||
| typedef struct { | typedef struct { | ||||
| int port; | int port; | ||||
| int datattl; | int datattl; | ||||
| int nsttl; | int nsttl; | ||||
| const char *host; | const char *host; | ||||
| Show All 11 Lines | |||||