summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/net.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/net.h b/lib/net.h
index f6bf95f3..378703f7 100644
--- a/lib/net.h
+++ b/lib/net.h
@@ -24,8 +24,8 @@ typedef struct net_addr {
u8 type;
u8 pxlen;
u16 length;
+ u8 data[16];
u64 align[0];
- u32 space[4];
} net_addr;
typedef struct net_addr_ip4 {
@@ -207,6 +207,9 @@ int net_classify(const net_addr *N);
char * net_format(const net_addr *N, char *buf, int buflen);
+int ipa_in_netX(const ip_addr A, const net_addr *N);
+int net_in_netX(const net_addr *A, const net_addr *N);
+
#endif