19 lines
403 B
C
19 lines
403 B
C
|
//
|
||
|
// Created by xajhuang on 2023/3/21.
|
||
|
//
|
||
|
|
||
|
#ifndef PROJECT_IPADDR_H
|
||
|
#define PROJECT_IPADDR_H
|
||
|
#include "common.h"
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
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);
|
||
|
U32 ipv4_mask_to_cidr(const char * netmask);
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
#endif //PROJECT_IPADDR_H
|