[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

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

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

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.

Implementation Specifics

The del_input_type kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The add_input_type kernel service, find_input_type kernel service.

Network Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]