blob: 9b6f574d480860ff555cdd04b8b0cc3f6f9cb661 [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001#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
13int SetAclEntry(struct acl_args *opt, unsigned int cmd);
14int AclGetAllEntries(struct acl_list_args *opt);
15
16#endif