PPP interface structure. More...
#include <dev/ppp.h>
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_t * | dcb_user |
User authentication. | |
uint8_t * | dcb_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. |
PPP interface structure.
Contains information about the PPP device.
PPP State event queue. The state machine posts an event to this queue when the network interface becomes ready.
Definition at line 139 of file ppp.h.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpRxConfAck(), IpcpRxConfReq(), and NutNetIfConfig2().
Current state of the link layer.
Definition at line 143 of file ppp.h.
Referenced by LcpClose(), LcpLowerDown(), LcpLowerUp(), LcpOpen(), LcpRxProtRej(), LcpTxConfReq(), NutLcpInput(), and NutPppSm().
ID of our last request.
Definition at line 147 of file ppp.h.
Referenced by IpcpClose(), IpcpLowerUp(), IpcpOpen(), IpcpRxConfAck(), IpcpRxConfReq(), IpcpRxProtRej(), IpcpRxTermAck(), LcpClose(), LcpLowerUp(), LcpOpen(), LcpRxProtRej(), NutPppSm(), and PapTxAuthReq().
Flag to remember ack received.
Definition at line 155 of file ppp.h.
Referenced by IpcpRxConfAck(), IpcpTxConfReq(), and LcpTxConfReq().
Local IP address.
Definition at line 203 of file ppp.h.
Referenced by IpcpRxConfAck(), IpcpTxConfReq(), and NutNetIfConfig2().
Remote IP address.
Definition at line 207 of file ppp.h.
Referenced by IpcpRxConfReq(), and NutNetIfConfig2().
Negotiated primary DNS.
Definition at line 215 of file ppp.h.
Referenced by IpcpRxConfAck(), IpcpRxConfReq(), and IpcpTxConfReq().
Negotiated secondary DNS.
Definition at line 219 of file ppp.h.
Referenced by IpcpRxConfAck(), IpcpRxConfReq(), and IpcpTxConfReq().
LCP/IPCP retransmit counter.
Definition at line 227 of file ppp.h.
Referenced by IpcpRxConfAck(), LcpTxConfReq(), and NutPppSm().
LCP NAK counter, avoids endless loops.
Definition at line 231 of file ppp.h.
Referenced by LcpTxConfReq().
Current state of the network layer.
Definition at line 239 of file ppp.h.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpLowerUp(), IpcpOpen(), IpcpRxConfAck(), IpcpRxConfReq(), IpcpRxProtRej(), IpcpRxTermAck(), IpcpRxTermReq(), IpcpTxConfReq(), NutIpcpInput(), NutNetIfConfig2(), and NutPppSm().
LCP NAK counter, avoids endless loops.
Definition at line 243 of file ppp.h.
Referenced by IpcpRxConfReq(), and IpcpTxConfReq().
Current authentication state.
Definition at line 247 of file ppp.h.
Referenced by NutPppSm(), PapRxAuthAck(), PapRxAuthNak(), and PapTxAuthReq().
int _PPPDCB::dcb_fd |
File descriptor of physical device.
Definition at line 251 of file ppp.h.
Referenced by IpcpLowerDown(), NutNetIfConfig2(), and NutPppOutput().