tf6UserRegisterFilter

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tf6UserRegsterFilter (tt6UserFilterCallback filterCallback);


Function Description

This function registers one IPv6 User Filter Callback of type tt6UserFilterCallback which is used for additional IPv6 packet processing.

Usage

To register the IPv6 User Filter Callback, create the appropriate context and supply the user-defined callback function in the format given by tt6UserFilterCallback. Call tf6UserRegisterFilter() with this function as a parameter. Use tfInterfaceSetOptions() to control interface-based enabling/disabling of filtering functionality.

Note Note: This IPv6 User Filter Callback function cannot be replaced, however IPv6 filtering can be enabled/disabled for each interface.


Returns

  • TM_ENOERROR
    The new filter was registered.
  • TM_EALREADY
    A filter has already been registered.


Table of Contents >> Programmer's Reference