diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-09-16 20:17:57 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-09-16 20:17:57 +0200 |
commit | 85bdc5b94c8a1730d3077f361297028cfd8b9b78 (patch) | |
tree | a6835c355fde8ce9f36c808dbb9b50809d3c77f4 /package/ramips/applications/hwnat/src/hwnat_api.h | |
parent | 6e0004f572f23810c21d5fb4477d8b9347dffdbb (diff) | |
download | mtk-20170518-mtk-20170518.zip mtk-20170518-mtk-20170518.tar.gz mtk-20170518-mtk-20170518.tar.bz2 |
MTK mt76 hwnat implementationHEADmtk-20170518
Diffstat (limited to 'package/ramips/applications/hwnat/src/hwnat_api.h')
-rwxr-xr-x | package/ramips/applications/hwnat/src/hwnat_api.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/package/ramips/applications/hwnat/src/hwnat_api.h b/package/ramips/applications/hwnat/src/hwnat_api.h new file mode 100755 index 0000000..542f205 --- /dev/null +++ b/package/ramips/applications/hwnat/src/hwnat_api.h @@ -0,0 +1,44 @@ +#ifndef __HW_NAT_API +#define __HW_NAT_API + +#define NIPQUAD(addr) \ + ((unsigned char *)&addr)[3], \ + ((unsigned char *)&addr)[2], \ + ((unsigned char *)&addr)[1], \ + ((unsigned char *)&addr)[0] +#define NIPHALF(addr) \ + ((unsigned short *)&addr)[1], \ + ((unsigned short *)&addr)[0] + +int HwNatDumpEntry(unsigned int entry_num); +int HwNatBindEntry(unsigned int entry_num); +int HwNatUnBindEntry(unsigned int entry_num); +int HwNatInvalidEntry(unsigned int entry_num); +int HwNatDscpRemarkEbl(struct hwnat_qos_args *opt); +int HwNatVpriRemarkEbl(struct hwnat_qos_args *opt); +int HwNatSetFoeWeight(struct hwnat_qos_args *opt); +int HwNatSetAclWeight(struct hwnat_qos_args *opt); +int HwNatSetDscpWeight(struct hwnat_qos_args *opt); +int HwNatSetVpriWeight(struct hwnat_qos_args *opt); +int HwNatSetDscp_Up(struct hwnat_qos_args *opt); +int HwNatSetUp_InDscp(struct hwnat_qos_args *opt); +int HwNatSetUp_OutDscp(struct hwnat_qos_args *opt); +int HwNatSetUp_Vpri(struct hwnat_qos_args *opt); +int HwNatSetUp_Ac(struct hwnat_qos_args *opt); +int HwNatSetSchMode(struct hwnat_qos_args *opt); +int HwNatSetSchWeight(struct hwnat_qos_args *opt); +int HwNatSetBindThreshold(struct hwnat_config_args *opt); +int HwNatSetMaxEntryRateLimit(struct hwnat_config_args *opt); +int HwNatSetRuleSize(struct hwnat_config_args *opt); +int HwNatSetKaInterval(struct hwnat_config_args *opt); +int HwNatSetUnbindLifeTime(struct hwnat_config_args *opt); +int HwNatSetBindLifeTime(struct hwnat_config_args *opt); +int HwNatSetVID(struct hwnat_config_args *opt); +int HwNatSetBindDir(struct hwnat_config_args *opt); +int HwNatGetAllEntries(struct hwnat_args *opt); +int HwNatDebug(unsigned int debug); +int HwNatGetAGCnt(struct hwnat_ac_args *opt); +int HwNatMcastIns(struct hwnat_mcast_args *opt); +int HwNatMcastDel(struct hwnat_mcast_args *opt); +int HwNatMcastDump(void); +#endif |