del_input_type Kernel Service

Purpose

Deletes an input type from the Network Input table.

Syntax

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

int del_input_type
(
type)
u_short type;

Parameter

Item Description
type Specifies which type of protocol the packet contains. This parameter is a field in a packet.

Description

The del_input_type kernel service deletes an input type from the Network Input table to disable the reception of the specified packet type.

Execution Environment

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

Return Values

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.

Examples

  1. To delete an input type from the Network Input table, invoke the del_input_type kernel service as follows:
    del_input_type(ETHERTYPE_IP);
    In this example, ETHERTYPE_IP specifies that Ethernet IP packets should no longer be processed.
  2. To delete an input type from the Network Input table, invoke the del_input_type kernel service as follows:
    del_input_type(ETHERTYPE_ARP);
    In this example, ETHERTYPE_ARP specifies that Ethernet ARP packets should no longer be processed.