2020-01-17 23:05:23 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Lemonbeat GmbH
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-05-06 17:12:04 +08:00
|
|
|
#include <zephyr/net/ppp.h>
|
2020-01-17 23:05:23 +08:00
|
|
|
|
|
|
|
void ppp_mgmt_raise_carrier_on_event(struct net_if *iface)
|
|
|
|
{
|
|
|
|
net_mgmt_event_notify(NET_EVENT_PPP_CARRIER_ON, iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ppp_mgmt_raise_carrier_off_event(struct net_if *iface)
|
|
|
|
{
|
|
|
|
net_mgmt_event_notify(NET_EVENT_PPP_CARRIER_OFF, iface);
|
|
|
|
}
|
2021-01-23 05:16:17 +08:00
|
|
|
|
|
|
|
void ppp_mgmt_raise_phase_running_event(struct net_if *iface)
|
|
|
|
{
|
|
|
|
net_mgmt_event_notify(NET_EVENT_PPP_PHASE_RUNNING, iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ppp_mgmt_raise_phase_dead_event(struct net_if *iface)
|
|
|
|
{
|
|
|
|
net_mgmt_event_notify(NET_EVENT_PPP_PHASE_DEAD, iface);
|
|
|
|
}
|