lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] Any interest in netif get/set hostname?


From: Jonathan Larmour
Subject: Re: [lwip-devel] Any interest in netif get/set hostname?
Date: Thu, 10 Apr 2008 23:13:21 +0100
User-agent: Mozilla Thunderbird 1.0.8-1.1.fc3.4.legacy (X11/20060515)

Bill Auerbach wrote:

Is there any interest in a patch to netif.c, if LWIP_NETIF_HOSTNAME is defined to 1 to add netif_get_hostname and netif_set_hostname.

Different hostnames for different netifs? That's not normally the way POSIX-y systems work. Usually there's a single global hostname instead. I'm not saying it's necessarily wrong or bad, just unusual.

I use the hostname dynamically to give the user the ability to put some meaning on the device attached to their network. In my case, there could be several devices and the user can indicate which equipment it’s attached to or what room the device is in.

I presume you have implemented something in the DHCP client that causes this hostname to be passed in the DHCP request, and if the DHCP server supports it, that will become the DNS name. That would be nice.

If the hostname does change and DHCP is used, what is the recommended way to have the new hostname take effect?

You shouldn't do anything. Whoever changes the hostname should decide whether to do anything.

Jifl
--
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------      Opinions==mine




reply via email to

[Prev in Thread] Current Thread [Next in Thread]