NAME

  tst_freeaddrinfo - Frees one or more addrinfo structures returned by getaddrinfo()


PURPOSE

  To check that freeaddrinfo() can frees one or more addrinfo structures
  returned by getaddrinfo().


SYNOPSIS

  ./tst_freeaddrinfo [-tooloption ...]
    -tooloption : v6api tool option


TEST PROCEDURE

  1. Translates the name of a service location and a service name and returns
     a set of socket addresses
  2. Free addrinfo structures returned by getaddrinfo()


NOTE

  None


REFERENCE

  RFC 3493
  6.1 Protocol-Independent Nodename and Service Name Translation
   The freeaddrinfo() function frees one or more addrinfo structures
   returned by getaddrinfo(), along with any additional storage
   associated with those structures (for example, storage pointed to by
   the ai_canonname and ai_addr fields; an application must not
   reference this storage after the associated addrinfo structure has
   been freed).  If the ai_next field of the structure is not null, the
   entire list of structures is freed.  The freeaddrinfo() function must
   support the freeing of arbitrary sublists of an addrinfo list
   originally returned by getaddrinfo().