Configures the debugging features of the node and a virtual Peak Cell Rate (PCR). It uses the same structure as NGM_ATMPIF_GET_CONFIG.
NGM_ATMPIF_GET_CONFIG(getconfig)
Returns a structure defining the configuration of the interface:
struct ng_vatmpif_config {
uint8_t debug; /* debug bit field (see below) */
uint32_t pcr;/* peak cell rate */
Mac_addr macaddr; /* Mac Address */
};
Note that the following debugging flags can be used:
VATMPIF_DEBUG_NONE
disable debugging
VATMPIF_DEBUG_PACKET
enable debugging
NGM_ATMPIF_GET_LINK_STATUS(getlinkstatus)
Returns the last received sequence number, the last sent sequence number and the current total PCR that is reserved among all the VCCs of the interface.
struct ng_atmpif_link_status {
uint32_t InSeq; /* last received sequence number + 1 */
uint32_t OutSeq; /* last sent sequence number */
uint32_t cur_pcr; /* slots reserved PCR */
};