123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef ROUTING_H_
- #define ROUTING_H_
- #include <stdint.h>
- #include "linux/msm_ipa.h"
- using namespace std;
- class RoutingDriverWrapper
- {
- public:
- RoutingDriverWrapper();
- ~RoutingDriverWrapper();
- bool AddRoutingRule(struct ipa_ioc_add_rt_rule *ruleTable);
- bool AddRoutingRule(ipa_ioc_add_rt_rule_v2 *ruleTable_v2);
- bool DeleteRoutingRule(struct ipa_ioc_del_rt_rule *ruleTable);
- bool Commit(enum ipa_ip_type ip);
- bool Reset(enum ipa_ip_type ip);
- bool GetRoutingTable(struct ipa_ioc_get_rt_tbl *routingTable);
- bool PutRoutingTable(uint32_t routingTableHandle);
- bool DeviceNodeIsOpened();
- private:
- static const char *DEVICE_NAME;
-
- int m_fd;
- };
- #endif
|