diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-05-25 19:28:46 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-05-25 19:28:46 +0400 |
commit | 822834e2274e6b2946ee758981ba0c261cedc69e (patch) | |
tree | e23bc338faf7188d8ec8fea941d812fa312af20f /src/core/ngx_inet.h | |
parent | 01b5eab38147e84a1cde453059279c5ad7ad2293 (diff) |
nginx-0.0.3-2004-05-25-19:28:46 import
Diffstat (limited to 'src/core/ngx_inet.h')
-rw-r--r-- | src/core/ngx_inet.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/ngx_inet.h b/src/core/ngx_inet.h index 074d43c94..dbdf6f0b3 100644 --- a/src/core/ngx_inet.h +++ b/src/core/ngx_inet.h @@ -2,9 +2,17 @@ #define _NGX_INET_H_INCLUDED_ +typedef struct { + in_addr_t addr; + in_addr_t mask; +} ngx_inet_cidr_t; + + size_t ngx_sock_ntop(int family, struct sockaddr *addr, u_char *text, size_t len); size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len); +ngx_int_t ngx_ptocidr(ngx_str_t *text, void *cidr); + #endif /* _NGX_INET_H_INCLUDED_ */ |