2 .\" Copyright (C) 2008, Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" 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]
6 .TH NET_ISPARTIALCHECKSUM 9F "May 1, 2008"
8 net_ispartialchecksum \- indicate if a packet is being scheduled for hardware
15 \fBint\fR \fBnet_ispartialchecksum\fR(\fBconst\fR \fBnet_data_t\fR \fInet\fR, \fBmblk_t\fR *\fImb\fR);
21 Solaris DDI specific (Solaris DDI).
29 value returned from a successful call to \fBnet_protocol_lookup\fR(9F).
38 the \fBmblk\fR structure holding a packet that is the subject of this query.
44 The \fBnet_ispartialchecksum()\fR function looks at the fields within the
45 \fBmblk\fR structure to determine if the packet contained inside contains
46 headers with only partial checksum values. Partial checksum values are stored
47 inside headers when the calculation of the complete checksum is being handled
52 The \fBnet_ispartialchecksum()\fR function returns:
59 The network protocol does not support this function.
68 The packet does not contain partial checksums.
73 If a packet is marked for hardware checksum'ing, the following values are
78 \fB\fBNET_HCK_L3_FULL\fR\fR
81 Complete layer 3 checksum calculated
87 \fB\fBNET_HCK_L3_PART\fR\fR
90 Partial layer 3 checksum calculated
96 \fB\fBNET_HCK_L4_FULL\fR\fR
99 Complete layer 4 checksum calculated
105 \fB\fBNET_HCK_L4_PART\fR\fR
108 Partial layer 4 checksum calculated
114 The \fBnet_ispartialchecksum()\fR function may be called from user, kernel, or
119 See \fBattributes\fR(5) for descriptions of the following attributes:
127 ATTRIBUTE TYPE ATTRIBUTE VALUE
129 Interface Stability Committed
135 \fBnet_isvalidchecksum\fR(9F), \fBnet_protocol_lookup\fR(9F),