Kernel functions net_ispartialchecksum(9F) NAME net_ispartialchecksum - return an indication for whether or not this packet is being scheduled for hardware checksum calculation SYNOPSIS #include int net_ispartialchecksum(const net_data_t net, mblk_t *mb); INTERFACE LEVEL Solaris DDI specific (Solaris DDI) PARAMETERS net value returned from a successful call to net_protocol_lookup. mb mblk holding a packet that is the subject of this query. DESCRIPTION This function looks at the fields within mblk structure passed in to determine if the packet contained inside con- tains headers with only partial checksum values. Partial checksums are stored inside headers when the calculation of the complete checksum is being handled by the hardware. RETURN VALUES This interface returns "-1" if it is not supported by the network protocol, 0 if the packet does not contain partial checksums. Where a packet is marked for hardware checksum'ing, the following value are returned: NET_HCK_L3_FULL - Complete layer 3 checksum calculated NET_HCK_L3_PART - Partial layer 3 checksum calculated NET_HCK_L4_FULL - Complete layer 4 checksum calculated NET_HCK_L4_PART - Partial layer 3 checksum calculated ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Interface Stability | Committed | |_____________________________|_____________________________| SunOS 5.10 Last change: 25 March 2008 1 Kernel functions net_ispartialchecksum(9F) SEE ALSO net_isvalidcksum(9f) SunOS 5.10 Last change: 25 March 2008 2