xref: /freebsd/tests/atf_python/sys/netpfil/ipfw/ioctl_headers.py (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1from enum import Enum
2
3
4class Op3CmdType(Enum):
5    IP_FW_TABLE_XADD = 86
6    IP_FW_TABLE_XDEL = 87
7    IP_FW_TABLE_XGETSIZE = 88
8    IP_FW_TABLE_XLIST = 89
9    IP_FW_TABLE_XDESTROY = 90
10    IP_FW_TABLES_XLIST = 92
11    IP_FW_TABLE_XINFO = 93
12    IP_FW_TABLE_XFLUSH = 94
13    IP_FW_TABLE_XCREATE = 95
14    IP_FW_TABLE_XMODIFY = 96
15    IP_FW_XGET = 97
16    IP_FW_XADD = 98
17    IP_FW_XDEL = 99
18    IP_FW_XMOVE = 100
19    IP_FW_XZERO = 101
20    IP_FW_XRESETLOG = 102
21    IP_FW_SET_SWAP = 103
22    IP_FW_SET_MOVE = 104
23    IP_FW_SET_ENABLE = 105
24    IP_FW_TABLE_XFIND = 106
25    IP_FW_XIFLIST = 107
26    IP_FW_TABLES_ALIST = 108
27    IP_FW_TABLE_XSWAP = 109
28    IP_FW_TABLE_VLIST = 110
29    IP_FW_NAT44_XCONFIG = 111
30    IP_FW_NAT44_DESTROY = 112
31    IP_FW_NAT44_XGETCONFIG = 113
32    IP_FW_NAT44_LIST_NAT = 114
33    IP_FW_NAT44_XGETLOG = 115
34    IP_FW_DUMP_SOPTCODES = 116
35    IP_FW_DUMP_SRVOBJECTS = 117
36    IP_FW_NAT64STL_CREATE = 130
37    IP_FW_NAT64STL_DESTROY = 131
38    IP_FW_NAT64STL_CONFIG = 132
39    IP_FW_NAT64STL_LIST = 133
40    IP_FW_NAT64STL_STATS = 134
41    IP_FW_NAT64STL_RESET_STATS = 135
42    IP_FW_NAT64LSN_CREATE = 140
43    IP_FW_NAT64LSN_DESTROY = 141
44    IP_FW_NAT64LSN_CONFIG = 142
45    IP_FW_NAT64LSN_LIST = 143
46    IP_FW_NAT64LSN_STATS = 144
47    IP_FW_NAT64LSN_LIST_STATES = 145
48    IP_FW_NAT64LSN_RESET_STATS = 146
49    IP_FW_NPTV6_CREATE = 150
50    IP_FW_NPTV6_DESTROY = 151
51    IP_FW_NPTV6_CONFIG = 152
52    IP_FW_NPTV6_LIST = 153
53    IP_FW_NPTV6_STATS = 154
54    IP_FW_NPTV6_RESET_STATS = 155
55    IP_FW_NAT64CLAT_CREATE = 160
56    IP_FW_NAT64CLAT_DESTROY = 161
57    IP_FW_NAT64CLAT_CONFIG = 162
58    IP_FW_NAT64CLAT_LIST = 163
59    IP_FW_NAT64CLAT_STATS = 164
60    IP_FW_NAT64CLAT_RESET_STATS = 165
61
62
63class IpFwTableLookupType(Enum):
64    LOOKUP_DST_IP = 0
65    LOOKUP_SRC_IP = 1
66    LOOKUP_DST_PORT = 2
67    LOOKUP_SRC_PORT = 3
68    LOOKUP_UID = 4
69    LOOKUP_JAIL = 5
70    LOOKUP_DSCP = 6
71    LOOKUP_DST_MAC = 7
72    LOOKUP_SRC_MAC = 8
73    LOOKUP_MARK = 9
74
75
76class IpFwTlvType(Enum):
77    IPFW_TLV_TBL_NAME = 1
78    IPFW_TLV_TBLNAME_LIST = 2
79    IPFW_TLV_RULE_LIST = 3
80    IPFW_TLV_DYNSTATE_LIST = 4
81    IPFW_TLV_TBL_ENT = 5
82    IPFW_TLV_DYN_ENT = 6
83    IPFW_TLV_RULE_ENT = 7
84    IPFW_TLV_TBLENT_LIST = 8
85    IPFW_TLV_RANGE = 9
86    IPFW_TLV_EACTION = 10
87    IPFW_TLV_COUNTERS = 11
88    IPFW_TLV_OBJDATA = 12
89    IPFW_TLV_STATE_NAME = 14
90    IPFW_TLV_EACTION_BASE = 1000
91