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 D option quiet 28 29 struct in6_addr *ip6a; 30 struct in6_addr *ip6b; 31 struct in6_addr *ip6c; 32 struct in6_addr *ip6d; 33 struct in6_addr *ip6e; 34 struct in6_addr *ip6f; 35 struct in6_addr *ip6g; 36 37 BEGIN 38 { 39 this->buf6a = alloca(sizeof (struct in6_addr)); 40 this->buf6b = alloca(sizeof (struct in6_addr)); 41 this->buf6c = alloca(sizeof (struct in6_addr)); 42 this->buf6d = alloca(sizeof (struct in6_addr)); 43 this->buf6e = alloca(sizeof (struct in6_addr)); 44 this->buf6f = alloca(sizeof (struct in6_addr)); 45 this->buf6g = alloca(sizeof (struct in6_addr)); 46 ip6a = this->buf6a; 47 ip6b = this->buf6b; 48 ip6c = this->buf6c; 49 ip6d = this->buf6d; 50 ip6e = this->buf6e; 51 ip6f = this->buf6f; 52 ip6g = this->buf6g; 53 54 ip6a->_S6_un._S6_u8[0] = 0xfe; 55 ip6a->_S6_un._S6_u8[1] = 0x80; 56 ip6a->_S6_un._S6_u8[8] = 0x02; 57 ip6a->_S6_un._S6_u8[9] = 0x14; 58 ip6a->_S6_un._S6_u8[10] = 0x4f; 59 ip6a->_S6_un._S6_u8[11] = 0xff; 60 ip6a->_S6_un._S6_u8[12] = 0xfe; 61 ip6a->_S6_un._S6_u8[13] = 0x0b; 62 ip6a->_S6_un._S6_u8[14] = 0x76; 63 ip6a->_S6_un._S6_u8[15] = 0xc8; 64 ip6b->_S6_un._S6_u8[0] = 0x10; 65 ip6b->_S6_un._S6_u8[1] = 0x80; 66 ip6b->_S6_un._S6_u8[10] = 0x08; 67 ip6b->_S6_un._S6_u8[11] = 0x08; 68 ip6b->_S6_un._S6_u8[13] = 0x20; 69 ip6b->_S6_un._S6_u8[13] = 0x0c; 70 ip6b->_S6_un._S6_u8[14] = 0x41; 71 ip6b->_S6_un._S6_u8[15] = 0x7a; 72 ip6c->_S6_un._S6_u8[15] = 0x01; 73 ip6e->_S6_un._S6_u8[12] = 0x7f; 74 ip6e->_S6_un._S6_u8[15] = 0x01; 75 ip6f->_S6_un._S6_u8[10] = 0xff; 76 ip6f->_S6_un._S6_u8[11] = 0xff; 77 ip6f->_S6_un._S6_u8[12] = 0x7f; 78 ip6f->_S6_un._S6_u8[15] = 0x01; 79 ip6g->_S6_un._S6_u8[10] = 0xff; 80 ip6g->_S6_un._S6_u8[11] = 0xfe; 81 ip6g->_S6_un._S6_u8[12] = 0x7f; 82 ip6g->_S6_un._S6_u8[15] = 0x01; 83 84 printf("%s\n", inet_ntoa6(ip6a)); 85 printf("%s\n", inet_ntoa6(ip6b)); 86 printf("%s\n", inet_ntoa6(ip6c)); 87 printf("%s\n", inet_ntoa6(ip6d)); 88 printf("%s\n", inet_ntoa6(ip6e)); 89 printf("%s\n", inet_ntoa6(ip6f)); 90 printf("%s\n", inet_ntoa6(ip6g)); 91 92 exit(0); 93 } 94