Kernel functions net_isvalidcksum(9F) NAME net_isvalidcksum - verify layer 3 and layer 4 checksums where possible SYNOPSIS #include int net_isvalidcksum(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 verifies the layer 3 checksum in the packet and in some cases also the layer 4 checksum. If possible, for packets received from a network interface, fields that are used by hardware checksum'ing are examined rather than manually verifying the checksums present. For both IPv4 and IPv6, TCP, UDP and ICMP (including ICMPV6 for IPv6) layer 4 checksums are currently validated. RETURN VALUES This interface returns "-1" if it is not support by the net- work protocol, 0 if the packet does not contain partial checksums and 1 if it does. ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Interface Stability | Committed | |_____________________________|_____________________________| SEE ALSO net_ispartialcksum(9f) SunOS 5.10 Last change: 25 March 2008 1