acl/lib_acl/include/net/acl_mask_addr.h

26 lines
591 B
C
Raw Normal View History

#ifndef ACL_MASK_ADDR_H_INCLUDED
2014-11-19 00:25:21 +08:00
#define ACL_MASK_ADDR_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
2017-06-02 14:47:24 +08:00
#include "../stdlib/acl_define.h"
2014-11-19 00:25:21 +08:00
/**
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>IP<EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ
* @param addr_bytes {unsigned char*} <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD><EFBFBD><EFBFBD> IP <EFBFBD><EFBFBD>ַ,
* (<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪIPv4/IPv6), <EFBFBD>ò<EFBFBD><EFBFBD><EFBFBD>Ϊֵ<EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸõ<EFBFBD>ַ<EFBFBD><EFBFBD>
* @param addr_byte_count {unsigned} addr_bytes <EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param network_bits {unsigned} <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ij<EFBFBD><EFBFBD><EFBFBD>
2014-11-19 00:25:21 +08:00
*/
ACL_API void acl_mask_addr(unsigned char *addr_bytes,
unsigned addr_byte_count, unsigned network_bits);
#ifdef __cplusplus
}
#endif
#endif