[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: RE : [lwip-users] DHCP Modifications
From: |
Roger Cover |
Subject: |
RE: RE : [lwip-users] DHCP Modifications |
Date: |
Fri, 23 Mar 2007 08:11:20 -0700 |
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: address@hidden [mailto:address@hidden 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 : address@hidden
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement
-----Message d'origine-----
De : address@hidden [mailto:address@hidden 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 address@hidden
==========================================
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.