diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2015-12-07 16:24:18 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-12-18 20:03:47 +0100 |
commit | 9b136840d90cce887cd139054c3f0a7d8b9f57d2 (patch) | |
tree | 3f49dd4025a884b10f6adf907d2fa6eec40bf11d /lib/net.h | |
parent | 04ae8ddaa15b72c265dc7cf038b733d235198754 (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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |