mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
Eliminate tcpip_pppos_input function
This commit is contained in:
parent
e90591bb78
commit
fe8d2ba72f
@ -49,8 +49,6 @@
|
|||||||
#include "lwip/init.h"
|
#include "lwip/init.h"
|
||||||
#include "lwip/ip.h"
|
#include "lwip/ip.h"
|
||||||
#include "netif/etharp.h"
|
#include "netif/etharp.h"
|
||||||
#include "netif/ppp/pppoe.h"
|
|
||||||
#include "netif/ppp/pppos.h"
|
|
||||||
|
|
||||||
#define TCPIP_MSG_VAR_REF(name) API_VAR_REF(name)
|
#define TCPIP_MSG_VAR_REF(name) API_VAR_REF(name)
|
||||||
#define TCPIP_MSG_VAR_DECLARE(name) API_VAR_DECLARE(struct tcpip_msg, name)
|
#define TCPIP_MSG_VAR_DECLARE(name) API_VAR_DECLARE(struct tcpip_msg, name)
|
||||||
@ -223,22 +221,6 @@ tcpip_input(struct pbuf *p, struct netif *inp)
|
|||||||
return tcpip_inpkt(p, inp, ip_input);
|
return tcpip_inpkt(p, inp, ip_input);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if PPPOS_SUPPORT && !PPP_INPROC_IRQ_SAFE
|
|
||||||
/**
|
|
||||||
* Pass a received packet to tcpip_thread for input processing
|
|
||||||
*
|
|
||||||
* @param p the received packet, p->payload pointing to the Ethernet header or
|
|
||||||
* to an IP header (if inp doesn't have NETIF_FLAG_ETHARP or
|
|
||||||
* NETIF_FLAG_ETHERNET flags)
|
|
||||||
* @param inp the network interface on which the packet was received
|
|
||||||
*/
|
|
||||||
err_t
|
|
||||||
tcpip_pppos_input(struct pbuf *p, struct netif *inp)
|
|
||||||
{
|
|
||||||
return tcpip_inpkt(p, inp, pppos_input_sys);
|
|
||||||
}
|
|
||||||
#endif /* PPPOS_SUPPORT && !PPP_INPROC_IRQ_SAFE */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call a specific function in the thread context of
|
* Call a specific function in the thread context of
|
||||||
* tcpip_thread for easy access synchronization.
|
* tcpip_thread for easy access synchronization.
|
||||||
|
@ -136,10 +136,6 @@ extern sys_mutex_t lock_tcpip_core;
|
|||||||
err_t tcpip_apimsg(struct api_msg *apimsg);
|
err_t tcpip_apimsg(struct api_msg *apimsg);
|
||||||
#endif /* LWIP_NETCONN || LWIP_SOCKET */
|
#endif /* LWIP_NETCONN || LWIP_SOCKET */
|
||||||
|
|
||||||
#if PPPOS_SUPPORT && !PPP_INPROC_IRQ_SAFE
|
|
||||||
err_t tcpip_pppos_input(struct pbuf *p, struct netif *inp);
|
|
||||||
#endif /* PPPOS_SUPPORT && !PPP_INPROC_IRQ_SAFE */
|
|
||||||
|
|
||||||
#if LWIP_NETIF_API
|
#if LWIP_NETIF_API
|
||||||
err_t tcpip_netifapi(struct netifapi_msg *netifapimsg);
|
err_t tcpip_netifapi(struct netifapi_msg *netifapimsg);
|
||||||
#if LWIP_TCPIP_CORE_LOCKING
|
#if LWIP_TCPIP_CORE_LOCKING
|
||||||
|
@ -444,7 +444,7 @@ pppos_input_tcpip(ppp_pcb *ppp, u8_t *s, int l)
|
|||||||
}
|
}
|
||||||
pbuf_take(p, s, l);
|
pbuf_take(p, s, l);
|
||||||
|
|
||||||
err = tcpip_pppos_input(p, ppp_netif(ppp));
|
err = tcpip_inpkt(p, ppp_netif(ppp), pppos_input_sys);
|
||||||
if (err != ERR_OK) {
|
if (err != ERR_OK) {
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
}
|
}
|
||||||
@ -895,4 +895,5 @@ failed:
|
|||||||
pbuf_free(nb);
|
pbuf_free(nb);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* PPP_SUPPORT && PPPOS_SUPPORT */
|
#endif /* PPP_SUPPORT && PPPOS_SUPPORT */
|
||||||
|
Loading…
Reference in New Issue
Block a user