diff options
author | Martin Mares <mj@ucw.cz> | 1998-04-22 14:58:34 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-04-22 14:58:34 +0200 |
commit | 58ef912c6babf1866193ab04674a5866dd761f13 (patch) | |
tree | 244af1a4acb9feac08b45800587a06653a6ff264 /nest/ipv6.h | |
parent | b60f7489148d021cb541414b8788f795ec4378fa (diff) | |
download | bird-58ef912c6babf1866193ab04674a5866dd761f13.tar bird-58ef912c6babf1866193ab04674a5866dd761f13.zip |
First look at data structures. More to come tomorrow...
Diffstat (limited to 'nest/ipv6.h')
-rw-r--r-- | nest/ipv6.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nest/ipv6.h b/nest/ipv6.h new file mode 100644 index 0000000..5d5e354 --- /dev/null +++ b/nest/ipv6.h @@ -0,0 +1,21 @@ +/* + * BIRD -- IP Addresses et Cetera for IPv6 + * + * (c) 1998 Martin Mares <mj@ucw.cz> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#ifndef _BIRD_IPV4_H_ +#define _BIRD_IPV4_H_ + +#include <netinet/in.h> +#include <string.h> + +typedef struct ipv4_addr { + u32 addr[4]; +} ip_addr; + +#define ipa_equal(x,y) (!memcmp(&(x),&(y),sizeof(ip_addr))) + +#endif |