diff options
Diffstat (limited to 'src/sp_network_utils.h')
| -rw-r--r-- | src/sp_network_utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sp_network_utils.h b/src/sp_network_utils.h new file mode 100644 index 0000000..6b6ce92 --- /dev/null +++ b/src/sp_network_utils.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #ifndef SP_NETWORK_UTILS_H | ||
| 2 | #define SP_NETWORK_UTILS_H | ||
| 3 | |||
| 4 | int get_ip_and_cidr(char *, sp_cidr *); | ||
| 5 | bool cidr_match(const char *, const sp_cidr *); | ||
| 6 | void apply_mask_on_ip(char *, const char * const); | ||
| 7 | |||
| 8 | #endif /*SP_NETWORK_UTILS_H*/ | ||
