mailing list of musl libc
 help / color / mirror / code / Atom feed
32afd5455727894fb40b08d4c8e7853682d00bfd blob 1137 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
#ifndef LOOKUP_H
#define LOOKUP_H

#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>

struct address {
	int family;
	unsigned scopeid;
	uint8_t addr[16];
	int sortkey;
};

struct service {
	uint16_t port;
	unsigned char proto, socktype;
};

#define MAXNS 3

struct resolvconf {
	struct address ns[MAXNS];
	unsigned nns, attempts, ndots;
	unsigned timeout;
};

/* The limit of 48 results is a non-sharp bound on the number of addresses
 * that can fit in one 512-byte DNS packet full of v4 results and a second
 * packet full of v6 results. Due to headers, the actual limit is lower. */
#define MAXADDRS 48
#define MAXSERVS 2

struct addrconfig {
	bool af_inet  : 1;
	bool af_inet6 : 1;
};

int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags);
int __lookup_name(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, int flags);
int __lookup_ipliteral(struct address buf[static 1], const char *name, int family);
void __lookup_addrconfig( struct addrconfig *cfg );

int __get_resolv_conf(struct resolvconf *, char *, size_t);

#endif
debug log:

solving 32afd545 ...
found 32afd545 in https://inbox.vuxu.org/musl/20180711164417.GX1392@brightrain.aerifal.cx/
found 0468edbc in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 0468edbc61c569d260fa2709ae719256523844b4	src/network/lookup.h

applying [1/1] https://inbox.vuxu.org/musl/20180711164417.GX1392@brightrain.aerifal.cx/
diff --git a/src/network/lookup.h b/src/network/lookup.h
index 0468edbc..32afd545 100644

Checking patch src/network/lookup.h...
Applied patch src/network/lookup.h cleanly.

index at:
100644 32afd5455727894fb40b08d4c8e7853682d00bfd	src/network/lookup.h

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).