NAME

  tst_inet6_rth_add_err - Upon an error the return value of the function is -1


PURPOSE

  To check that inet6_rth_add() should return -1 upon an error.


SYNOPSIS

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


TEST PROCEDURE

  1. Initializes the buffer with segments set to zero
  2. Add the IPv6 address the end of the Routing header
  3. Check A: the return value of the function is -1


NOTE

  None


REFERENCE

  RFC 3542
  7.3.  inet6_rth_add
      int inet6_rth_add(void *bp, const struct in6_addr *addr);
    This function adds the IPv6 address pointed to by addr to the end of
    the Routing header being constructed.
    If successful, the segleft member of the Routing Header is updated to
    account for the new address in the Routing header and the return
    value of the function is 0.  Upon an error the return value of the
    function is -1.