summaryrefslogtreecommitdiff
path: root/src/sp_network_utils.h
blob: 69789a6fbfbddea7fe0fb2377e058fbb05beaed5 (plain)
1
2
3
4
5
6
7
8
#ifndef SP_NETWORK_UTILS_H
#define SP_NETWORK_UTILS_H

int get_ip_and_cidr(char *, sp_cidr *);
bool cidr_match(const char *, const sp_cidr *);
bool /* success */ get_ip_str(char *dst, size_t dst_len, sp_cidr *cidr);

#endif /*SP_NETWORK_UTILS_H*/