diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2016-09-07 13:56:53 +0300 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2016-09-07 13:56:53 +0300 |
commit | a613df5b3f470369e7ce7ebe34e82056b6fc0919 (patch) | |
tree | b8759158ae920818f1c9d67159b42aa4a3623ddc /src/core/ngx_inet.h | |
parent | 41e7bda773bd21e7a6991cea22d9931b9be45090 (diff) |
Core: introduced ngx_cidr_match() function.
Diffstat (limited to 'src/core/ngx_inet.h')
-rw-r--r-- | src/core/ngx_inet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ngx_inet.h b/src/core/ngx_inet.h index 97dc354f8..538771e11 100644 --- a/src/core/ngx_inet.h +++ b/src/core/ngx_inet.h @@ -113,6 +113,7 @@ size_t ngx_sock_ntop(struct sockaddr *sa, socklen_t socklen, u_char *text, size_t len, ngx_uint_t port); size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len); ngx_int_t ngx_ptocidr(ngx_str_t *text, ngx_cidr_t *cidr); +ngx_int_t ngx_cidr_match(struct sockaddr *sa, ngx_array_t *cidrs); ngx_int_t ngx_parse_addr(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text, size_t len); ngx_int_t ngx_parse_addr_port(ngx_pool_t *pool, ngx_addr_t *addr, |