1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/* $OpenBSD: afnum.h,v 1.1 2006/03/28 15:48:33 reyk Exp $ */
/*
* Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef _AFNUM_H
#define _AFNUM_H
/*
* RFC3232 address family numbers
* see http://www.iana.org/assignments/address-family-numbers
*/
#define AFNUM_INET 1
#define AFNUM_INET6 2
#define AFNUM_NSAP 3
#define AFNUM_HDLC 4
#define AFNUM_BBN1822 5
#define AFNUM_802 6
#define AFNUM_E163 7
#define AFNUM_E164 8
#define AFNUM_F69 9
#define AFNUM_X121 10
#define AFNUM_IPX 11
#define AFNUM_ATALK 12
#define AFNUM_DECNET 13
#define AFNUM_BANYAN 14
#define AFNUM_E164NSAP 15
#define AFNUM_DNS 16
#define AFNUM_DN 17
#define AFNUM_AS 18
#define AFNUM_XTPINET 19
#define AFNUM_XTPINET6 20
#define AFNUM_XTP 21
#define AFNUM_FCPORT 22
#define AFNUM_FCNODE 23
#define AFNUM_GWID 24
#define AFNUM_MAX 24
#define AFNUM_RESERVED 65535
#define AFNUM_NAME_STR { \
"Reserved", \
"IPv4", \
"IPv6", \
"NSAP", \
"HDLC", \
"BBN 1822", \
"802", \
"E.163", \
"E.164", \
"F.69", \
"X.121", \
"IPX", \
"Appletalk", \
"Decnet IV", \
"Banyan Vines", \
"E.164 with NSAP subaddress", \
"DNS", \
"AS Number", \
"XTP over IPv4", \
"XTP over IPv6", \
"XTP native mode", \
"Fibre Channel WWPN", \
"Fibre Channel WWNN", \
"GWID" \
}
#endif /* _AFNUM_H */
|