2 * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 #ifndef __STC_IPT_CHAIN_H__
17 #define __STC_IPT_CHAIN_H__
25 #define STC_IPT_METHOD_IPT_ADD_CHAIN "IptAddChain"
26 #define STC_IPT_METHOD_IPT_FLUSH_CHAIN "IptFlushChain"
27 #define STC_IPT_METHOD_IPT_REMOVE_CHAIN "IptRemoveChain"
29 #define STC_IPT_METHOD_IP6T_ADD_CHAIN "Ip6tAddChain"
30 #define STC_IPT_METHOD_IP6T_FLUSH_CHAIN "Ip6tFlushChain"
31 #define STC_IPT_METHOD_IP6T_REMOVE_CHAIN "Ip6tRemoveChain"
33 class Chain : public GDbus {
35 char m_ChainName[CHAIN_NAME_LEN];
39 error_e SetChainName(const char *name);
40 error_e AddChain(void);
41 error_e Add6Chain(void);
42 error_e FlushChain(void);
43 error_e Flush6Chain(void);
44 error_e RemoveChain(void);
45 error_e Remove6Chain(void);
48 #endif /* __STC_IPT_CHAIN_H__ */