Handles errors for communication network interface drivers.
#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;
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. |
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:
The net_error kernel service can be called from either the process or interrupt environment.
The net_error service has no return values.