1*10e6dadfSbrendan/* 2*10e6dadfSbrendan * CDDL HEADER START 3*10e6dadfSbrendan * 4*10e6dadfSbrendan * The contents of this file are subject to the terms of the 5*10e6dadfSbrendan * Common Development and Distribution License (the "License"). 6*10e6dadfSbrendan * You may not use this file except in compliance with the License. 7*10e6dadfSbrendan * 8*10e6dadfSbrendan * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*10e6dadfSbrendan * or http://www.opensolaris.org/os/licensing. 10*10e6dadfSbrendan * See the License for the specific language governing permissions 11*10e6dadfSbrendan * and limitations under the License. 12*10e6dadfSbrendan * 13*10e6dadfSbrendan * When distributing Covered Code, include this CDDL HEADER in each 14*10e6dadfSbrendan * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*10e6dadfSbrendan * If applicable, add the following below this CDDL HEADER, with the 16*10e6dadfSbrendan * fields enclosed by brackets "[]" replaced with your own identifying 17*10e6dadfSbrendan * information: Portions Copyright [yyyy] [name of copyright owner] 18*10e6dadfSbrendan * 19*10e6dadfSbrendan * CDDL HEADER END 20*10e6dadfSbrendan */ 21*10e6dadfSbrendan/* 22*10e6dadfSbrendan * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*10e6dadfSbrendan * Use is subject to license terms. 24*10e6dadfSbrendan */ 25*10e6dadfSbrendan 26*10e6dadfSbrendan#pragma ident "%Z%%M% %I% %E% SMI" 27*10e6dadfSbrendan 28*10e6dadfSbrendan/* 29*10e6dadfSbrendan * This file is a sed script which is first preprocessed by cpp or cc -E to 30*10e6dadfSbrendan * define a set of sed directives which replace #define tokens with their 31*10e6dadfSbrendan * values. After preprocessing, the sed script is run over net.d.in to 32*10e6dadfSbrendan * replace the #define tokens listed below to create the finished net.d. 33*10e6dadfSbrendan * Refer to the rules in libdtrace/Makefile.com for more information. 34*10e6dadfSbrendan */ 35*10e6dadfSbrendan 36*10e6dadfSbrendan#include <sys/socket.h> 37*10e6dadfSbrendan 38*10e6dadfSbrendan#define SED_REPLACE(x) s/#x/x/g 39*10e6dadfSbrendan 40*10e6dadfSbrendanSED_REPLACE(AF_INET) 41*10e6dadfSbrendanSED_REPLACE(AF_INET6) 42