/*
* Copyright (c) 2013 Proofpoint, Inc. and its suppliers.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*
*/
SM_RCSID("@(#)$Id: inet6_ntop.c,v 1.2 2013-11-22 20:51:43 ca Exp $")
#if NETINET6
/*
** SM_INET6_NTOP -- convert IPv6 address to ASCII string (uncompressed)
**
** Parameters:
** ipv6 -- IPv6 address
** dst -- ASCII representation of address (output)
** len -- length of dst
**
** Returns:
** error: NULL
*/
char *
const void *ipv6;
char *dst;
{
int r;
"%x:%x:%x:%x:%x:%x:%x:%x"
);
if (r > 0)
return dst;
return NULL;
}
#endif /* NETINET6 */