2023-03-29 09:02:21 +00:00
|
|
|
//
|
|
|
|
// Created by xajhuang on 2023/3/21.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef VCPE_IPADDR_H
|
|
|
|
#define VCPE_IPADDR_H
|
2023-04-07 07:56:38 +00:00
|
|
|
#include "common.h"
|
2023-03-29 09:02:21 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2023-04-07 07:56:38 +00:00
|
|
|
U32 ipv4_get_network_addr(U32 ipAddr, U32 netmask);
|
|
|
|
U32 ipv4_get_boardcast_addr(U32 ipAddr, U32 netmask);
|
|
|
|
U32 ipv4_network_total_addr(U32 netmask);
|
2023-05-06 09:54:18 +00:00
|
|
|
U32 ipv4_mask_to_cidr(const char * netmask);
|
2023-03-29 09:02:21 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif //VCPE_IPADDR_H
|