Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
|
PPP (Point-to-Point Protocol) More...
#include <zephyr/net/net_if.h>
#include <zephyr/net/net_pkt.h>
#include <zephyr/net/net_stats.h>
#include <zephyr/net/net_mgmt.h>
Go to the source code of this file.
Data Structures | |
struct | ppp_api |
PPP L2 API. More... | |
struct | ppp_fsm |
Generic PPP Finite State Machine. More... | |
struct | lcp_options |
Link control protocol options. More... | |
struct | ipcp_options |
IPv4 control protocol options. More... | |
struct | ipv6cp_options |
IPv6 control protocol options. More... | |
struct | ppp_context |
PPP L2 context specific to certain network interface. More... | |
Macros | |
#define | PPP_MRU CONFIG_NET_PPP_MTU_MRU |
PPP maximum receive unit (MRU) | |
#define | PPP_MTU PPP_MRU |
PPP maximum transfer unit (MTU) | |
#define | PPP_MAX_TERMINATE_REASON_LEN 32 |
Max length of terminate description string. | |
#define | PPP_INTERFACE_IDENTIFIER_LEN 8 |
Length of network interface identifier. | |
#define | NET_EVENT_PPP_CARRIER_ON (_NET_PPP_EVENT | NET_EVENT_PPP_CMD_CARRIER_ON) |
Event emitted when PPP carrier is on. | |
#define | NET_EVENT_PPP_CARRIER_OFF (_NET_PPP_EVENT | NET_EVENT_PPP_CMD_CARRIER_OFF) |
Event emitted when PPP carrier is off. | |
#define | NET_EVENT_PPP_PHASE_RUNNING (_NET_PPP_EVENT | NET_EVENT_PPP_CMD_PHASE_RUNNING) |
Event emitted when PPP goes into running phase. | |
#define | NET_EVENT_PPP_PHASE_DEAD (_NET_PPP_EVENT | NET_EVENT_PPP_CMD_PHASE_DEAD) |
Event emitted when PPP goes into dead phase. | |
Typedefs | |
typedef void(* | net_ppp_lcp_echo_reply_cb_t) (void *user_data, size_t user_data_len) |
A callback function that can be called if a Echo-Reply needs to be received. | |
Functions | |
void | net_ppp_init (struct net_if *iface) |
Initialize PPP L2 stack for a given interface. | |
static void | ppp_mgmt_raise_carrier_on_event (struct net_if *iface) |
Raise CARRIER_ON event when PPP is connected. | |
static void | ppp_mgmt_raise_carrier_off_event (struct net_if *iface) |
Raise CARRIER_OFF event when PPP is disconnected. | |
static void | ppp_mgmt_raise_phase_running_event (struct net_if *iface) |
Raise PHASE_RUNNING event when PPP reaching RUNNING phase. | |
static void | ppp_mgmt_raise_phase_dead_event (struct net_if *iface) |
Raise PHASE_DEAD event when PPP reaching DEAD phase. | |
static int | net_ppp_ping (int idx, int32_t timeout) |
Send PPP Echo-Request to peer. | |
static struct ppp_context * | net_ppp_context_get (int idx) |
Get PPP context information. | |
PPP (Point-to-Point Protocol)