Deletes an input type from the Network Input table.
#include <sys/types.h>
#include <sys/errno.h>
#include <net/if.h>
int del_input_type
( type)
u_short type;
Item | Description |
---|---|
type | Specifies which type of protocol the packet contains. This parameter is a field in a packet. |
The del_input_type kernel service deletes an input type from the Network Input table to disable the reception of the specified packet type.
The del_input_type kernel service can be called from either the process or interrupt environment.
Item | Description |
---|---|
0 | Indicates that the type was successfully deleted. |
ENOENT | Indicates that the del_input_type service could not find the type in the Network Input table. |
del_input_type(ETHERTYPE_IP);
In
this example, ETHERTYPE_IP specifies that Ethernet IP packets
should no longer be processed.del_input_type(ETHERTYPE_ARP);
In
this example, ETHERTYPE_ARP specifies that Ethernet ARP packets
should no longer be processed.