diff options
| author | Sebastien Blot | 2017-09-20 10:11:01 +0200 |
|---|---|---|
| committer | Sebastien Blot | 2017-09-20 10:11:01 +0200 |
| commit | 868f96c759b6650d88ff9f4fbc5c048302134248 (patch) | |
| tree | c0de0af318bf77a8959164ef11aeeeb2b7bab294 /src/sp_network_utils.h | |
Initial import
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*/ | ||
