ip.d.in revision 10e6dadfe63181edabc58c8f42e3c56a1cd9ec95
/*
* 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
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* 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 can be made available if
* connection IDs become supported by the kernel in the future.
* The cs_addr member is currently always NULL.
*/
} 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.
*/
};
};
};
};
};
: 0;
};
12 : 0;
0x0fff : 0;
ipv4_hdr = I;
};
0x0fffffff) >> 20) : 0;
0x000fffff : 0;
ipv6_hdr = I;
};