Nut/OS  5.0.5
API Reference
_PPPDCB Struct Reference

PPP interface structure. More...

#include <dev/ppp.h>

Collaboration diagram for _PPPDCB:
[legend]

Data Fields

HANDLE dcb_state_chg
 PPP State event queue. The state machine posts an event to this queue when the network interface becomes ready.
uint8_t dcb_lcp_state
 Current state of the link layer.
uint8_t dcb_reqid
 ID of our last request.
uint8_t dcb_rejid
 ID of our last reject.
uint8_t dcb_acked
 Flag to remember ack received.
uint16_t dcb_loc_mru
 Maximum local receive unit.
uint16_t dcb_rem_mru
 Maximum remote receive unit.
uint32_t dcb_accm
 Asynch control character map. TODO: Pass to ahdlc driver.
uint8_t dcb_compr
 Compression flags. TODO: Pass to ahdlc driver. dcb_useACFC dcb_usePFC.
uint16_t dcb_auth
 Authentication type.
uint32_t dcb_neg_magic
 Magic number to negotiate.
uint32_t dcb_loc_magic
 Local magic number. Used to detect loopback conditions.
uint32_t dcb_rem_magic
 Remote magic number. Used to detect loopback conditions.
uint8_tdcb_user
 User authentication.
uint8_tdcb_pass
 Password authentication.
uint32_t dcb_local_ip
 Local IP address.
uint32_t dcb_remote_ip
 Remote IP address.
uint32_t dcb_ip_mask
 Negotiated IP mask.
uint32_t dcb_ip_dns1
 Negotiated primary DNS.
uint32_t dcb_ip_dns2
 Negotiated secondary DNS.
uint32_t dcb_rejects
 Rejected items.
uint8_t dcb_retries
 LCP/IPCP retransmit counter.
uint8_t dcb_lcp_naks
 LCP NAK counter, avoids endless loops.
uint8_t dcb_lcp_reqid
 Identifier of our last LCP request.
uint8_t dcb_ipcp_state
 Current state of the network layer.
uint8_t dcb_ipcp_naks
 LCP NAK counter, avoids endless loops.
uint8_t dcb_auth_state
 Current authentication state.
int dcb_fd
 File descriptor of physical device.

Detailed Description

PPP interface structure.

Contains information about the PPP device.

Examples:

pppc/pppc.c.


Field Documentation

PPP State event queue. The state machine posts an event to this queue when the network interface becomes ready.

Referenced by IpcpClose(), IpcpLowerDown(), IpcpRxConfAck(), IpcpRxConfReq(), and NutNetIfConfig2().

ID of our last reject.

Referenced by LcpTxProtRej().

Flag to remember ack received.

Referenced by IpcpRxConfAck(), IpcpTxConfReq(), and LcpTxConfReq().

Maximum local receive unit.

Maximum remote receive unit.

Asynch control character map. TODO: Pass to ahdlc driver.

Compression flags. TODO: Pass to ahdlc driver. dcb_useACFC dcb_usePFC.

Authentication type.

Magic number to negotiate.

Referenced by LcpTxConfReq().

Local magic number. Used to detect loopback conditions.

Remote magic number. Used to detect loopback conditions.

User authentication.

Referenced by PapTxAuthReq().

Password authentication.

Referenced by PapTxAuthReq().

Remote IP address.

Examples:
pppc/pppc.c.

Referenced by IpcpRxConfReq(), and NutNetIfConfig2().

Negotiated IP mask.

Referenced by NutNetIfConfig2().

Negotiated primary DNS.

Examples:
pppc/pppc.c.

Referenced by IpcpRxConfAck(), IpcpRxConfReq(), and IpcpTxConfReq().

Negotiated secondary DNS.

Examples:
pppc/pppc.c.

Referenced by IpcpRxConfAck(), IpcpRxConfReq(), and IpcpTxConfReq().

Rejected items.

Referenced by IpcpTxConfReq().

LCP/IPCP retransmit counter.

Referenced by IpcpRxConfAck(), LcpTxConfReq(), and NutPppSm().

LCP NAK counter, avoids endless loops.

Referenced by LcpTxConfReq().

Identifier of our last LCP request.

LCP NAK counter, avoids endless loops.

Referenced by IpcpRxConfReq(), and IpcpTxConfReq().

Current authentication state.

Referenced by NutPppSm(), PapRxAuthAck(), PapRxAuthNak(), and PapTxAuthReq().

File descriptor of physical device.

Referenced by IpcpLowerDown(), NutNetIfConfig2(), and NutPppOutput().


The documentation for this struct was generated from the following file: