PPP, added ppp_addrs() macro to get the pointer of the ppp->addrs struct

This commit is contained in:
Sylvain Rochet 2013-04-22 21:09:28 +02:00
parent 58ffa8d526
commit d03d2e6d3d

View File

@ -569,6 +569,9 @@ void pppos_input(ppp_pcb *pcb, u_char* data, int len);
/* Get the PPP netif interface */
#define ppp_netif(ppp) (&(ppp)->netif)
/* Get the PPP addresses */
#define ppp_addrs(ppp) (&(ppp)->addrs)
#if LWIP_NETIF_STATUS_CALLBACK
/* Set an lwIP-style status-callback for the selected PPP device */
void ppp_set_netif_statuscallback(ppp_pcb *pcb, netif_status_callback_fn status_callback);