Skip to content

Commit 70739f3

Browse files
committed
ldns: Regenerate configuration after update
MFC after: 1 week Fixes: d44c954 ("ldns: Update to 1.8.4") Fixes: 9ed998a ("ldns: Update to 1.9.0")
1 parent 76c3387 commit 70739f3

3 files changed

Lines changed: 63 additions & 13 deletions

File tree

contrib/ldns/ldns/config.h

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
/* Define to 1 if you have the <arpa/inet.h> header file. */
88
#define HAVE_ARPA_INET_H 1
99

10+
/* Define to 1 if you have the `asctime_r' function. */
11+
#define HAVE_ASCTIME_R 1
12+
1013
/* Whether the C compiler accepts the "format" attribute */
1114
#define HAVE_ATTR_FORMAT 1
1215

@@ -53,6 +56,14 @@
5356
you don't. */
5457
#define HAVE_DECL_EVP_PKEY_BASE_ID 1
5558

59+
/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you
60+
don't. */
61+
#define HAVE_DECL_INET_NTOP 1
62+
63+
/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you
64+
don't. */
65+
#define HAVE_DECL_INET_PTON 1
66+
5667
/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
5768
don't. */
5869
#define HAVE_DECL_NID_ED25519 1
@@ -297,6 +308,9 @@
297308
/* Define if you have SWIG libraries and header files. */
298309
/* #undef HAVE_SWIG */
299310

311+
/* Define to 1 if you have the `symlink' function. */
312+
#define HAVE_SYMLINK 1
313+
300314
/* Define to 1 if you have the <sys/mount.h> header file. */
301315
#define HAVE_SYS_MOUNT_H 1
302316

@@ -358,13 +372,13 @@
358372
#define LT_OBJDIR ".libs/"
359373

360374
/* Define to the address where bug reports for this package should be sent. */
361-
#define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
375+
#define PACKAGE_BUGREPORT "dns-team@nlnetlabs.nl"
362376

363377
/* Define to the full name of this package. */
364378
#define PACKAGE_NAME "ldns"
365379

366380
/* Define to the full name and version of this package. */
367-
#define PACKAGE_STRING "ldns 1.8.3"
381+
#define PACKAGE_STRING "ldns 1.9.0"
368382

369383
/* Define to the one symbol short name of this package. */
370384
#define PACKAGE_TARNAME "libdns"
@@ -373,23 +387,35 @@
373387
#define PACKAGE_URL ""
374388

375389
/* Define to the version of this package. */
376-
#define PACKAGE_VERSION "1.8.3"
390+
#define PACKAGE_VERSION "1.9.0"
377391

378392
/* Define this to enable RR type AMTRELAY. */
379-
/* #undef RRTYPE_AMTRELAY */
393+
#define RRTYPE_AMTRELAY /**/
380394

381395
/* Define this to enable RR type AVC. */
382396
/* #undef RRTYPE_AVC */
383397

398+
/* Define this to enable RR types CLA and IPN. */
399+
/* #undef RRTYPE_CLA_IPN */
400+
384401
/* Define this to enable RR type DOA. */
385402
/* #undef RRTYPE_DOA */
386403

404+
/* Define this to enable RR type DSYNC. */
405+
#define RRTYPE_DSYNC /**/
406+
407+
/* Define this to enable RR types HHIT and BRID. */
408+
/* #undef RRTYPE_HHIT_BRID */
409+
387410
/* Define this to enable RR type NINFO. */
388411
/* #undef RRTYPE_NINFO */
389412

390413
/* Define this to enable RR type OPENPGPKEY. */
391414
#define RRTYPE_OPENPGPKEY /**/
392415

416+
/* Define this to enable RR type RESINFO. */
417+
#define RRTYPE_RESINFO /**/
418+
393419
/* Define this to enable RR type RKEY. */
394420
/* #undef RRTYPE_RKEY */
395421

@@ -665,7 +691,7 @@
665691
#ifdef HAVE_WINSOCK2_H
666692
#define FD_SET_T (u_int)
667693
#else
668-
#define FD_SET_T
694+
#define FD_SET_T
669695
#endif
670696

671697

