#include <netx25/x25_proto.h>
#include <netx25/xnetdb.h>
int getnettype (
unsigned char *linkid
);
Determines the type of network referred to by a particular link identifier.
The parameters are:
Table 8-9 getnettype parameters|
Parameter |
Description |
|---|---|
|
linkid |
A pointer to the link identifier. |
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. |