2004-09-28 04:34:51 -04:00
|
|
|
|
|
|
|
/*
|
2004-09-29 12:00:49 -04:00
|
|
|
* Copyright (C) Igor Sysoev
|
2004-09-28 04:34:51 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2002-12-15 03:25:09 -03:00
|
|
|
#ifndef _NGX_INET_H_INCLUDED_
|
|
|
|
#define _NGX_INET_H_INCLUDED_
|
|
|
|
|
|
|
|
|
2004-05-25 11:28:46 -04:00
|
|
|
typedef struct {
|
|
|
|
in_addr_t addr;
|
|
|
|
in_addr_t mask;
|
|
|
|
} ngx_inet_cidr_t;
|
|
|
|
|
|
|
|
|
2004-03-16 03:10:12 -04:00
|
|
|
size_t ngx_sock_ntop(int family, struct sockaddr *addr, u_char *text,
|
|
|
|
size_t len);
|
2004-03-16 09:35:20 -04:00
|
|
|
size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len);
|
2002-12-15 03:25:09 -03:00
|
|
|
|
2004-05-25 11:28:46 -04:00
|
|
|
ngx_int_t ngx_ptocidr(ngx_str_t *text, void *cidr);
|
|
|
|
|
2002-12-15 03:25:09 -03:00
|
|
|
|
|
|
|
#endif /* _NGX_INET_H_INCLUDED_ */
|