tfGetNetMask

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfGetNetMask (
ttUserInterface interfaceId,
ttUserIpAddress * netMaskPtr,
unsigned char mHomeIndex
);


Function Description

This function is used to get the netmask from a given interface. The multihome index is used for interfaces that have more than one IP address. If the interface has only one IP address then the multihome index should be set to zero.


Parameters

  • interfaceId
    The device driver entry that we wish to get the netmask for.
  • netMaskPtr
    A pointer to the location where to store the netmask upon function completion.
  • mHomeIndex
    An index for multiple IP addresses.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Bad parameter.
  • TM_ENETDOWN
    Interface/multihome index is not configured.


Table of Contents >> Programmer's Reference