mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 08:42:17 -04:00
move function comments to header
This commit is contained in:
parent
0193e4eeb3
commit
c37878508a
2 changed files with 5 additions and 10 deletions
|
|
@ -1404,9 +1404,6 @@ char *fmt_url(check_curl_working_state workingState) {
|
|||
return url;
|
||||
}
|
||||
|
||||
|
||||
/* function that will determine if the host or the proxy resolves the target hostname */
|
||||
/* 0 means the host will resolve the target hostname, 1 means proxy is going to resolve the hostname */
|
||||
int determine_hostname_resolver(const check_curl_working_state working_state, const check_curl_static_curl_config config){
|
||||
char *host_name_display = "NULL";
|
||||
unsigned long host_name_len = 0;
|
||||
|
|
@ -1583,11 +1580,6 @@ int determine_hostname_resolver(const check_curl_working_state working_state, co
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// This function checks if an IP is contained within a cidr_region or is directly the IP being searched
|
||||
// return code 1 means its inside
|
||||
// return code 0 means its out
|
||||
// return code < 0 means error
|
||||
int ip_addr_inside_cidr(const char* cidr_region_or_ip_addr, const char* target_ip){
|
||||
unsigned int slash_count = 0;
|
||||
unsigned int last_slash_idx = 0;
|
||||
|
|
|
|||
|
|
@ -127,8 +127,11 @@ mp_subcheck check_curl_certificate_checks(CURL *curl, X509 *cert, int warn_days_
|
|||
int crit_days_till_exp);
|
||||
char *fmt_url(check_curl_working_state workingState);
|
||||
|
||||
/* returns 0 if requester resolves the hostname locally, 1 if proxy resolves the hostname*/
|
||||
|
||||
/* function that will determine if the host or the proxy resolves the target hostname
|
||||
returns 0 if requester resolves the hostname locally, 1 if proxy resolves the hostname */
|
||||
int determine_hostname_resolver(const check_curl_working_state working_state, const check_curl_static_curl_config config);
|
||||
|
||||
/* returns 1 if the target_ip address is inside the given cidr notation. /0 or empty ranges perform an equality check. Supports both IPv4 and IPv6 */
|
||||
/* Checks if an IP is inside given CIDR region. Using /protocol_size or not specifying the prefix length performs an equality check. Supports both IPv4 and IPv6
|
||||
returns 1 if the target_ip address is inside the given cidr_region_or_ip_addr, 0 if its out. return codes < 0 mean an error has occurred. */
|
||||
int ip_addr_inside_cidr(const char* cidr_region_or_ip_addr, const char* target_ip);
|
||||
|
|
|
|||
Loading…
Reference in a new issue