Minor. Add LWIP_NETIF_HOSTNAME in skeleton and comment on #endif for LWIP_SNMP.

This commit is contained in:
fbernon 2007-03-28 10:29:06 +00:00
parent c1fe7517ec
commit d301b69dae

View File

@ -301,6 +301,11 @@ ethernetif_init(struct netif *netif)
return ERR_MEM; return ERR_MEM;
} }
#if LWIP_NETIF_HOSTNAME
/* Initialize interface hostname */
netif->hostname = "lwip";
#endif /* LWIP_NETIF_HOSTNAME */
#if LWIP_SNMP #if LWIP_SNMP
/* ifType ethernetCsmacd(6) @see RFC1213 */ /* ifType ethernetCsmacd(6) @see RFC1213 */
netif->link_type = 6; netif->link_type = 6;
@ -315,7 +320,7 @@ ethernetif_init(struct netif *netif)
netif->ifoutucastpkts = 0; netif->ifoutucastpkts = 0;
netif->ifoutnucastpkts = 0; netif->ifoutnucastpkts = 0;
netif->ifoutdiscards = 0; netif->ifoutdiscards = 0;
#endif #endif /* LWIP_SNMP */
netif->state = ethernetif; netif->state = ethernetif;
netif->name[0] = IFNAME0; netif->name[0] = IFNAME0;