2 * Types for the ICF api
4 * Copyright 2007 Jeff Latimer
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 typedef enum NET_FW_PROFILE_TYPE_
26 NET_FW_PROFILE_DOMAIN
,
27 NET_FW_PROFILE_STANDARD
,
28 NET_FW_PROFILE_CURRENT
,
29 NET_FW_PROFILE_TYPE_MAX
30 } NET_FW_PROFILE_TYPE
;
32 typedef enum NET_FW_PROFILE_TYPE2_
34 NET_FW_PROFILE2_DOMAIN
= 0x0001,
35 NET_FW_PROFILE2_PRIVATE
= 0x0002,
36 NET_FW_PROFILE2_PUBLIC
= 0x0004,
37 NET_FW_PROFILE2_ALL
= 0x7FFFFFFF
38 } NET_FW_PROFILE_TYPE2
;
40 typedef enum NET_FW_IP_VERSION_
44 NET_FW_IP_VERSION_ANY
,
48 typedef enum NET_FW_POLICY_TYPE_
52 NET_FW_POLICY_EFFECTIVE
,
53 NET_FW_POLICY_TYPE_MAX
56 typedef enum NET_FW_SCOPE_
59 NET_FW_SCOPE_LOCAL_SUBNET
,
64 typedef enum NET_FW_SERVICE_TYPE_
66 NET_FW_SERVICE_FILE_AND_PRINT
,
68 NET_FW_SERVICE_REMOTE_DESKTOP
,
70 NET_FW_SERVICE_TYPE_MAX
71 } NET_FW_SERVICE_TYPE
;
73 typedef enum NET_FW_IP_PROTOCOL_
75 NET_FW_IP_PROTOCOL_TCP
= 6,
76 NET_FW_IP_PROTOCOL_UDP
= 17
79 typedef enum NET_FW_RULE_DIRECTION_
81 NET_FW_RULE_DIR_IN
= 1,
84 } NET_FW_RULE_DIRECTION
;
86 typedef enum NET_FW_ACTION_
93 typedef enum NET_FW_MODIFY_STATE_
95 NET_FW_MODIFY_STATE_OK
,
96 NET_FW_MODIFY_STATE_GP_OVERRIDE
,
97 NET_FW_MODIFY_STATE_INBOUND_BLOCKED
98 } NET_FW_MODIFY_STATE
;