Solstice X.25 9.2 Developer's Guide

8.8 getnettype--Get Type of Network for a Link

Synopsis
#include <netx25/x25_proto.h>
 #include <netx25/xnetdb.h>

    int getnettype (
      unsigned char *linkid
  );
Description

Determines the type of network referred to by a particular link identifier.

Arguments

The parameters are:

Table 8-9 getnettype parameters

Parameter 

Description 

linkid

A pointer to the link identifier. 

Return Values

A negative value indicates an invalid link identifier. The possible network types are:

Table 8-10 Network Type

return value 

network type 

LAN 

local area network 

W80 

wide area network conforming to 1980 X.25 

W84 

wide area network conforming to 1984 X.25 

W88 

wide area network conforming to 1988 X.25 

MLPn

A multi-link connection with n links.