| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
#include <ppp.h>
Data Fields | |
| atomic_t | flags | 
| struct k_work_delayable | startup | 
| struct k_work | carrier_work | 
| struct { | |
| struct ppp_fsm fsm | |
| struct lcp_options my_options | |
| struct lcp_options peer_options | |
| uint32_t magic | |
| } | lcp | 
| struct net_if * | iface | 
| enum ppp_phase | phase | 
| enum net_l2_flags | ppp_l2_flags | 
| int | network_protos_open | 
| int | network_protos_up | 
| uint16_t | is_net_carrier_up: 1 | 
| uint16_t | is_ready_to_serve: 1 | 
| uint16_t | is_enabled: 1 | 
| uint16_t | is_startup_pending: 1 | 
| uint16_t | is_enable_done: 1 | 
| uint16_t | is_ipcp_up: 1 | 
| uint16_t | is_ipcp_open: 1 | 
| uint16_t | is_ipv6cp_up: 1 | 
| uint16_t | is_ipv6cp_open: 1 | 
| uint16_t | is_pap_up: 1 | 
| uint16_t | is_pap_open: 1 | 
PPP L2 context specific to certain network interface
| struct k_work ppp_context::carrier_work | 
Carrier ON/OFF handler worker. This is used to create network interface UP/DOWN event when PPP L2 driver notices carrier ON/OFF situation. We must not create another network management event from inside management handler thus we use worker thread to trigger the UP/DOWN event.
| atomic_t ppp_context::flags | 
Flags representing PPP state, which are accessed from multiple threads.
| struct ppp_fsm ppp_context::fsm | 
Finite state machine for LCP
| struct net_if* ppp_context::iface | 
Network interface related to this PPP connection
| uint16_t ppp_context::is_enable_done | 
PPP enable pending
| uint16_t ppp_context::is_enabled | 
Is PPP L2 enabled or not
| uint16_t ppp_context::is_ipcp_open | 
IPCP open status (open / closed)
| uint16_t ppp_context::is_ipcp_up | 
IPCP status (up / down)
| uint16_t ppp_context::is_ipv6cp_open | 
IPV6CP open status (open / closed)
| uint16_t ppp_context::is_ipv6cp_up | 
IPV6CP status (up / down)
| uint16_t ppp_context::is_net_carrier_up | 
Is network carrier up
| uint16_t ppp_context::is_pap_open | 
PAP open status (open / closed)
| uint16_t ppp_context::is_pap_up | 
PAP status (up / down)
| uint16_t ppp_context::is_ready_to_serve | 
Is PPP ready to receive packets
| uint16_t ppp_context::is_startup_pending | 
PPP startup pending
| struct { ... } ppp_context::lcp | 
| uint32_t ppp_context::magic | 
Magic-Number value
| struct lcp_options ppp_context::my_options | 
Options that we want to request
| int ppp_context::network_protos_open | 
This tells how many network protocols are open
| int ppp_context::network_protos_up | 
This tells how many network protocols are up
| struct lcp_options ppp_context::peer_options | 
Options that peer want to request
| enum ppp_phase ppp_context::phase | 
Current phase of PPP link
| enum net_l2_flags ppp_context::ppp_l2_flags | 
This tells what features the PPP supports.
| struct k_work_delayable ppp_context::startup | 
PPP startup worker.