From 58ef912c6babf1866193ab04674a5866dd761f13 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 22 Apr 1998 12:58:34 +0000 Subject: First look at data structures. More to come tomorrow... --- nest/ipv6.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nest/ipv6.h (limited to 'nest/ipv6.h') 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 + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#ifndef _BIRD_IPV4_H_ +#define _BIRD_IPV4_H_ + +#include +#include + +typedef struct ipv4_addr { + u32 addr[4]; +} ip_addr; + +#define ipa_equal(x,y) (!memcmp(&(x),&(y),sizeof(ip_addr))) + +#endif -- cgit v1.2.3