mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 23:12:09 +00:00
Added netif SNMP init.
This commit is contained in:
parent
54bb20b486
commit
5c628d2a61
@ -291,6 +291,22 @@ ethernetif_init(struct netif *netif)
|
|||||||
return ERR_MEM;
|
return ERR_MEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LWIP_SNMP
|
||||||
|
/* ifType ethernetCsmacd(6) @see RFC1213 */
|
||||||
|
netif->link_type = 6;
|
||||||
|
/* your link speed here */
|
||||||
|
netif->link_speed = ;
|
||||||
|
netif->ts = 0;
|
||||||
|
netif->ifinoctets = 0;
|
||||||
|
netif->ifinucastpkts = 0;
|
||||||
|
netif->ifinnucastpkts = 0;
|
||||||
|
netif->ifindiscards = 0;
|
||||||
|
netif->ifoutoctets = 0;
|
||||||
|
netif->ifoutucastpkts = 0;
|
||||||
|
netif->ifoutnucastpkts = 0;
|
||||||
|
netif->ifoutdiscards = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
netif->state = ethernetif;
|
netif->state = ethernetif;
|
||||||
netif->name[0] = IFNAME0;
|
netif->name[0] = IFNAME0;
|
||||||
netif->name[1] = IFNAME1;
|
netif->name[1] = IFNAME1;
|
||||||
|
Loading…
Reference in New Issue
Block a user