/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/*
* pktinfo is where packet ID info can be made available for deeper
* analysis if packet IDs become supported by the kernel in the future.
* The pkt_addr member is currently always NULL.
*/
} pktinfo_t;
/*
* csinfo is where connection state info is made available.
*/
} csinfo_t;
/*
* ipinfo contains common IP info for both IPv4 and IPv6.
*/
} ipinfo_t;
/*
* ifinfo contains network interface info.
*/
} ifinfo_t;
/*
* ipv4info is a translated version of the IPv4 header (with raw pointer).
* These values are NULL if the packet is not IPv4.
*/
} ipv4info_t;
/*
* ipv6info is a translated version of the IPv6 header (with raw pointer).
* These values are NULL if the packet is not IPv6.
*/
} ipv6info_t;
/*
* void_ip_t is a void pointer to either an IPv4 or IPv6 header. It has
* its own type name so that a translator can be determined.
*/
/*
* __dtrace_ipsr_ill_t is used by the translator to take an ill_t plus an
* additional arg6 from the ip:::send and ip:::recieve probes, and translate
* them to an ifinfo_t.
*/
/*
* __dtrace_tcp_void_ip_t is used by the translator to take either the
* non-NULL void_ip_t * passed in or, if it is NULL, uses arg3 (tcp_t *)
* from the tcp:::send and tcp:::recieve probes to translate to an ipinfo_t.
* When no headers are available in the TCP fusion case for tcp:::send
* and tcp:::receive case, this allows us to present the consumer with header
* data based on the tcp_t * content in order to hide the implementation
* details of TCP fusion.
*/
typedef void * __dtrace_tcp_void_ip_t;
};
};
cs_zoneid = C ?
@GLOBAL_NETSTACKID@ ||
};
};
};
};
: 0;
};
/*
* Translate to an ipinfo_t * from either the non-NULL void_ip_t * passed in,
* or use arg3 (tcp_t *) to fabricate ip header info.
*/
I != NULL ? 0 :
0;
ip_saddr =
I != NULL ? "<unknown>" :
"<unknown>";
ip_daddr =
I != NULL ? "<unknown>" :
"<unknown>";
};
12 : 0;
0x0fff : 0;
ipv4_hdr = I;
};
0x0fffffff) >> 20) : 0;
0x000fffff : 0;
ipv6_hdr = I;
};