1 /* 2 * Copyright (C) 2016 The Android Open Source Project 3 * 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 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 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. 15 */ 16 17 #ifndef _CONTROLLERS_H__ 18 #define _CONTROLLERS_H__ 19 20 #include <sysutils/FrameworkListener.h> 21 22 #include "BandwidthController.h" 23 #include "ClatdController.h" 24 #include "EventReporter.h" 25 #include "FirewallController.h" 26 #include "IdletimerController.h" 27 #include "InterfaceController.h" 28 #include "IptablesRestoreController.h" 29 #include "NatController.h" 30 #include "NetworkController.h" 31 #include "PppController.h" 32 #include "ResolverController.h" 33 #include "StrictController.h" 34 #include "TetherController.h" 35 #include "XfrmController.h" 36 37 namespace android { 38 namespace net { 39 40 class Controllers { 41 public: 42 Controllers(); 43 44 NetworkController netCtrl; 45 TetherController tetherCtrl; 46 NatController natCtrl; 47 PppController pppCtrl; 48 BandwidthController bandwidthCtrl; 49 IdletimerController idletimerCtrl; 50 ResolverController resolverCtrl; 51 FirewallController firewallCtrl; 52 ClatdController clatdCtrl; 53 StrictController strictCtrl; 54 EventReporter eventReporter; 55 IptablesRestoreController iptablesRestoreCtrl; 56 XfrmController xfrmCtrl; 57 58 void init(); 59 60 private: 61 void initIptablesRules(); 62 }; 63 64 extern Controllers* gCtls; 65 66 } // namespace net 67 } // namespace android 68 69 #endif // _CONTROLLERS_H__ 70