mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 17:30:53 +08:00
26 lines
571 B
C
26 lines
571 B
C
|
#ifndef __ACL_MASK_ADDR_H_INCLUDED__
|
|||
|
#define __ACL_MASK_ADDR_H_INCLUDED__
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
extern "C" {
|
|||
|
#endif
|
|||
|
|
|||
|
#include "stdlib/acl_define.h"
|
|||
|
|
|||
|
/**
|
|||
|
* <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_type_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>
|
|||
|
*/
|
|||
|
ACL_API void acl_mask_addr(unsigned char *addr_bytes,
|
|||
|
unsigned addr_byte_count, unsigned network_bits);
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
#endif
|
|||
|
|