mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
PPP, all protocols, uniformised naming
Uniformised fonction naming between and inside PPPoS, PPPoE, PPPoL2TP.
This commit is contained in:
@@ -153,10 +153,10 @@ static struct pppoe_softc *pppoe_softc_list;
|
||||
*
|
||||
* Return 0 on success, an error code on failure.
|
||||
*/
|
||||
ppp_pcb *ppp_over_ethernet_create(struct netif *pppif,
|
||||
struct netif *ethif,
|
||||
const char *service_name, const char *concentrator_name,
|
||||
ppp_link_status_cb_fn link_status_cb, void *ctx_cb)
|
||||
ppp_pcb *pppoe_create(struct netif *pppif,
|
||||
struct netif *ethif,
|
||||
const char *service_name, const char *concentrator_name,
|
||||
ppp_link_status_cb_fn link_status_cb, void *ctx_cb)
|
||||
{
|
||||
ppp_pcb *ppp;
|
||||
struct pppoe_softc *sc;
|
||||
|
||||
@@ -99,9 +99,10 @@ static err_t pppol2tp_xmit(pppol2tp_pcb *l2tp, struct pbuf *pb);
|
||||
|
||||
|
||||
/* Create a new L2TP session. */
|
||||
ppp_pcb *ppp_over_l2tp_create(struct netif *pppif, struct netif *netif, ip_addr_t *ipaddr, u16_t port,
|
||||
u8_t *secret, u8_t secret_len,
|
||||
ppp_link_status_cb_fn link_status_cb, void *ctx_cb) {
|
||||
ppp_pcb *pppol2tp_create(struct netif *pppif,
|
||||
struct netif *netif, ip_addr_t *ipaddr, u16_t port,
|
||||
u8_t *secret, u8_t secret_len,
|
||||
ppp_link_status_cb_fn link_status_cb, void *ctx_cb) {
|
||||
ppp_pcb *ppp;
|
||||
pppol2tp_pcb *l2tp;
|
||||
struct udp_pcb *udp;
|
||||
|
||||
@@ -148,9 +148,8 @@ static pppos_pcb *pppos_pcb_list;
|
||||
*
|
||||
* Return 0 on success, an error code on failure.
|
||||
*/
|
||||
ppp_pcb *
|
||||
ppp_over_serial_create(struct netif *pppif, sio_fd_t fd,
|
||||
ppp_link_status_cb_fn link_status_cb, void *ctx_cb)
|
||||
ppp_pcb *pppos_create(struct netif *pppif, sio_fd_t fd,
|
||||
ppp_link_status_cb_fn link_status_cb, void *ctx_cb)
|
||||
{
|
||||
pppos_pcb *pppos;
|
||||
ppp_pcb *ppp;
|
||||
|
||||
Reference in New Issue
Block a user