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". You could download it from http://nongnu.mirror.ironie.org/releases/lwip/ <http://nongnu.mirror.ironie.org/releases/lwip/contrib-1.3.0.zip> contrib-1.3.0.zip <http://nongnu.mirror.ironie.org/releases/lwip/contrib-1.3.0.zip> . 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 : [email protected] Web Site : http://www.hymatom.fr <http://www.hymatom.fr/>
Plan d'accès au siège social <http://maps.google.fr/maps?f=d&hl=fr&geocode=17190092756901062382,43.553785,3.951452&saddr=&daddr=HYMATOM+SA&sll=43.653342,3.958297&sspn=0.023505,0.040169&ie=UTF8&ll=43.653528,3.951623&spn=0.011753,0.020084&t=h&z=16> ==================================== P Avant d'imprimer, penser à l'environnement -----Message d'origine----- De : [email protected] [mailto:[email protected]] 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: [email protected] [mailto:[email protected]] 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
<<image001.jpg>>
<<image002.jpg>>
BEGIN:VCARD VERSION:2.1 N:BERNON;Frédéric;;M. FN:Frédéric BERNON ORG:HYMATOM SA;Recherche et Développement TITLE:Chef de projet informatique TEL;WORK;VOICE:04-67-87-61-10 TEL;WORK;FAX:04-67-70-85-44 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;23;Zone Industrielle=0D=0A175 rue de Massacan;VENDARGUES;;34740;FRANCE; LABEL;WORK;ENCODING=QUOTED-PRINTABLE:23=0D=0AZone Industrielle=0D=0A175 rue de Massacan=0D=0AVENDARGUES 34740=0D= =0AFrance URL;WORK:http://www.hymatom.fr ROLE:Chef de projet informatique EMAIL;PREF;INTERNET:[email protected] REV:20020404T083210Z END:VCARD
_______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
