Mercurial > hg > nginx-quic
comparison src/core/ngx_inet.h @ 340:0bf903191ceb
nginx-0.0.3-2004-05-25-19:28:46 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 25 May 2004 15:28:46 +0000 |
parents | 117ccc7c4055 |
children | da8c5707af39 |
comparison
equal
deleted
inserted
replaced
339:8c5b69141dfd | 340:0bf903191ceb |
---|---|
1 #ifndef _NGX_INET_H_INCLUDED_ | 1 #ifndef _NGX_INET_H_INCLUDED_ |
2 #define _NGX_INET_H_INCLUDED_ | 2 #define _NGX_INET_H_INCLUDED_ |
3 | |
4 | |
5 typedef struct { | |
6 in_addr_t addr; | |
7 in_addr_t mask; | |
8 } ngx_inet_cidr_t; | |
3 | 9 |
4 | 10 |
5 size_t ngx_sock_ntop(int family, struct sockaddr *addr, u_char *text, | 11 size_t ngx_sock_ntop(int family, struct sockaddr *addr, u_char *text, |
6 size_t len); | 12 size_t len); |
7 size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len); | 13 size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len); |
8 | 14 |
15 ngx_int_t ngx_ptocidr(ngx_str_t *text, void *cidr); | |
16 | |
9 | 17 |
10 #endif /* _NGX_INET_H_INCLUDED_ */ | 18 #endif /* _NGX_INET_H_INCLUDED_ */ |