nginx/src/core/ngx_inet.h

25 lines
457 B
C
Raw Normal View History

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