nginx-quic/src/core/ngx_inet.h
2004-05-25 15:28:46 +00:00

18 lines
408 B
C

#ifndef _NGX_INET_H_INCLUDED_
#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_ */