version 1.2, 2009/02/07 07:25:22 |
version 1.3, 2012/03/20 17:08:13 |
Line 49 __weak_alias(inet_net_ntop,_inet_net_nto |
|
Line 49 __weak_alias(inet_net_ntop,_inet_net_nto |
|
# define SPRINTF(x) sprintf x |
# define SPRINTF(x) sprintf x |
#endif |
#endif |
|
|
static char * inet_net_ntop_ipv4 __P((const u_char *src, int bits, |
static char * inet_net_ntop_ipv4(const u_char *src, int bits, |
char *dst, size_t size)); |
char *dst, size_t size); |
static char * inet_net_ntop_ipv6 __P((const u_char *src, int bits, |
static char * inet_net_ntop_ipv6(const u_char *src, int bits, |
char *dst, size_t size)); |
char *dst, size_t size); |
|
|
/* |
/* |
* char * |
* char * |
Line 65 static char * inet_net_ntop_ipv6 __P((co |
|
Line 65 static char * inet_net_ntop_ipv6 __P((co |
|
* Paul Vixie (ISC), July 1996 |
* Paul Vixie (ISC), July 1996 |
*/ |
*/ |
char * |
char * |
inet_net_ntop(af, src, bits, dst, size) |
inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size) |
int af; |
|
const void *src; |
|
int bits; |
|
char *dst; |
|
size_t size; |
|
{ |
{ |
switch (af) { |
switch (af) { |
case AF_INET: |
case AF_INET: |
Line 97 inet_net_ntop(af, src, bits, dst, size) |
|
Line 92 inet_net_ntop(af, src, bits, dst, size) |
|
* Paul Vixie (ISC), July 1996 |
* Paul Vixie (ISC), July 1996 |
*/ |
*/ |
static char * |
static char * |
inet_net_ntop_ipv4(src, bits, dst, size) |
inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) |
const u_char *src; |
|
int bits; |
|
char *dst; |
|
size_t size; |
|
{ |
{ |
char *odst = dst; |
char *odst = dst; |
char *t; |
char *t; |
Line 176 inet_net_ntop_ipv4(src, bits, dst, size) |
|
Line 167 inet_net_ntop_ipv4(src, bits, dst, size) |
|
*/ |
*/ |
|
|
static char * |
static char * |
inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) { |
inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) |
|
{ |
u_int m; |
u_int m; |
int b; |
int b; |
size_t p; |
size_t p; |