xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | #ifndef __ACL_API |
2 | #define __ACL_API | ||||
3 | |||||
4 | #define NIPQUAD(addr) \ | ||||
5 | ((unsigned char *)&addr)[3], \ | ||||
6 | ((unsigned char *)&addr)[2], \ | ||||
7 | ((unsigned char *)&addr)[1], \ | ||||
8 | ((unsigned char *)&addr)[0] | ||||
9 | #define NIPHALF(addr) \ | ||||
10 | ((unsigned short *)&addr)[0], \ | ||||
11 | ((unsigned short *)&addr)[1] | ||||
12 | |||||
13 | int SetAclEntry(struct acl_args *opt, unsigned int cmd); | ||||
14 | int AclGetAllEntries(struct acl_list_args *opt); | ||||
15 | |||||
16 | #endif |