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