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/* 224291Sbrendan * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 234291Sbrendan * Use is subject to license terms. 244291Sbrendan */ 254291Sbrendan 264291Sbrendan#pragma ident "%Z%%M% %I% %E% SMI" 274291Sbrendan 284291Sbrendan/* 294291Sbrendan * This file is a sed script which is first preprocessed by cpp or cc -E to 304291Sbrendan * define a set of sed directives which replace #define tokens with their 314291Sbrendan * values. After preprocessing, the sed script is run over ip.d.in to 324291Sbrendan * replace the #define tokens listed below to create the finished ip.d. 334291Sbrendan * Refer to the rules in libdtrace/Makefile.com for more information. 344291Sbrendan */ 354291Sbrendan 364291Sbrendan#include <sys/socket.h> 37*6878Sbrendan#include <netinet/in.h> 38*6878Sbrendan#include <inet/ip.h> 394291Sbrendan 404291Sbrendan#define SED_REPLACE(x) s/#x/x/g 414291Sbrendan 424291SbrendanSED_REPLACE(AF_INET) 434291SbrendanSED_REPLACE(AF_INET6) 44*6878Sbrendan 45*6878SbrendanSED_REPLACE(IPH_DF) 46*6878SbrendanSED_REPLACE(IPH_MF) 47*6878Sbrendan 48*6878SbrendanSED_REPLACE(IPPROTO_IP) 49*6878SbrendanSED_REPLACE(IPPROTO_HOPOPTS) 50*6878SbrendanSED_REPLACE(IPPROTO_ICMP) 51*6878SbrendanSED_REPLACE(IPPROTO_IGMP) 52*6878SbrendanSED_REPLACE(IPPROTO_GGP) 53*6878SbrendanSED_REPLACE(IPPROTO_ENCAP) 54*6878SbrendanSED_REPLACE(IPPROTO_TCP) 55*6878SbrendanSED_REPLACE(IPPROTO_EGP) 56*6878SbrendanSED_REPLACE(IPPROTO_PUP) 57*6878SbrendanSED_REPLACE(IPPROTO_UDP) 58*6878SbrendanSED_REPLACE(IPPROTO_IDP) 59*6878SbrendanSED_REPLACE(IPPROTO_IPV6) 60*6878SbrendanSED_REPLACE(IPPROTO_ROUTING) 61*6878SbrendanSED_REPLACE(IPPROTO_FRAGMENT) 62*6878SbrendanSED_REPLACE(IPPROTO_RSVP) 63*6878SbrendanSED_REPLACE(IPPROTO_ESP) 64*6878SbrendanSED_REPLACE(IPPROTO_AH) 65*6878SbrendanSED_REPLACE(IPPROTO_ICMPV6) 66*6878SbrendanSED_REPLACE(IPPROTO_NONE) 67*6878SbrendanSED_REPLACE(IPPROTO_DSTOPTS) 68*6878SbrendanSED_REPLACE(IPPROTO_HELLO) 69*6878SbrendanSED_REPLACE(IPPROTO_ND) 70*6878SbrendanSED_REPLACE(IPPROTO_EON) 71*6878SbrendanSED_REPLACE(IPPROTO_OSPF) 72*6878SbrendanSED_REPLACE(IPPROTO_PIM) 73*6878SbrendanSED_REPLACE(IPPROTO_SCTP) 74*6878SbrendanSED_REPLACE(IPPROTO_RAW) 75*6878SbrendanSED_REPLACE(IPPROTO_MAX) 76