@@ -718,6 +744,9 @@ time_t timegm (struct tm *tm);
718744
#ifndef HAVE_GMTIME_R
719745
struct tm *gmtime_r(const time_t *timep, struct tm *result);
720746
#endif
747+
#ifndef HAVE_ASCTIME_R
748+
char *asctime_r(const struct tm *tm, char *buf);
749+
#endif
721750
#ifndef HAVE_LOCALTIME_R
722751
struct tm *localtime_r(const time_t *timep, struct tm *result);
723752
#endif
@@ -732,10 +761,10 @@ int isascii(int c);
732761
int snprintf (char *str, size_t count, const char *fmt, ...);
733762
int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
734763
#endif /* HAVE_SNPRINTF */
735-
#ifndef HAVE_INET_PTON
764+
#if !defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
736765
int inet_pton(int af, const char* src, void* dst);
737766
#endif /* HAVE_INET_PTON */
738-
#ifndef HAVE_INET_NTOP
767+
#if !defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
739768
const char *inet_ntop(int af, const void *src, char *dst, size_t size);
740769
#endif
741770
#ifndef HAVE_INET_ATON
@@ -749,11 +778,11 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
749778
#endif
750779

751780
#ifdef USE_WINSOCK
752-
#define SOCK_INVALID INVALID_SOCKET
781+
#define SOCK_INVALID ((INT_PTR)INVALID_SOCKET)
753782
#define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
754783
#else
755784
#define SOCK_INVALID -1
756-
#define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s); _s = -1;} } while(0)
785+
#define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s >= -1 ? _s : -1); _s = -1;} } while(0)
757786
#endif
758787

759788
#ifdef __cplusplus

contrib/ldns/ldns/net.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,12 @@ int ldns_tcp_bgsend(ldns_buffer *qbin, const struct sockaddr_storage *to, sockle
9191

9292
/**
9393
* Sends a buffer to an ip using tcp and return the response as a ldns_pkt
94-
* \param[in] qbin the ldns_buffer to be send
94+
* \param[out] result packet with the answer
9595
* \param[in] qbin the ldns_buffer to be send
9696
* \param[in] to the ip addr to send to
9797
* \param[in] tolen length of the ip addr
9898
* \param[in] timeout the timeout value for the network
9999
* \param[out] answersize size of the packet
100-
* \param[out] result packet with the answer
101100
* \return status
102101
*/
103102
ldns_status ldns_tcp_send(uint8_t **result, ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout, size_t *answersize);

contrib/ldns/ldns/util.h

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ extern "C" {
2727
#define dprintf(X,Y) fprintf(stderr, (X), (Y))
2828
/* #define dprintf(X, Y) */
2929

30-
#define LDNS_VERSION "1.8.3"
31-
#define LDNS_REVISION ((1<<16)|(8<<8)|(3))
30+
#define LDNS_VERSION "1.9.0"
31+
#define LDNS_REVISION ((1<<16)|(9<<8)|(0))
3232

3333
/**
3434
* splint static inline workaround
@@ -72,8 +72,10 @@ ldns_read_uint16(const void *src)
7272
#ifdef ALLOW_UNALIGNED_ACCESSES
7373
return ntohs(*(const uint16_t *) src);
7474
#else
75+
# ifndef __clang_analyzer__
7576
const uint8_t *p = (const uint8_t *) src;
7677
return ((uint16_t) p[0] << 8) | (uint16_t) p[1];
78+
# endif
7779
#endif
7880
}
7981

@@ -91,6 +93,26 @@ ldns_read_uint32(const void *src)
9193
#endif
9294
}
9395

96+
INLINE uint64_t
97+
ldns_read_uint64(const void *src)
98+
{
99+
#ifdef ALLOW_UNALIGNED_ACCESSES
100+
const uint32_t *p = (const uint32_t *) src;
101+
return ( ((uint64_t) ntohl(src[0]) << 32)
102+
| (uint64_t) ntohl(src[1]));
103+
#else
104+
const uint8_t *p = (const uint8_t *) src;
105+
return ( ((uint64_t) p[0] << 56)
106+
| ((uint64_t) p[1] << 48)
107+
| ((uint64_t) p[2] << 40)
108+
| ((uint64_t) p[3] << 32)
109+
| ((uint64_t) p[4] << 24)
110+
| ((uint64_t) p[5] << 16)
111+
| ((uint64_t) p[6] << 8)
112+
| (uint64_t) p[7]);
113+
#endif
114+
}
115+
94116
/*
95117
* Copy data allowing for unaligned accesses in network byte order
96118
* (big endian).

0 commit comments

Comments
 (0)