dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / dtrace / test / tst / common / funcs / tst.inet_ntoa6.d
blob9a00eb782afa77d5435c0e2d6818a8317335a971
1 /*
2 * CDDL HEADER START
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.
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.
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]
19 * CDDL HEADER END
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #pragma ident "%Z%%M% %I% %E% SMI"
29 #pragma D option quiet
31 struct in6_addr *ip6a;
32 struct in6_addr *ip6b;
33 struct in6_addr *ip6c;
34 struct in6_addr *ip6d;
35 struct in6_addr *ip6e;
36 struct in6_addr *ip6f;
37 struct in6_addr *ip6g;
39 BEGIN
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;
56 ip6a->_S6_un._S6_u8[0] = 0xfe;
57 ip6a->_S6_un._S6_u8[1] = 0x80;
58 ip6a->_S6_un._S6_u8[8] = 0x02;
59 ip6a->_S6_un._S6_u8[9] = 0x14;
60 ip6a->_S6_un._S6_u8[10] = 0x4f;
61 ip6a->_S6_un._S6_u8[11] = 0xff;
62 ip6a->_S6_un._S6_u8[12] = 0xfe;
63 ip6a->_S6_un._S6_u8[13] = 0x0b;
64 ip6a->_S6_un._S6_u8[14] = 0x76;
65 ip6a->_S6_un._S6_u8[15] = 0xc8;
66 ip6b->_S6_un._S6_u8[0] = 0x10;
67 ip6b->_S6_un._S6_u8[1] = 0x80;
68 ip6b->_S6_un._S6_u8[10] = 0x08;
69 ip6b->_S6_un._S6_u8[11] = 0x08;
70 ip6b->_S6_un._S6_u8[13] = 0x20;
71 ip6b->_S6_un._S6_u8[13] = 0x0c;
72 ip6b->_S6_un._S6_u8[14] = 0x41;
73 ip6b->_S6_un._S6_u8[15] = 0x7a;
74 ip6c->_S6_un._S6_u8[15] = 0x01;
75 ip6e->_S6_un._S6_u8[12] = 0x7f;
76 ip6e->_S6_un._S6_u8[15] = 0x01;
77 ip6f->_S6_un._S6_u8[10] = 0xff;
78 ip6f->_S6_un._S6_u8[11] = 0xff;
79 ip6f->_S6_un._S6_u8[12] = 0x7f;
80 ip6f->_S6_un._S6_u8[15] = 0x01;
81 ip6g->_S6_un._S6_u8[10] = 0xff;
82 ip6g->_S6_un._S6_u8[11] = 0xfe;
83 ip6g->_S6_un._S6_u8[12] = 0x7f;
84 ip6g->_S6_un._S6_u8[15] = 0x01;
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));
94 exit(0);