summaryrefslogtreecommitdiff
path: root/lib/net.h
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2015-12-07 16:24:18 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2015-12-18 20:03:47 +0100
commit9b136840d90cce887cd139054c3f0a7d8b9f57d2 (patch)
tree3f49dd4025a884b10f6adf907d2fa6eec40bf11d /lib/net.h
parent04ae8ddaa15b72c265dc7cf038b733d235198754 (diff)
Netlink and BSD: Integrating IPv4 and IPv6
Squashing and minor changes by Ondrej Santiago Zajicek
Diffstat (limited to 'lib/net.h')
-rw-r--r--lib/net.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/net.h b/lib/net.h
index 378703f7..33686fb5 100644
--- a/lib/net.h
+++ b/lib/net.h
@@ -131,6 +131,8 @@ static inline uint net6_pxlen(const net_addr *a)
static inline uint net_pxlen(const net_addr *a)
{ return a->pxlen; }
+ip_addr net_pxmask(const net_addr *a);
+
static inline int net_equal(const net_addr *a, const net_addr *b)
{ return (a->length == b->length) && !memcmp(a, b, a->length); }
@@ -203,8 +205,9 @@ static inline void net_normalize_ip6(net_addr_ip6 *n)
void net_normalize(net_addr *N);
int net_validate(const net_addr *N);
+
int net_classify(const net_addr *N);
-char * net_format(const net_addr *N, char *buf, int buflen);
+int net_format(const net_addr *N, char *buf, int buflen);
int ipa_in_netX(const ip_addr A, const net_addr *N);