Deletes a network interface from the network interface list.
#include <sys/types.h>
#include <sys/errno.h>
#include <net/if.h>
if_detach ( ifp)
struct ifnet *ifp;
Item | Description |
---|---|
ifp | Points to the interface network (ifnet) structure that describes the network interface to delete. |
The if_detach kernel service deletes a Network Interface Driver (NID) entry from the network interface list.
The if_detach kernel service can be called from either the process or interrupt environment.
Item | Description |
---|---|
0 | Indicates that the network interface was successfully deleted. |
ENOENT | Indicates that the if_detach kernel service could not find the NID in the network interface list. |