summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/addr.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2024-10-18 04:30:10 +0000
committerDamien Miller <djm@cvs.openbsd.org>2024-10-18 04:30:10 +0000
commitde9677fd63a48ae79f4bf625d6df0d5de7b4fe4f (patch)
treedc6022a58864c799f623a19179f8f1559cda3e1f /usr.bin/ssh/addr.h
parent5716329fda62405c78541d7b7d41c495aeb5bf4d (diff)
remove addr.[ch] functions that are unused and visbility-restrict
ones that are unused outside the implementation itself; based on GHPR#282 by tobias@
Diffstat (limited to 'usr.bin/ssh/addr.h')
-rw-r--r--usr.bin/ssh/addr.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/usr.bin/ssh/addr.h b/usr.bin/ssh/addr.h
index 180e9fdc644..29438dfecf2 100644
--- a/usr.bin/ssh/addr.h
+++ b/usr.bin/ssh/addr.h
@@ -39,24 +39,13 @@ struct xaddr {
#define addr32 xa.addr32
};
-int addr_unicast_masklen(int af);
-int addr_xaddr_to_sa(const struct xaddr *xa, struct sockaddr *sa,
- socklen_t *len, u_int16_t port);
int addr_sa_to_xaddr(struct sockaddr *sa, socklen_t slen, struct xaddr *xa);
int addr_netmask(int af, u_int l, struct xaddr *n);
-int addr_hostmask(int af, u_int l, struct xaddr *n);
-int addr_invert(struct xaddr *n);
int addr_pton(const char *p, struct xaddr *n);
-int addr_sa_pton(const char *h, const char *s, struct sockaddr *sa,
- socklen_t slen);
int addr_pton_cidr(const char *p, struct xaddr *n, u_int *l);
int addr_ntop(const struct xaddr *n, char *p, size_t len);
int addr_and(struct xaddr *dst, const struct xaddr *a, const struct xaddr *b);
-int addr_or(struct xaddr *dst, const struct xaddr *a, const struct xaddr *b);
int addr_cmp(const struct xaddr *a, const struct xaddr *b);
-int addr_is_all0s(const struct xaddr *n);
-int addr_host_is_all0s(const struct xaddr *n, u_int masklen);
-int addr_host_to_all0s(struct xaddr *a, u_int masklen);
int addr_host_to_all1s(struct xaddr *a, u_int masklen);
int addr_netmatch(const struct xaddr *host, const struct xaddr *net,
u_int masklen);