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/* 22*9cd928feSAlan Maguire * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 234edabff4Sbrendan */ 244edabff4Sbrendan 254edabff4Sbrendan/* 264edabff4Sbrendan * This file is a sed script which is first preprocessed by cpp or cc -E to 274edabff4Sbrendan * define a set of sed directives which replace #define tokens with their 284edabff4Sbrendan * values. After preprocessing, the sed script is run over ip.d.in to 294edabff4Sbrendan * replace the #define tokens listed below to create the finished ip.d. 304edabff4Sbrendan * Refer to the rules in libdtrace/Makefile.com for more information. 314edabff4Sbrendan */ 324edabff4Sbrendan 33*9cd928feSAlan Maguire#include <sys/netstack.h> 344edabff4Sbrendan#include <sys/socket.h> 3510e6dadfSbrendan#include <netinet/in.h> 3610e6dadfSbrendan#include <inet/ip.h> 37*9cd928feSAlan Maguire#include <inet/tcp.h> 384edabff4Sbrendan 394edabff4Sbrendan#define SED_REPLACE(x) s/#x/x/g 404edabff4Sbrendan 414edabff4SbrendanSED_REPLACE(AF_INET) 424edabff4SbrendanSED_REPLACE(AF_INET6) 4310e6dadfSbrendan 4410e6dadfSbrendanSED_REPLACE(IPH_DF) 4510e6dadfSbrendanSED_REPLACE(IPH_MF) 4610e6dadfSbrendan 4710e6dadfSbrendanSED_REPLACE(IPPROTO_IP) 4810e6dadfSbrendanSED_REPLACE(IPPROTO_HOPOPTS) 4910e6dadfSbrendanSED_REPLACE(IPPROTO_ICMP) 5010e6dadfSbrendanSED_REPLACE(IPPROTO_IGMP) 5110e6dadfSbrendanSED_REPLACE(IPPROTO_GGP) 5210e6dadfSbrendanSED_REPLACE(IPPROTO_ENCAP) 5310e6dadfSbrendanSED_REPLACE(IPPROTO_TCP) 5410e6dadfSbrendanSED_REPLACE(IPPROTO_EGP) 5510e6dadfSbrendanSED_REPLACE(IPPROTO_PUP) 5610e6dadfSbrendanSED_REPLACE(IPPROTO_UDP) 5710e6dadfSbrendanSED_REPLACE(IPPROTO_IDP) 5810e6dadfSbrendanSED_REPLACE(IPPROTO_IPV6) 5910e6dadfSbrendanSED_REPLACE(IPPROTO_ROUTING) 6010e6dadfSbrendanSED_REPLACE(IPPROTO_FRAGMENT) 6110e6dadfSbrendanSED_REPLACE(IPPROTO_RSVP) 6210e6dadfSbrendanSED_REPLACE(IPPROTO_ESP) 6310e6dadfSbrendanSED_REPLACE(IPPROTO_AH) 6410e6dadfSbrendanSED_REPLACE(IPPROTO_ICMPV6) 6510e6dadfSbrendanSED_REPLACE(IPPROTO_NONE) 6610e6dadfSbrendanSED_REPLACE(IPPROTO_DSTOPTS) 6710e6dadfSbrendanSED_REPLACE(IPPROTO_HELLO) 6810e6dadfSbrendanSED_REPLACE(IPPROTO_ND) 6910e6dadfSbrendanSED_REPLACE(IPPROTO_EON) 7010e6dadfSbrendanSED_REPLACE(IPPROTO_OSPF) 7110e6dadfSbrendanSED_REPLACE(IPPROTO_PIM) 7210e6dadfSbrendanSED_REPLACE(IPPROTO_SCTP) 7310e6dadfSbrendanSED_REPLACE(IPPROTO_RAW) 7410e6dadfSbrendanSED_REPLACE(IPPROTO_MAX) 75*9cd928feSAlan Maguire 76*9cd928feSAlan MaguireSED_REPLACE(TCP_MIN_HEADER_LENGTH) 77*9cd928feSAlan Maguire 78*9cd928feSAlan MaguireSED_REPLACE(GLOBAL_NETSTACKID) 79