ns_del_filter Network Service

Purpose

Deletes a receive filter.

Syntax

#include <sys/cdli.h>
#include <sys/ndd.h>

int ns_del_filter (nddp, filter, len)
       struct ndd * nddp;
       caddr_t  filter;
       int  len;

Parameters

Item Description
nddp Specifies the ndd structure that this delete request is for.
filter Specifies the pointer to the receive filter.
len Specifies the length in bytes of the receive filter.

Description

The ns_del_filter network service deletes the receive filter from the corresponding network demuxer. This disables packet reception for packets that match the filter. The delete request is passed on to the nd_del_filter function of the demuxer for the specified network device driver (NDD).

Examples

The following example illustrates the ns_del_filter network service:

struct ns_8022 dl;
 
dl.filtertype = NS_LLC_DSAP_SNAP;
dl.dsap = 0xaa;
dl.orgcode[0] = 0x0;
dl.orgcode[1] = 0x0;
dl.orgcode[2] = 0x0;
dl.ethertype = 0x0800;
ns_del_filter(nddp, &dl, sizeof(dl));

Return Values

Item Description
0 Indicates the operation was successful.

The network demuxer may supply other return values.