Kernel Functions for Drivers netispartialchecksum(9F)
NAME
netispartialchecksum - indicate if a packet is being
scheduled for hardware checksum calculation
SYNOPSIS
#include
int netispartialchecksum(const netdatat net, mblkt *mb);
INTERFACE LEVEL
Solaris DI specific (Solaris DI).
PARAMETERS
net value returned from a successful call to
netprotocollookup(9F).
mb the mblk structure holding a packet that is the sub-
ject of this query.
DESCRIPTION
The netispartialchecksum() function looks at the fields
within the mblk structure to determine if the packet con-
tained inside contains headers with only partial checksum
values. Partial checksum values are stored inside headers
when the calculation of the complete checksum is being han-
dled by the hardware.
RETURN VALUES
The netispartialchecksum() function returns:
-1 The network protocol does not support this function.
0 The packet does not contain partial checksums.
If a packet is marked for hardware checksum'ing, the follow-
ing values are returned:
NETHCKL3FUL Complete layer 3 checksum calculated
NETHCKL3PART Partial layer 3 checksum calculated
NETHCKL4FUL Complete layer 4 checksum calculated
SunOS 5.11 Last change: 1 May 2008 1
Kernel Functions for Drivers netispartialchecksum(9F)
NETHCKL4PART Partial layer 4 checksum calculated
CONTEXT
The netispartialchecksum() function may be called from
user, kernel, or interrupt context.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWcsu
Interface Stability Committed
SEE ALSO
netisvalidchecksum(9F), netprotocollookup(9F), attri-
butes(5)
SunOS 5.11 Last change: 1 May 2008 2
|