xref: /titanic_50/usr/src/lib/libdtrace/common/ip.sed.in (revision 10e6dadfe63181edabc58c8f42e3c56a1cd9ec95)
14edabff4Sbrendan/*
24edabff4Sbrendan * CDDL HEADER START
34edabff4Sbrendan *
44edabff4Sbrendan * The contents of this file are subject to the terms of the
54edabff4Sbrendan * Common Development and Distribution License (the "License").
64edabff4Sbrendan * You may not use this file except in compliance with the License.
74edabff4Sbrendan *
84edabff4Sbrendan * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94edabff4Sbrendan * or http://www.opensolaris.org/os/licensing.
104edabff4Sbrendan * See the License for the specific language governing permissions
114edabff4Sbrendan * and limitations under the License.
124edabff4Sbrendan *
134edabff4Sbrendan * When distributing Covered Code, include this CDDL HEADER in each
144edabff4Sbrendan * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154edabff4Sbrendan * If applicable, add the following below this CDDL HEADER, with the
164edabff4Sbrendan * fields enclosed by brackets "[]" replaced with your own identifying
174edabff4Sbrendan * information: Portions Copyright [yyyy] [name of copyright owner]
184edabff4Sbrendan *
194edabff4Sbrendan * CDDL HEADER END
204edabff4Sbrendan */
214edabff4Sbrendan/*
224edabff4Sbrendan * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
234edabff4Sbrendan * Use is subject to license terms.
244edabff4Sbrendan */
254edabff4Sbrendan
264edabff4Sbrendan#pragma ident	"%Z%%M%	%I%	%E% SMI"
274edabff4Sbrendan
284edabff4Sbrendan/*
294edabff4Sbrendan * This file is a sed script which is first preprocessed by cpp or cc -E to
304edabff4Sbrendan * define a set of sed directives which replace #define tokens with their
314edabff4Sbrendan * values.  After preprocessing, the sed script is run over ip.d.in to
324edabff4Sbrendan * replace the #define tokens listed below to create the finished ip.d.
334edabff4Sbrendan * Refer to the rules in libdtrace/Makefile.com for more information.
344edabff4Sbrendan */
354edabff4Sbrendan
364edabff4Sbrendan#include <sys/socket.h>
37*10e6dadfSbrendan#include <netinet/in.h>
38*10e6dadfSbrendan#include <inet/ip.h>
394edabff4Sbrendan
404edabff4Sbrendan#define	SED_REPLACE(x)	s/#x/x/g
414edabff4Sbrendan
424edabff4SbrendanSED_REPLACE(AF_INET)
434edabff4SbrendanSED_REPLACE(AF_INET6)
44*10e6dadfSbrendan
45*10e6dadfSbrendanSED_REPLACE(IPH_DF)
46*10e6dadfSbrendanSED_REPLACE(IPH_MF)
47*10e6dadfSbrendan
48*10e6dadfSbrendanSED_REPLACE(IPPROTO_IP)
49*10e6dadfSbrendanSED_REPLACE(IPPROTO_HOPOPTS)
50*10e6dadfSbrendanSED_REPLACE(IPPROTO_ICMP)
51*10e6dadfSbrendanSED_REPLACE(IPPROTO_IGMP)
52*10e6dadfSbrendanSED_REPLACE(IPPROTO_GGP)
53*10e6dadfSbrendanSED_REPLACE(IPPROTO_ENCAP)
54*10e6dadfSbrendanSED_REPLACE(IPPROTO_TCP)
55*10e6dadfSbrendanSED_REPLACE(IPPROTO_EGP)
56*10e6dadfSbrendanSED_REPLACE(IPPROTO_PUP)
57*10e6dadfSbrendanSED_REPLACE(IPPROTO_UDP)
58*10e6dadfSbrendanSED_REPLACE(IPPROTO_IDP)
59*10e6dadfSbrendanSED_REPLACE(IPPROTO_IPV6)
60*10e6dadfSbrendanSED_REPLACE(IPPROTO_ROUTING)
61*10e6dadfSbrendanSED_REPLACE(IPPROTO_FRAGMENT)
62*10e6dadfSbrendanSED_REPLACE(IPPROTO_RSVP)
63*10e6dadfSbrendanSED_REPLACE(IPPROTO_ESP)
64*10e6dadfSbrendanSED_REPLACE(IPPROTO_AH)
65*10e6dadfSbrendanSED_REPLACE(IPPROTO_ICMPV6)
66*10e6dadfSbrendanSED_REPLACE(IPPROTO_NONE)
67*10e6dadfSbrendanSED_REPLACE(IPPROTO_DSTOPTS)
68*10e6dadfSbrendanSED_REPLACE(IPPROTO_HELLO)
69*10e6dadfSbrendanSED_REPLACE(IPPROTO_ND)
70*10e6dadfSbrendanSED_REPLACE(IPPROTO_EON)
71*10e6dadfSbrendanSED_REPLACE(IPPROTO_OSPF)
72*10e6dadfSbrendanSED_REPLACE(IPPROTO_PIM)
73*10e6dadfSbrendanSED_REPLACE(IPPROTO_SCTP)
74*10e6dadfSbrendanSED_REPLACE(IPPROTO_RAW)
75*10e6dadfSbrendanSED_REPLACE(IPPROTO_MAX)
76