Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ppp_context Struct Reference

PPP L2 context specific to certain network interface. More...

#include <ppp.h>

Data Fields

atomic_t flags
 Flags representing PPP state, which are accessed from multiple threads.
 
struct k_work_delayable startup
 PPP startup worker.
 
struct {
   struct ppp_fsm   fsm
 Finite state machine for LCP. More...
 
   struct lcp_options   my_options
 Options that we want to request. More...
 
   struct lcp_options   peer_options
 Options that peer want to request. More...
 
   uint32_t   magic
 Magic-Number value. More...
 
lcp
 
struct net_ififace
 Network interface related to this PPP connection.
 
struct net_mgmt_event_callback mgmt_evt_cb
 Network management callback structure.
 
enum ppp_phase phase
 Current phase of PPP link.
 
struct k_sem wait_ppp_link_terminated
 Signal when PPP link is terminated.
 
struct k_sem wait_ppp_link_down
 Signal when PPP link is down.
 
enum net_l2_flags ppp_l2_flags
 This tells what features the PPP supports.
 
int network_protos_open
 This tells how many network protocols are open.
 
int network_protos_up
 This tells how many network protocols are up.
 
uint16_t is_ready_to_serve: 1
 Is PPP ready to receive packets.
 
uint16_t is_enabled: 1
 Is PPP L2 enabled or not.
 
uint16_t is_enable_done: 1
 PPP enable pending.
 
uint16_t is_ipcp_up: 1
 IPCP status (up / down)
 
uint16_t is_ipcp_open: 1
 IPCP open status (open / closed)
 
uint16_t is_ipv6cp_up: 1
 IPV6CP status (up / down)
 
uint16_t is_ipv6cp_open: 1
 IPV6CP open status (open / closed)
 
uint16_t is_pap_up: 1
 PAP status (up / down)
 
uint16_t is_pap_open: 1
 PAP open status (open / closed)
 

Detailed Description

PPP L2 context specific to certain network interface.

Field Documentation

◆ flags

atomic_t ppp_context::flags

Flags representing PPP state, which are accessed from multiple threads.

◆ fsm

struct ppp_fsm ppp_context::fsm

Finite state machine for LCP.

◆ iface

struct net_if* ppp_context::iface

Network interface related to this PPP connection.

◆ is_enable_done

uint16_t ppp_context::is_enable_done

PPP enable pending.

◆ is_enabled

uint16_t ppp_context::is_enabled

Is PPP L2 enabled or not.

◆ is_ipcp_open

uint16_t ppp_context::is_ipcp_open

IPCP open status (open / closed)

◆ is_ipcp_up

uint16_t ppp_context::is_ipcp_up

IPCP status (up / down)

◆ is_ipv6cp_open

uint16_t ppp_context::is_ipv6cp_open

IPV6CP open status (open / closed)

◆ is_ipv6cp_up

uint16_t ppp_context::is_ipv6cp_up

IPV6CP status (up / down)

◆ is_pap_open

uint16_t ppp_context::is_pap_open

PAP open status (open / closed)

◆ is_pap_up

uint16_t ppp_context::is_pap_up

PAP status (up / down)

◆ is_ready_to_serve

uint16_t ppp_context::is_ready_to_serve

Is PPP ready to receive packets.

◆ 

struct { ... } ppp_context::lcp

◆ magic

uint32_t ppp_context::magic

Magic-Number value.

◆ mgmt_evt_cb

struct net_mgmt_event_callback ppp_context::mgmt_evt_cb

Network management callback structure.

◆ my_options

struct lcp_options ppp_context::my_options

Options that we want to request.

◆ network_protos_open

int ppp_context::network_protos_open

This tells how many network protocols are open.

◆ network_protos_up

int ppp_context::network_protos_up

This tells how many network protocols are up.

◆ peer_options

struct lcp_options ppp_context::peer_options

Options that peer want to request.

◆ phase

enum ppp_phase ppp_context::phase

Current phase of PPP link.

◆ ppp_l2_flags

enum net_l2_flags ppp_context::ppp_l2_flags

This tells what features the PPP supports.

◆ startup

struct k_work_delayable ppp_context::startup

PPP startup worker.

◆ wait_ppp_link_down

struct k_sem ppp_context::wait_ppp_link_down

Signal when PPP link is down.

◆ wait_ppp_link_terminated

struct k_sem ppp_context::wait_ppp_link_terminated

Signal when PPP link is terminated.


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