mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
PPP: Init SNMP members of PPP netifs
This commit is contained in:
parent
10edba936b
commit
f104d68569
@ -642,6 +642,7 @@ ppp_pcb *ppp_new(struct netif *pppif, const struct link_callbacks *callbacks, vo
|
|||||||
pcb->settings.fsm_max_nak_loops = FSM_DEFMAXNAKLOOPS;
|
pcb->settings.fsm_max_nak_loops = FSM_DEFMAXNAKLOOPS;
|
||||||
|
|
||||||
pcb->netif = pppif;
|
pcb->netif = pppif;
|
||||||
|
MIB2_INIT_NETIF(pppif, snmp_ifType_ppp, 0);
|
||||||
if (!netif_add(pcb->netif,
|
if (!netif_add(pcb->netif,
|
||||||
#if LWIP_IPV4
|
#if LWIP_IPV4
|
||||||
IP4_ADDR_ANY, IP4_ADDR_BROADCAST, IP4_ADDR_ANY,
|
IP4_ADDR_ANY, IP4_ADDR_BROADCAST, IP4_ADDR_ANY,
|
||||||
|
Loading…
Reference in New Issue
Block a user