summaryrefslogtreecommitdiff
path: root/nest/ipv4.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-04-22 12:58:34 +0000
committerMartin Mares <mj@ucw.cz>1998-04-22 12:58:34 +0000
commit58ef912c6babf1866193ab04674a5866dd761f13 (patch)
tree244af1a4acb9feac08b45800587a06653a6ff264 /nest/ipv4.h
parentb60f7489148d021cb541414b8788f795ec4378fa (diff)
First look at data structures. More to come tomorrow...
Diffstat (limited to 'nest/ipv4.h')
-rw-r--r--nest/ipv4.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/nest/ipv4.h b/nest/ipv4.h
new file mode 100644
index 00000000..75242298
--- /dev/null
+++ b/nest/ipv4.h
@@ -0,0 +1,20 @@
+/*
+ * BIRD -- IP Addresses et Cetera for IPv4
+ *
+ * (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>
+
+typedef struct ipv4_addr {
+ u32 addr;
+} ip_addr;
+
+#define ipa_equal(x,y) ((x).addr == (y).addr)
+
+#endif