This ioctl is used to store a set of Network User Identifiers (NUIs) and associated facilities mappings within the X.25 multiplexor. It is used in conjunction with the NUI override facility option.
This ioctl affects currently open connections and could therefore disrupt users significantly. For this reason it can only be used by root.
The following structures are associated with this ioctl:
struct nui_put { char prim_class; /* Always NUI_MSG */ char op; /* Always NUI_ENT */ struct nuiformat nuid; /* NUI */ struct facformat nuifacility; /* NUI facilities */ };
The members of the nui_put structure are:
Table 7-30 nui_put fields
Member |
Description |
---|---|
prim_class |
This is always set to NUI_MSG. |
op |
This is always set to NUI_ENT. |
nuid |
The Network User Identifier of the entry you want to store. This is stored in the nuiformat structure. |
nuifacility |
Any relevant NUI facilities. These are stored in the facformat structure. |
The nuiformat structure looks like this:
#define NUIMAXSIZE 64 #define NUIFACMAXSIZE 32 struct nuiformat { unsigned char nui_len; unsigned char nui_string[NUIMAXSIZE]; /* Network User Identifier */ };
The members of the nuiformat structure are
Table 7-31 nuiformat fields
Member |
Description |
---|---|
nui_len |
The length of the NUI. |
nui_string |
The NUI itself. |
The facformat structure looks like this:
struct facformat { unsigned short SUB_MODES; /* Mode tuning bits for net */ unsigned char LOCDEFPKTSIZE; /* Local default pkt size */ unsigned char REMDEFPKTSIZE; /* Local default pkt size */ unsigned char LOCDEFWSIZE; /* Local default window size */ unsigned char REMDEFWSIZE; /* Local default window size */ unsigned char locdefthclass; /* Local default value */ unsigned char remdefthclass; /* Remote default value */ unsigned char CUG_CONTROL; /* CUG facilities */ };
The members of the facformat structure are:
Table 7-32 facformat fields