Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

inet_pton.c File Reference

Go to the source code of this file.

Functions

int inet_pton4 (const char *src, unsigned char *dst)
int inet_pton6 (const char *src, unsigned char *dst)
int inet_pton (int af, const char *src, void *dst)
int inet_pton4 (src, dst) const char *src

Variables

unsigned char * dst


Function Documentation

int inet_pton4 const char *    src,
unsigned char *    dst
[static]
 

int inet_pton6 const char *    src,
unsigned char *    dst
[static]
 

Referenced by inet_pton().

int inet_pton int    af,
const char *    src,
void *    dst
 

Definition at line 44 of file inet_pton.c.

References af, dst, inet_pton4(), and inet_pton6().

00047 {
00048         switch (af) {
00049         case AF_INET:
00050                 return (inet_pton4(src, dst));
00051 #ifdef INET6
00052         case AF_INET6:
00053                 return (inet_pton6(src, dst));
00054 #endif
00055         default:
00056                 errno = EAFNOSUPPORT;
00057                 return (-1);
00058         }
00059         /* NOTREACHED */
00060 }

int inet_pton4 src   ,
dst   
const [static]
 

Referenced by inet_pton().


Variable Documentation

unsigned char * dst
 

Definition at line 129 of file inet_pton.c.

Referenced by inet_ntop(), inet_ntop4(), inet_ntop6(), inet_pton(), and robust_move().


Generated on Tue Apr 16 12:37:38 2002 for rsync by doxygen1.2.15