From d44e686e9bcae5850115c0e1adfe24523dce61ee Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 12 Nov 2015 02:03:59 +0100 Subject: Follow-up commit on integrated BIRD Use net_addr for interface address prefixes, support net_addr in configuration parser. --- lib/net.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/net.h') 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 -- cgit v1.2.3