Changed define NETIF_INIT_SNMP(type, speed) to include the name of the struct netif to change...

This commit is contained in:
goldsimon
2007-06-08 19:59:20 +00:00
parent 090aaefb39
commit 0e9cb48ea1
5 changed files with 7 additions and 7 deletions

View File

@@ -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;

View File

@@ -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';

View File

@@ -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);