1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24 * Use is subject to license terms.
25 */
26
27#pragma ident	"%Z%%M%	%I%	%E% SMI"
28
29#pragma D option quiet
30
31struct in6_addr *ip6a;
32struct in6_addr *ip6b;
33struct in6_addr *ip6c;
34struct in6_addr *ip6d;
35struct in6_addr *ip6e;
36struct in6_addr *ip6f;
37struct in6_addr *ip6g;
38
39BEGIN
40{
41	this->buf6a = alloca(sizeof (struct in6_addr));
42	this->buf6b = alloca(sizeof (struct in6_addr));
43	this->buf6c = alloca(sizeof (struct in6_addr));
44	this->buf6d = alloca(sizeof (struct in6_addr));
45	this->buf6e = alloca(sizeof (struct in6_addr));
46	this->buf6f = alloca(sizeof (struct in6_addr));
47	this->buf6g = alloca(sizeof (struct in6_addr));
48	ip6a = this->buf6a;
49	ip6b = this->buf6b;
50	ip6c = this->buf6c;
51	ip6d = this->buf6d;
52	ip6e = this->buf6e;
53	ip6f = this->buf6f;
54	ip6g = this->buf6g;
55
56	ip6a->__u6_addr.__u6_addr8[0] = 0xfe;
57	ip6a->__u6_addr.__u6_addr8[1] = 0x80;
58	ip6a->__u6_addr.__u6_addr8[8] = 0x02;
59	ip6a->__u6_addr.__u6_addr8[9] = 0x14;
60	ip6a->__u6_addr.__u6_addr8[10] = 0x4f;
61	ip6a->__u6_addr.__u6_addr8[11] = 0xff;
62	ip6a->__u6_addr.__u6_addr8[12] = 0xfe;
63	ip6a->__u6_addr.__u6_addr8[13] = 0x0b;
64	ip6a->__u6_addr.__u6_addr8[14] = 0x76;
65	ip6a->__u6_addr.__u6_addr8[15] = 0xc8;
66	ip6b->__u6_addr.__u6_addr8[0] = 0x10;
67	ip6b->__u6_addr.__u6_addr8[1] = 0x80;
68	ip6b->__u6_addr.__u6_addr8[10] = 0x08;
69	ip6b->__u6_addr.__u6_addr8[11] = 0x08;
70	ip6b->__u6_addr.__u6_addr8[13] = 0x20;
71	ip6b->__u6_addr.__u6_addr8[13] = 0x0c;
72	ip6b->__u6_addr.__u6_addr8[14] = 0x41;
73	ip6b->__u6_addr.__u6_addr8[15] = 0x7a;
74	ip6c->__u6_addr.__u6_addr8[15] = 0x01;
75	ip6e->__u6_addr.__u6_addr8[12] = 0x7f;
76	ip6e->__u6_addr.__u6_addr8[15] = 0x01;
77	ip6f->__u6_addr.__u6_addr8[10] = 0xff;
78	ip6f->__u6_addr.__u6_addr8[11] = 0xff;
79	ip6f->__u6_addr.__u6_addr8[12] = 0x7f;
80	ip6f->__u6_addr.__u6_addr8[15] = 0x01;
81	ip6g->__u6_addr.__u6_addr8[10] = 0xff;
82	ip6g->__u6_addr.__u6_addr8[11] = 0xfe;
83	ip6g->__u6_addr.__u6_addr8[12] = 0x7f;
84	ip6g->__u6_addr.__u6_addr8[15] = 0x01;
85
86	printf("%s\n", inet_ntoa6(ip6a));
87	printf("%s\n", inet_ntoa6(ip6b));
88	printf("%s\n", inet_ntoa6(ip6c));
89	printf("%s\n", inet_ntoa6(ip6d));
90	printf("%s\n", inet_ntoa6(ip6e));
91	printf("%s\n", inet_ntoa6(ip6f));
92	printf("%s\n", inet_ntoa6(ip6g));
93
94	exit(0);
95}
96