Print this page
dccp: sock upcalls
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libdtrace/common/ip.sed.in
+++ new/usr/src/lib/libdtrace/common/ip.sed.in
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 */
24 24
25 25 /*
26 26 * This file is a sed script which is first preprocessed by cpp or cc -E to
27 27 * define a set of sed directives which replace #define tokens with their
28 28 * values. After preprocessing, the sed script is run over ip.d.in to
29 29 * replace the #define tokens listed below to create the finished ip.d.
30 30 * Refer to the rules in libdtrace/Makefile.com for more information.
31 31 */
32 32
33 33 #include <sys/netstack.h>
34 34 #include <sys/socket.h>
35 35 #include <netinet/in.h>
36 36 #include <inet/ip.h>
37 37 #include <inet/tcp.h>
38 38
39 39 #define SED_REPLACE(x) s/#x/x/g
40 40
41 41 SED_REPLACE(AF_INET)
42 42 SED_REPLACE(AF_INET6)
43 43
44 44 SED_REPLACE(IPH_DF)
45 45 SED_REPLACE(IPH_MF)
46 46
47 47 SED_REPLACE(IPPROTO_IP)
48 48 SED_REPLACE(IPPROTO_HOPOPTS)
49 49 SED_REPLACE(IPPROTO_ICMP)
50 50 SED_REPLACE(IPPROTO_IGMP)
51 51 SED_REPLACE(IPPROTO_GGP)
52 52 SED_REPLACE(IPPROTO_ENCAP)
53 53 SED_REPLACE(IPPROTO_TCP)
54 54 SED_REPLACE(IPPROTO_EGP)
55 55 SED_REPLACE(IPPROTO_PUP)
56 56 SED_REPLACE(IPPROTO_UDP)
57 57 SED_REPLACE(IPPROTO_IDP)
58 58 SED_REPLACE(IPPROTO_IPV6)
59 59 SED_REPLACE(IPPROTO_ROUTING)
60 60 SED_REPLACE(IPPROTO_FRAGMENT)
61 61 SED_REPLACE(IPPROTO_RSVP)
62 62 SED_REPLACE(IPPROTO_ESP)
63 63 SED_REPLACE(IPPROTO_AH)
↓ open down ↓ |
63 lines elided |
↑ open up ↑ |
64 64 SED_REPLACE(IPPROTO_ICMPV6)
65 65 SED_REPLACE(IPPROTO_NONE)
66 66 SED_REPLACE(IPPROTO_DSTOPTS)
67 67 SED_REPLACE(IPPROTO_HELLO)
68 68 SED_REPLACE(IPPROTO_ND)
69 69 SED_REPLACE(IPPROTO_EON)
70 70 SED_REPLACE(IPPROTO_OSPF)
71 71 SED_REPLACE(IPPROTO_PIM)
72 72 SED_REPLACE(IPPROTO_SCTP)
73 73 SED_REPLACE(IPPROTO_RAW)
74 +SED_REPLACE(IPPROTO_DCCP)
74 75 SED_REPLACE(IPPROTO_MAX)
75 76
76 77 SED_REPLACE(TCP_MIN_HEADER_LENGTH)
77 78
78 79 SED_REPLACE(GLOBAL_NETSTACKID)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX