Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

inet_pton.c File Reference


Defines

#define IN6ADDRSZ   16
#define INADDRSZ   4
#define INT16SZ   2

Functions

int switch_inet_pton (int af, const char *src, void *dst)


Define Documentation

#define IN6ADDRSZ   16
 

#define INADDRSZ   4
 

#define INT16SZ   2
 


Function Documentation

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

00071 {
00072   switch (af) {
00073   case AF_INET:
00074     return (inet_pton4(src, (unsigned char *)dst));
00075 #ifdef ENABLE_IPV6
00076 #ifndef AF_INET6
00077 #define AF_INET6        (AF_MAX+1)        /* just to let this compile */
00078 #endif
00079   case AF_INET6:
00080     return (inet_pton6(src, (unsigned char *)dst));
00081 #endif
00082   default:
00083     errno = EAFNOSUPPORT;
00084     return (-1);
00085   }
00086   /* NOTREACHED */
00087 }


Generated on Mon May 26 22:06:51 2008 for FreeSWITCH by  doxygen 1.3.9.1