1*4291Sbrendan /* 2*4291Sbrendan * CDDL HEADER START 3*4291Sbrendan * 4*4291Sbrendan * The contents of this file are subject to the terms of the 5*4291Sbrendan * Common Development and Distribution License (the "License"). 6*4291Sbrendan * You may not use this file except in compliance with the License. 7*4291Sbrendan * 8*4291Sbrendan * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*4291Sbrendan * or http://www.opensolaris.org/os/licensing. 10*4291Sbrendan * See the License for the specific language governing permissions 11*4291Sbrendan * and limitations under the License. 12*4291Sbrendan * 13*4291Sbrendan * When distributing Covered Code, include this CDDL HEADER in each 14*4291Sbrendan * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*4291Sbrendan * If applicable, add the following below this CDDL HEADER, with the 16*4291Sbrendan * fields enclosed by brackets "[]" replaced with your own identifying 17*4291Sbrendan * information: Portions Copyright [yyyy] [name of copyright owner] 18*4291Sbrendan * 19*4291Sbrendan * CDDL HEADER END 20*4291Sbrendan */ 21*4291Sbrendan 22*4291Sbrendan /* 23*4291Sbrendan * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*4291Sbrendan * Use is subject to license terms. 25*4291Sbrendan */ 26*4291Sbrendan 27*4291Sbrendan #pragma ident "%Z%%M% %I% %E% SMI" 28*4291Sbrendan 29*4291Sbrendan #pragma D option quiet 30*4291Sbrendan 31*4291Sbrendan ipaddr_t *ip4a; 32*4291Sbrendan 33*4291Sbrendan BEGIN 34*4291Sbrendan { 35*4291Sbrendan ip4a = 0; 36*4291Sbrendan 37*4291Sbrendan printf("%s\n", inet_ntop(AF_INET, ip4a)); 38*4291Sbrendan 39*4291Sbrendan exit(0); 40*4291Sbrendan } 41*4291Sbrendan 42*4291Sbrendan ERROR 43*4291Sbrendan { 44*4291Sbrendan exit(1); 45*4291Sbrendan } 46