summaryrefslogtreecommitdiffstats
path: root/include/cidr.h
blob: f8a4e2a740e2cd48a1674f547c63b6d82cbe5589 (plain)
1
2
3
4
5
6
7
8
#ifndef _CIDR_H_

uint32_t ipv4_cidr2mask_host(uint8_t cidr);
uint32_t ipv4_cidr2mask_net(uint8_t cidr);
void ipv6_cidr2mask_host(uint8_t cidr, uint32_t *res);
void ipv6_cidr2mask_net(uint8_t cidr, uint32_t *res);

#endif