1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
--- 4 unchanged lines hidden (view full) ---
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 *
21 * $FreeBSD: head/cddl/lib/libdtrace/tcp.d 254889 2013-08-25 21:54:41Z markj $
22 */
23/*
24 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
25 * Copyright (c) 2013 Mark Johnston <markj@freebsd.org>
26 */
27
28#pragma D depends_on library ip.d
29#pragma D depends_on provider tcp
--- 109 unchanged lines hidden (view full) ---
139 uint16_t tcp_checksum; /* checksum */
140 uint16_t tcp_urgent; /* urgent data pointer */
141 struct tcphdr *tcp_hdr; /* raw TCP header */
142} tcpinfo_t;
143
144#pragma D binding "1.0" translator
145translator csinfo_t < struct tcpcb *p > {
146 cs_addr = NULL;
147 cs_cid = (uint64_t)p;
148 cs_pid = 0;
149 cs_zoneid = 0;
150};
151
152#pragma D binding "1.0" translator
153translator tcpsinfo_t < struct tcpcb *p > {
154 tcps_addr = (uintptr_t)p;
155 tcps_local = -1; /* XXX */
--- 48 unchanged lines hidden ---
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
--- 4 unchanged lines hidden (view full) ---
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 *
21 * $FreeBSD: head/cddl/lib/libdtrace/tcp.d 254889 2013-08-25 21:54:41Z markj $
22 */
23/*
24 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
25 * Copyright (c) 2013 Mark Johnston <markj@freebsd.org>
26 */
27
28#pragma D depends_on library ip.d
29#pragma D depends_on provider tcp
--- 109 unchanged lines hidden (view full) ---
139 uint16_t tcp_checksum; /* checksum */
140 uint16_t tcp_urgent; /* urgent data pointer */
141 struct tcphdr *tcp_hdr; /* raw TCP header */
142} tcpinfo_t;
143
144#pragma D binding "1.0" translator
145translator csinfo_t < struct tcpcb *p > {
146 cs_addr = NULL;
147 cs_cid = (uint64_t)p;
148 cs_pid = 0;
149 cs_zoneid = 0;
150};
151
152#pragma D binding "1.0" translator
153translator tcpsinfo_t < struct tcpcb *p > {
154 tcps_addr = (uintptr_t)p;
155 tcps_local = -1; /* XXX */
--- 48 unchanged lines hidden ---