lwip-users
[Top][All Lists]
Advanced

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

Re: RE : [lwip-users] netif hostname not active


From: Emmanuel Baguia Jr.
Subject: Re: RE : [lwip-users] netif hostname not active
Date: Tue, 28 Apr 2009 03:42:46 -0700 (PDT)

Hello,

Sorry, I did not exactly get your point. What I really wanted to have is to create a gethostname() functionality. What I thought is to enable and activate a hostname for the ethernet interface.

I was able to check the things you mentioned below but somehow got puzzled to what you meant. Im sorry, not quite familiar with lwIP functionality yet.

Thanks

--- On Tue, 4/28/09, Frédéric BERNON <address@hidden> wrote:

From: Frédéric BERNON <address@hidden>
Subject: RE : [lwip-users] netif hostname not active
To: "Mailing list for lwIP users" <address@hidden>
Date: Tuesday, April 28, 2009, 5:55 PM

The "netif::hostname" field can be used for DHCP negociation to automaticly register your device name in a DNS (associated to DHCP).
 
If you want to be able to ping your lwip device without a such DHCP/DNS on your network, use the "contrib/apps/netbios sample".
 
 
The win32 port show how to use it. You just need to set "#define LWIP_NETBIOS_APP 1" in your lwipcfg_msvc.h file.
 
 
====================================
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@hiddenr
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 bonny gijzen
Envoyé : mardi 28 avril 2009 11:29
À : Mailing list for lwIP users
Objet : RE: [lwip-users] netif hostname not active

You need to have some SMB code.
An example was posted already, check through the archives.
 

Bonny,


Van: address@hidden [mailto:address@hidden Namens Emmanuel Baguia Jr.
Verzonden: dinsdag 28 april 2009 11:10
Aan: lwIP
Onderwerp: [lwip-users] netif hostname not active

Hello,

Good day.

I have an issue using the hostname to resolve netif.

When i tried to initialize a hostname for the interface, i did it like this in the ethernet interface init function:

#if LWIP_NETIF_HOSTNAME
  /* Initialize interface hostname */
  netif->hostname = "lwip";
#endif /* LWIP_NETIF_HOSTNAME */

From the lwip/opt.h I enabled LWIP_NETIF_HOSTNAME.

After having a call back funcion for the ethernet interface init, i printed out the status and i got the actual hostname "lwip". Then after initializing everything, I tried to ping the network resource using the hostname "lwip", but it was not successful. What do I need to do for the hostname to be activated? Please advise.

Thanks,
Emmanuel


-----Inline Attachment Follows-----

_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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