14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/*
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * CDDL HEADER START
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * The contents of this file are subject to the terms of the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Common Development and Distribution License (the "License").
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * You may not use this file except in compliance with the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * or http://www.opensolaris.org/os/licensing.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * See the License for the specific language governing permissions
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * and limitations under the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * When distributing Covered Code, include this CDDL HEADER in each
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * If applicable, add the following below this CDDL HEADER, with the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * fields enclosed by brackets "[]" replaced with your own identifying
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * information: Portions Copyright [yyyy] [name of copyright owner]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * CDDL HEADER END
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/*
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Use is subject to license terms.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#pragma ident "%Z%%M% %I% %E% SMI"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#pragma D option quiet
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncstruct in6_addr *ip6a;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncstruct in6_addr *ip6b;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncstruct in6_addr *ip6c;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncstruct in6_addr *ip6d;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncstruct in6_addr *ip6e;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncstruct in6_addr *ip6f;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncstruct in6_addr *ip6g;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncBEGIN
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync{
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync this->buf6a = alloca(sizeof (struct in6_addr));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync this->buf6b = alloca(sizeof (struct in6_addr));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync this->buf6c = alloca(sizeof (struct in6_addr));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync this->buf6d = alloca(sizeof (struct in6_addr));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync this->buf6e = alloca(sizeof (struct in6_addr));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync this->buf6f = alloca(sizeof (struct in6_addr));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync this->buf6g = alloca(sizeof (struct in6_addr));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a = this->buf6a;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6b = this->buf6b;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6c = this->buf6c;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6d = this->buf6d;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6e = this->buf6e;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6f = this->buf6f;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6g = this->buf6g;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a->_S6_un._S6_u8[0] = 0xfe;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a->_S6_un._S6_u8[1] = 0x80;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a->_S6_un._S6_u8[8] = 0x02;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a->_S6_un._S6_u8[9] = 0x14;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a->_S6_un._S6_u8[10] = 0x4f;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a->_S6_un._S6_u8[11] = 0xff;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a->_S6_un._S6_u8[12] = 0xfe;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a->_S6_un._S6_u8[13] = 0x0b;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a->_S6_un._S6_u8[14] = 0x76;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6a->_S6_un._S6_u8[15] = 0xc8;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6b->_S6_un._S6_u8[0] = 0x10;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6b->_S6_un._S6_u8[1] = 0x80;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6b->_S6_un._S6_u8[10] = 0x08;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6b->_S6_un._S6_u8[11] = 0x08;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6b->_S6_un._S6_u8[13] = 0x20;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6b->_S6_un._S6_u8[13] = 0x0c;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6b->_S6_un._S6_u8[14] = 0x41;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6b->_S6_un._S6_u8[15] = 0x7a;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6c->_S6_un._S6_u8[15] = 0x01;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6e->_S6_un._S6_u8[12] = 0x7f;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6e->_S6_un._S6_u8[15] = 0x01;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6f->_S6_un._S6_u8[10] = 0xff;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6f->_S6_un._S6_u8[11] = 0xff;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6f->_S6_un._S6_u8[12] = 0x7f;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6f->_S6_un._S6_u8[15] = 0x01;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6g->_S6_un._S6_u8[10] = 0xff;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6g->_S6_un._S6_u8[11] = 0xfe;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6g->_S6_un._S6_u8[12] = 0x7f;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ip6g->_S6_un._S6_u8[15] = 0x01;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("%s\n", inet_ntoa6(ip6a));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("%s\n", inet_ntoa6(ip6b));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("%s\n", inet_ntoa6(ip6c));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("%s\n", inet_ntoa6(ip6d));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("%s\n", inet_ntoa6(ip6e));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("%s\n", inet_ntoa6(ip6f));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("%s\n", inet_ntoa6(ip6g));
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync exit(0);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync}