#define DNPROTO_NSP 1 // DECnet NSP transport protocol
#define SO_LINKINFO 7 // Get DECnet logical link information
#define DN_MAXADDL 20 // Maximum DECnet address length
#define DN_ADDL 2 // DECnet NSP address length
#define DN_MAXOPTL 16 // Maximum DECnet optional data
#define DN_MAXOBJL 16 // Maximum DECnet object name
#define DN_MAXACCL 40 // Maximum DECnet access string
// length (39 bytes + trailing zero)
#define DN_MAXALIASL 128 // Maximum DECnet alias string length
#define DN_MAXNODEL 256 // Maximum node string length
// DECnet logical link states
#define LL_INACTIVE 0 // logical link inactive
#define LL_CONNECTING 1 // logical link connecting
#define LL_RUNNING 2 // logical link running
#define LL_DISCONNECTING 3 // logical link disconnecting
// DECnet incoming access types
#define DN_NONE 0x00
#define DN_RO 0x01
#define DN_WO 0x02
#define DN_RW 0x03