projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove inclusion guard hacks for sys/kd.h
[musl]
/
src
/
network
/
lookup.h
diff --git
a/src/network/lookup.h
b/src/network/lookup.h
index
82c969e
..
0468edb
100644
(file)
--- a/
src/network/lookup.h
+++ b/
src/network/lookup.h
@@
-2,16
+2,26
@@
#define LOOKUP_H
#include <stdint.h>
#define LOOKUP_H
#include <stdint.h>
+#include <stddef.h>
struct address {
int family;
unsigned scopeid;
uint8_t addr[16];
struct address {
int family;
unsigned scopeid;
uint8_t addr[16];
+ int sortkey;
};
struct service {
uint16_t port;
};
struct service {
uint16_t port;
- char proto;
+ 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
};
/* The limit of 48 results is a non-sharp bound on the number of addresses
@@
-20,7
+30,10
@@
struct service {
#define MAXADDRS 48
#define MAXSERVS 2
#define MAXADDRS 48
#define MAXSERVS 2
-int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int flags);
+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_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);
+
+int __get_resolv_conf(struct resolvconf *, char *, size_t);
#endif
#endif