Dependents:   TimeZoneDemo EthernetJackTestCode MMEx_Challenge ntp_mem ... more

Files at this revision

API Documentation at this revision

Comitter:
segundo
Date:
Wed Dec 15 18:01:30 2010 +0000
Parent:
6:d64fca63b94e
Commit message:

Changed in this revision

if/eth/EthernetNetIf.cpp Show annotated file Show diff for this revision Revisions of this file
if/eth/EthernetNetIf.h Show annotated file Show diff for this revision Revisions of this file
--- a/if/eth/EthernetNetIf.cpp	Sun Nov 28 00:29:32 2010 +0000
+++ b/if/eth/EthernetNetIf.cpp	Wed Dec 15 18:01:30 2010 +0000
@@ -185,4 +185,8 @@
     return (char*)m_pNetIf->hwaddr;
 }
 
+const char* EthernetNetIf::getHostname() const {
+    return m_hostname;
+}
+
 #endif
--- a/if/eth/EthernetNetIf.h	Sun Nov 28 00:29:32 2010 +0000
+++ b/if/eth/EthernetNetIf.h	Wed Dec 15 18:01:30 2010 +0000
@@ -84,6 +84,9 @@
   ///Returns an array containing the hardware address
   const char* getHwAddr() const;
   
+    ///Returns a pointer to the hostname set in the constructor
+  const char* getHostname() const;
+  
 private:
   Timer m_ethArpTimer;
   Timer m_dhcpCoarseTimer;