ucspi-ssl  0.99e
TLS encryption for IPv6 communication
Functions
ip6_expandaddr.c File Reference
#include "byte.h"
#include "stralloc.h"
#include "str.h"
#include "ip6.h"
#include "hexconversion.h"
Include dependency graph for ip6_expandaddr.c:

Go to the source code of this file.

Functions

unsigned int ip6_expandaddr (char *src, stralloc *destination)
 

Function Documentation

◆ ip6_expandaddr()

unsigned int ip6_expandaddr ( char *  src,
stralloc *  destination 
)

This function expands any valid IPv6 address into its full format of 16 bytes. It returns the number of processed tokens on success.

Parameters
srcSource IPv6 address.
destinationExpanded IPv6 address.
Returns
-1: No memory could allocated, 0:failure, 1: success

Definition at line 15 of file ip6_expandaddr.c.

Here is the call graph for this function: