summaryrefslogtreecommitdiff
path: root/package/ramips/applications/hwnat/src/hwnat_api.h
blob: 542f20535cae9eeeebaa1377e47d6026fc64ce8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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