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

@@ -151,7 +151,7 @@ struct netif {
};
#if LWIP_SNMP
#define NETIF_INIT_SNMP(type, speed) \
#define NETIF_INIT_SNMP(netif, type, speed) \
/* ifType ethernetCsmacd(6) @see RFC1213 */ \
netif->link_type = type; \
/* your link speed here */ \
@@ -166,7 +166,7 @@ struct netif {
netif->ifoutnucastpkts = 0; \
netif->ifoutdiscards = 0
#else /* LWIP_SNMP */
#define NETIF_INIT_SNMP(type, speed)
#define NETIF_INIT_SNMP(netif, type, speed)
#endif /* LWIP_SNMP */