Marks an interface as down.
#include <sys/types.h> #include <sys/errno.h> #include <net/if.h> void if_down ( ifp) register struct ifnet *ifp;
Item | Description |
---|---|
ifp | Specifies the ifnet structure associated with the interface array. |
The if_down kernel service:
The ifp parameter specifies the ifnet structure associated with the interface as the structure to be marked as down.
The if_down kernel service can be called from either the process or interrupt environment.
The if_down service has no return values.
To mark an interface as down, invoke the if_down kernel service as follows:
if_down(ifp);