summaryrefslogtreecommitdiff
path: root/sqmail-4.3.07/src/include/ipalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sqmail-4.3.07/src/include/ipalloc.h')
-rw-r--r--sqmail-4.3.07/src/include/ipalloc.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sqmail-4.3.07/src/include/ipalloc.h b/sqmail-4.3.07/src/include/ipalloc.h
new file mode 100644
index 0000000..0f58e92
--- /dev/null
+++ b/sqmail-4.3.07/src/include/ipalloc.h
@@ -0,0 +1,22 @@
+#ifndef IPALLOC_H
+#define IPALLOC_H
+
+#include "ip.h"
+#include "genalloc.h"
+#define NAME_LEN 256
+
+struct ip_mx {
+ unsigned short af;
+ union {
+ struct ip4_address ip4;
+ struct ip6_address ip6;
+ } addr;
+ int pref;
+ char mxh[NAME_LEN];
+};
+
+GEN_ALLOC_typedef(ipalloc,struct ip_mx,ix,len,a)
+int ipalloc_readyplus();
+int ipalloc_append();
+
+#endif