mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-23 00:27:09 +08:00
Changed define NETIF_INIT_SNMP(type, speed) to include the name of the struct netif to change...
This commit is contained in:
@@ -343,7 +343,7 @@ ethernetif_init(struct netif *netif)
|
||||
|
||||
/* initialize the snmp variables and counters inside the struct netif */
|
||||
/* ifType ethernetCsmacd(6) @see RFC1213 */
|
||||
NETIF_INIT_SNMP(6, ???);
|
||||
NETIF_INIT_SNMP(netif, 6, ???);
|
||||
|
||||
netif->state = ethernetif;
|
||||
netif->name[0] = IFNAME0;
|
||||
|
||||
@@ -197,7 +197,7 @@ loopif_init(struct netif *netif)
|
||||
* ifType: softwareLoopback(24) @see RFC1213
|
||||
* ifSpeed: no assumption can be made!
|
||||
*/
|
||||
NETIF_INIT_SNMP(24, 0);
|
||||
NETIF_INIT_SNMP(netif, 24, 0);
|
||||
|
||||
netif->name[0] = 'l';
|
||||
netif->name[1] = 'o';
|
||||
|
||||
@@ -258,7 +258,7 @@ slipif_init(struct netif *netif)
|
||||
* ifSpeed: no assumption can be made without knowing more about the
|
||||
* serial line!
|
||||
*/
|
||||
NETIF_INIT_SNMP(22, 0);
|
||||
NETIF_INIT_SNMP(netif, 22, 0);
|
||||
|
||||
/* Create a thread to poll the serial line. */
|
||||
sys_thread_new(slipif_loop, netif, SLIPIF_THREAD_PRIO);
|
||||
|
||||
Reference in New Issue
Block a user