xref: /onnv-gate/usr/src/lib/libdtrace/common/ip.sed.in (revision 12507:501806a754d2)
14291Sbrendan/*
24291Sbrendan * CDDL HEADER START
34291Sbrendan *
44291Sbrendan * The contents of this file are subject to the terms of the
54291Sbrendan * Common Development and Distribution License (the "License").
64291Sbrendan * You may not use this file except in compliance with the License.
74291Sbrendan *
84291Sbrendan * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94291Sbrendan * or http://www.opensolaris.org/os/licensing.
104291Sbrendan * See the License for the specific language governing permissions
114291Sbrendan * and limitations under the License.
124291Sbrendan *
134291Sbrendan * When distributing Covered Code, include this CDDL HEADER in each
144291Sbrendan * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154291Sbrendan * If applicable, add the following below this CDDL HEADER, with the
164291Sbrendan * fields enclosed by brackets "[]" replaced with your own identifying
174291Sbrendan * information: Portions Copyright [yyyy] [name of copyright owner]
184291Sbrendan *
194291Sbrendan * CDDL HEADER END
204291Sbrendan */
214291Sbrendan/*
22*12507SAlan.Maguire@Sun.COM * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
234291Sbrendan */
244291Sbrendan
254291Sbrendan/*
264291Sbrendan * This file is a sed script which is first preprocessed by cpp or cc -E to
274291Sbrendan * define a set of sed directives which replace #define tokens with their
284291Sbrendan * values.  After preprocessing, the sed script is run over ip.d.in to
294291Sbrendan * replace the #define tokens listed below to create the finished ip.d.
304291Sbrendan * Refer to the rules in libdtrace/Makefile.com for more information.
314291Sbrendan */
324291Sbrendan
33*12507SAlan.Maguire@Sun.COM#include <sys/netstack.h>
344291Sbrendan#include <sys/socket.h>
356878Sbrendan#include <netinet/in.h>
366878Sbrendan#include <inet/ip.h>
37*12507SAlan.Maguire@Sun.COM#include <inet/tcp.h>
384291Sbrendan
394291Sbrendan#define	SED_REPLACE(x)	s/#x/x/g
404291Sbrendan
414291SbrendanSED_REPLACE(AF_INET)
424291SbrendanSED_REPLACE(AF_INET6)
436878Sbrendan
446878SbrendanSED_REPLACE(IPH_DF)
456878SbrendanSED_REPLACE(IPH_MF)
466878Sbrendan
476878SbrendanSED_REPLACE(IPPROTO_IP)
486878SbrendanSED_REPLACE(IPPROTO_HOPOPTS)
496878SbrendanSED_REPLACE(IPPROTO_ICMP)
506878SbrendanSED_REPLACE(IPPROTO_IGMP)
516878SbrendanSED_REPLACE(IPPROTO_GGP)
526878SbrendanSED_REPLACE(IPPROTO_ENCAP)
536878SbrendanSED_REPLACE(IPPROTO_TCP)
546878SbrendanSED_REPLACE(IPPROTO_EGP)
556878SbrendanSED_REPLACE(IPPROTO_PUP)
566878SbrendanSED_REPLACE(IPPROTO_UDP)
576878SbrendanSED_REPLACE(IPPROTO_IDP)
586878SbrendanSED_REPLACE(IPPROTO_IPV6)
596878SbrendanSED_REPLACE(IPPROTO_ROUTING)
606878SbrendanSED_REPLACE(IPPROTO_FRAGMENT)
616878SbrendanSED_REPLACE(IPPROTO_RSVP)
626878SbrendanSED_REPLACE(IPPROTO_ESP)
636878SbrendanSED_REPLACE(IPPROTO_AH)
646878SbrendanSED_REPLACE(IPPROTO_ICMPV6)
656878SbrendanSED_REPLACE(IPPROTO_NONE)
666878SbrendanSED_REPLACE(IPPROTO_DSTOPTS)
676878SbrendanSED_REPLACE(IPPROTO_HELLO)
686878SbrendanSED_REPLACE(IPPROTO_ND)
696878SbrendanSED_REPLACE(IPPROTO_EON)
706878SbrendanSED_REPLACE(IPPROTO_OSPF)
716878SbrendanSED_REPLACE(IPPROTO_PIM)
726878SbrendanSED_REPLACE(IPPROTO_SCTP)
736878SbrendanSED_REPLACE(IPPROTO_RAW)
746878SbrendanSED_REPLACE(IPPROTO_MAX)
75*12507SAlan.Maguire@Sun.COM
76*12507SAlan.Maguire@Sun.COMSED_REPLACE(TCP_MIN_HEADER_LENGTH)
77*12507SAlan.Maguire@Sun.COM
78*12507SAlan.Maguire@Sun.COMSED_REPLACE(GLOBAL_NETSTACKID)
79