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

ns_del_filter Network Service


Deletes a receive filter.


#include <sys/cdli.h>
#include <sys/ndd.h>
int ns_del_filter (nddp, filter, len)
       struct ndd *nddp;
       caddr_t filter;
       int len;


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.


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).


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

0 Indicates the operation was successful.

The network demuxer may supply other return values.

Related Information

The ns_add_filter network service, ns_alloc network service.

[ Previous | Next | Contents | Home | Search ]