12be1a816SJohn Birrell /*
22be1a816SJohn Birrell  * CDDL HEADER START
32be1a816SJohn Birrell  *
42be1a816SJohn Birrell  * The contents of this file are subject to the terms of the
52be1a816SJohn Birrell  * Common Development and Distribution License (the "License").
62be1a816SJohn Birrell  * You may not use this file except in compliance with the License.
72be1a816SJohn Birrell  *
82be1a816SJohn Birrell  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92be1a816SJohn Birrell  * or http://www.opensolaris.org/os/licensing.
102be1a816SJohn Birrell  * See the License for the specific language governing permissions
112be1a816SJohn Birrell  * and limitations under the License.
122be1a816SJohn Birrell  *
132be1a816SJohn Birrell  * When distributing Covered Code, include this CDDL HEADER in each
142be1a816SJohn Birrell  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152be1a816SJohn Birrell  * If applicable, add the following below this CDDL HEADER, with the
162be1a816SJohn Birrell  * fields enclosed by brackets "[]" replaced with your own identifying
172be1a816SJohn Birrell  * information: Portions Copyright [yyyy] [name of copyright owner]
182be1a816SJohn Birrell  *
192be1a816SJohn Birrell  * CDDL HEADER END
202be1a816SJohn Birrell  */
212be1a816SJohn Birrell 
222be1a816SJohn Birrell /*
232be1a816SJohn Birrell  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
242be1a816SJohn Birrell  * Use is subject to license terms.
252be1a816SJohn Birrell  */
262be1a816SJohn Birrell 
272be1a816SJohn Birrell #pragma ident	"%Z%%M%	%I%	%E% SMI"
282be1a816SJohn Birrell 
292be1a816SJohn Birrell #pragma D option quiet
302be1a816SJohn Birrell 
31f8ac9d32SJohn Birrell in_addr_t *ip4a;
32f8ac9d32SJohn Birrell in_addr_t *ip4b;
33f8ac9d32SJohn Birrell in_addr_t *ip4c;
34f8ac9d32SJohn Birrell in_addr_t *ip4d;
352be1a816SJohn Birrell 
362be1a816SJohn Birrell BEGIN
372be1a816SJohn Birrell {
38f8ac9d32SJohn Birrell 	this->buf4a = alloca(sizeof (in_addr_t));
39f8ac9d32SJohn Birrell 	this->buf4b = alloca(sizeof (in_addr_t));
40f8ac9d32SJohn Birrell 	this->buf4c = alloca(sizeof (in_addr_t));
41f8ac9d32SJohn Birrell 	this->buf4d = alloca(sizeof (in_addr_t));
422be1a816SJohn Birrell 	ip4a = this->buf4a;
432be1a816SJohn Birrell 	ip4b = this->buf4b;
442be1a816SJohn Birrell 	ip4c = this->buf4c;
452be1a816SJohn Birrell 	ip4d = this->buf4d;
462be1a816SJohn Birrell 
472be1a816SJohn Birrell 	*ip4a = htonl(0xc0a80117);
482be1a816SJohn Birrell 	*ip4b = htonl(0x7f000001);
492be1a816SJohn Birrell 	*ip4c = htonl(0xffffffff);
502be1a816SJohn Birrell 	*ip4d = htonl(0x00000000);
512be1a816SJohn Birrell 
522be1a816SJohn Birrell 	printf("%s\n", inet_ntoa(ip4a));
532be1a816SJohn Birrell 	printf("%s\n", inet_ntoa(ip4b));
542be1a816SJohn Birrell 	printf("%s\n", inet_ntoa(ip4c));
552be1a816SJohn Birrell 	printf("%s\n", inet_ntoa(ip4d));
562be1a816SJohn Birrell 
572be1a816SJohn Birrell 	exit(0);
582be1a816SJohn Birrell }
59