blob: 0f58e92cf2f09e4df7f016bbd302ed226c649007 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|