AW: [En-Nut-Discussion] Telnet problem

Ernst Stippl ernst at stippl.org
Thu Jul 14 21:15:51 CEST 2005


Hi Karl-Heinz!

The TCPS source has 2 commented lines:

            /* If not in a local network, we must also call 
               NutIpRouteAdd() to configure the routing. */

I added into my source:

int i;
u_long ip_gate = inet_addr ("add_your_gateway IP addr here:
xxx.xxx.xxx.xxx");
if (( i = NutIpRouteAdd (0, 0, ip_gate, &DEV_ETHER)) != 0) {
   printf ("NutIpRouteAdd Fehler %d\n", i);
	} 


That helped me.

regards
ernst

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von
Karl-Heinz.Lechner at dornier-consulting.com
Gesendet: Mittwoch, 13. Juli 2005 17:22
An: en-nut-discussion at egnite.de
Betreff: [En-Nut-Discussion] Telnet problem

Hi,

I'm not right familiar with network issues. But I want to use the ethernut
board to control the ports via ethernet. So I created a sample directory to
test the sample 'tcps'. After compiling, the board gets an IP-adress from
our DHCP server. When I ping the board, I get a response. But it is not
possible for me to open a telnet session.
The application hangs on the second line:

            printf("Waiting for a telnet client...");
            if (NutTcpAccept(sock, socket) == 0) {
            puts("connected");

Is it necessary to do some tasks in the configurator?

What is wrong?


Thanks in advance for your help.


Kind Regards

     Karl-Heinz



Karl-Heinz Lechner
Geschäftsbereich Automotive

Dornier Consulting GmbH
Kolumbusstraße 27
71063 Sindelfingen
Germany 

Tel.: 0 70 31/4 10 06-213
Fax.: 0 70 31/4 10 06-1 00
Karl-Heinz.Lechner at dornier-consulting.com
www.dornier-consulting.com

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion






More information about the En-Nut-Discussion mailing list