#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
#
#
# Copyright (c) 2014, Joyent, Inc.
#
ai_stub="teststub$$"
ai_vnic="testvnic$$"
function fatal
{
typeset msg="$*"
exit 1
}
function setup
{
}
function cleanup
{
}
function runtest
{
}
function epass
{
}
function efail
{
}
#
# Run through all IPv6 prefixes for validity with a token prefix
#
function allv6
{
typeset i;
for ((i = 1; i <= 128; i++)); do
epass "8000::/$i"
done
}
#
# Run through all of the v6 prefixes except /128 and ensure that they fail for
# a given IPv6 address because the other bits are set.
#
function v6specific
{
typeset i;
for ((i = 0; i < 128; i++)); do
done
}
# Basic IPv4 single and multiple IPs
# Basic IPv4 prefixes
# Basic IPv6 Addresss
efail ::
epass ::1
# IPv6 Prefixes
efail ::/128