diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-11-12 02:03:59 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-11-12 02:03:59 +0100 |
commit | d44e686e9bcae5850115c0e1adfe24523dce61ee (patch) | |
tree | 88feb4c9e43fe547db954496ec5d9eb66b307f52 /lib | |
parent | fe9f1a6dedda6bab23cbb605d1cd5db6cd3e2468 (diff) |
Follow-up commit on integrated BIRD
Use net_addr for interface address prefixes, support net_addr in
configuration parser.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |