mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-15 12:47:08 +08:00
Changed define NETIF_INIT_SNMP(type, speed) to include the name of the struct netif to change...
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user