aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/inet_common.h11
-rw-r--r--include/libbb.h2
2 files changed, 7 insertions, 6 deletions
diff --git a/include/inet_common.h b/include/inet_common.h
index bda621198..fa48fdffa 100644
--- a/include/inet_common.h
+++ b/include/inet_common.h
@@ -12,14 +12,15 @@
12/* hostfirst!=0 If we expect this to be a hostname, 12/* hostfirst!=0 If we expect this to be a hostname,
13 try hostname database first 13 try hostname database first
14 */ 14 */
15extern int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst); 15int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst);
16 16
17/* numeric: & 0x8000: "default" instead of "*", 17/* numeric: & 0x8000: "default" instead of "*",
18 * & 0x4000: host instead of net, 18 * & 0x4000: host instead of net,
19 * & 0x0fff: don't resolve 19 * & 0x0fff: don't resolve
20 */ 20 */
21extern int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in, 21int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in,
22 int numeric, unsigned int netmask); 22 int numeric, unsigned int netmask);
23 23
24extern int INET6_resolve(const char *name, struct sockaddr_in6 *sin6); 24
25extern int INET6_rresolve(char *name, size_t len, struct sockaddr_in6 *sin6, int numeric); 25int INET6_resolve(const char *name, struct sockaddr_in6 *sin6);
26int INET6_rresolve(char *name, size_t len, struct sockaddr_in6 *sin6, int numeric);
diff --git a/include/libbb.h b/include/libbb.h
index 3c9f9fe81..999caae0c 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -699,7 +699,7 @@ struct hwtype {
699 int (*activate) (int fd); 699 int (*activate) (int fd);
700 int suppress_null_addr; 700 int suppress_null_addr;
701}; 701};
702extern int interface_opt_a; 702extern smallint interface_opt_a;
703int display_interfaces(char *ifname); 703int display_interfaces(char *ifname);
704const struct aftype *get_aftype(const char *name); 704const struct aftype *get_aftype(const char *name);
705const struct hwtype *get_hwtype(const char *name); 705const struct hwtype *get_hwtype(const char *name);