From d301b69dae920dfb8bd4434fda539124f5d75d9e Mon Sep 17 00:00:00 2001 From: fbernon Date: Wed, 28 Mar 2007 10:29:06 +0000 Subject: [PATCH] Minor. Add LWIP_NETIF_HOSTNAME in skeleton and comment on #endif for LWIP_SNMP. --- src/netif/ethernetif.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/netif/ethernetif.c b/src/netif/ethernetif.c index 3891b8fb..687bd70f 100644 --- a/src/netif/ethernetif.c +++ b/src/netif/ethernetif.c @@ -301,6 +301,11 @@ ethernetif_init(struct netif *netif) return ERR_MEM; } +#if LWIP_NETIF_HOSTNAME + /* Initialize interface hostname */ + netif->hostname = "lwip"; +#endif /* LWIP_NETIF_HOSTNAME */ + #if LWIP_SNMP /* ifType ethernetCsmacd(6) @see RFC1213 */ netif->link_type = 6; @@ -315,7 +320,7 @@ ethernetif_init(struct netif *netif) netif->ifoutucastpkts = 0; netif->ifoutnucastpkts = 0; netif->ifoutdiscards = 0; -#endif +#endif /* LWIP_SNMP */ netif->state = ethernetif; netif->name[0] = IFNAME0;