net_error Kernel Service

Purpose

Handles errors for communication network interface drivers.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <net/if.h>
#include <sys/comio.h>

net_error ( ifp,  error_code,  netfp)
struct  ifnet *ifp;
int error_code;
struct  file *netfp;

Parameters

Item Description
error_code Specifies the error code listed in the /usr/include/sys/comio.h file.
ifp Specifies the address of the ifnet structure for the device with an error.
netfp Specifies the file pointer for the device with an error.

Description

The net_error kernel service provides generic error handling for communications network interface (if) drivers. Network interface (if) kernel extensions call this service to trace errors and, in some instances, perform error recovery.

Errors traced include those:

Execution Environment

The net_error kernel service can be called from either the process or interrupt environment.

Return Values

The net_error service has no return values.