So is mine, I have 7 builds which hopefully will have LWIP included??

Each build is its own product needed a build so in my build system there is a 
-DBOX_NAME which is then passed to the DHCP server so I get the correct name.

Bu change it whatever way you all think is best, I will work around this.
joolz

-----Original Message-----
From: Roger Cover [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2007 15:11
To: Mailing list for lwIP users
Subject: RE: RE : [lwip-users] DHCP Modifications

Greetings,

I would like to propose that the hostname not be a compile-time constant. I am 
developing a system that will be distributed in a product. Every instance of my 
product will have a different hostname. It would be inconvenient to have to 
recompile my application for each item shipped.

Perhaps if the new field in the netif structure was NULL it could indicate no 
hostname. A valid string could indicate the hostname to use.

Regards,
Roger W. Cover
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frédéric BERNON
Sent: Friday, March 23, 2007 7:29 AM
To: Mailing list for lwIP users
Subject: RE : [lwip-users] DHCP Modifications

I test it, and it's work. Just I donc think that using a hardcoded 
string/length is good (DHCP register the name, and DNS is update by DHCP). 
Perhaps it will be better to extend dhcp or netif struct with one field 
(hostname) if a LWIP_DHCP_HOSTNAME is defined (it will be set to 1 to say this 
field is enable).

I propose netif, because I think that snmp_set_sysname can/have to use it. 
Perhaps LWIP_HOSTNAME will be a better name?
  
====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : [EMAIL PROTECTED]
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Joolz [RSD] 
Envoyé : vendredi 23 mars 2007 14:45 À : Mailing list for lwIP users Objet : 
[lwip-users] DHCP Modifications


This adds in a system of allowing the user to set the HOSTNAME for DHCP

Add into you options
#define LWIP_DHCP_HOSTNAME          "IP500"
#define LWIP_DHCP_HOSTNAME_LENGTH   5

If you do not need this then set LWIP_DHCP_HOSTNAME_LENGTH to 0 or just leave 
it out.

Best Regards

Julian Gardner

Director / Software Development Manager
RSD Communications Ltd
Unit 2, 8 Borrowmeadow Road
Stirling Scotland FK7 7UW

Tel    +44 [0]1786 450572 Ext 238
Fax    +44 [0]1786 450572
Mob    +44 [0]7836 240907

WWW    http://www.rsdtv.com
EMAIL  [EMAIL PROTECTED]

==========================================

Please do not send me any email messages in HTML format or it may be deleted at 
our mail server without notice to sender or recipient. Message contents should 
be considered as confidential regardless of the contents.

 


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users




_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to