#ifndef IPALLOC_H #define IPALLOC_H #include "genalloc.h" #include "ip.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); GEN_ALLOC_readyplus(ipalloc, struct ip_mx, ix, len, a, i, n, x, 22, ipalloc_readyplus); GEN_ALLOC_append(ipalloc, struct ip_mx, ix, len, a, i, n, x, 22, ipalloc_readyplus, ipalloc_append); #endif