Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 65 lines (59 sloc) 1.673 kB
0b5409f @jedisct1 Start splitting things.
authored
1
2 #ifndef __ID_NAME_P_H__
3 #define __ID_NAME_P_H__ 1
4
5 static IdName pf_domains[] = {
6 { PF_LOCAL, "PF_LOCAL" },
7 { PF_UNIX, "PF_UNIX" },
8 { PF_INET, "PF_INET" },
9 { PF_ROUTE, "PF_ROUTE" },
10 { PF_KEY, "PF_KEY" },
11 { PF_INET6, "PF_INET6" },
12 #ifdef PF_SYSTEM
13 { PF_SYSTEM, "PF_SYSTEM" },
14 #endif
15 #ifdef PF_NDRV
16 { PF_NDRV, "PF_NDRV" },
17 #endif
18 #ifdef PF_NETLINK
19 { PF_NETLINK,"PF_NETLINK" },
20 #endif
21 #ifdef PF_FILE
22 { PF_FILE, "PF_FILE" },
23 #endif
24 { -1, NULL }
25 };
26
27 static IdName sock_types[] = {
28 { SOCK_STREAM, "SOCK_STREAM" },
29 { SOCK_DGRAM, "SOCK_DGRAM" },
30 { SOCK_RAW, "SOCK_RAW" },
31 { SOCK_SEQPACKET, "SOCK_SEQPACKET" },
32 { SOCK_RDM, "SOCK_RDM" },
33 { -1, NULL }
34 };
35
36 static IdName ip_protos[] = {
37 { IPPROTO_IP, "IPPROTO_IP" },
38 { IPPROTO_ICMP, "IPPROTO_ICMP" },
39 { IPPROTO_IGMP, "IPPROTO_IGMP" },
40 #ifdef IPPROTO_IPV4
41 { IPPROTO_IPV4, "IPPROTO_IPV4" },
42 #endif
43 { IPPROTO_TCP, "IPPROTO_TCP" },
44 { IPPROTO_UDP, "IPPROTO_UDP" },
45 { IPPROTO_IPV6, "IPPROTO_IPV6" },
46 { IPPROTO_ROUTING, "IPPROTO_ROUTING" },
47 { IPPROTO_FRAGMENT,"IPPROTO_FRAGMENT" },
48 { IPPROTO_GRE, "IPPROTO_GRE" },
49 { IPPROTO_ESP, "IPPROTO_ESP" },
50 { IPPROTO_AH, "IPPROTO_AH" },
51 { IPPROTO_ICMPV6, "IPPROTO_ICMPV6" },
52 { IPPROTO_NONE, "IPPROTO_NONE" },
53 { IPPROTO_DSTOPTS, "IPPROTO_DSTOPTS" },
54 #ifdef IPPROTO_IPCOMP
55 { IPPROTO_IPCOMP, "IPPROTO_IPCOMP" },
56 #endif
57 { IPPROTO_PIM, "IPPROTO_PIM" },
58 #ifdef IPPROTO_PGM
59 { IPPROTO_PGM, "IPPROTO_PGM" },
60 #endif
61 { -1, NULL }
62 };
63
64 #endif
Something went wrong with that request. Please try again.