lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] tcp_connection (no SYN packet on server side)


From: Sergio R. Caprile
Subject: Re: [lwip-users] tcp_connection (no SYN packet on server side)
Date: Mon, 4 Jun 2018 13:18:41 -0300
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

OK, so it seems you are correctly calling lwIP in the loop, and your
networking parameters look good.
However, I failed to ask how do you setup your netif. You don't tell.
You should do something like this before actually calling tcp_connect():

  IP4_ADDR(&gw, 192,168,100,1);
  IP4_ADDR(&ipaddr, 192,168,100,250);
  IP4_ADDR(&netmask, 255,255,255,0);

  lwip_init();
  netif_add(&netif, &ipaddr, &netmask, &gw, perhaps NULL,
ethernetif_init, ethernet_input);
  netif_set_default(&netif);

Where your ethernetif_init() will properly init stuff...
        netif->output = etharp_output;
        netif->linkoutput = ethernetif_linkoutput;//driveroutputfunction

Can you fire a breakpoint at your ethernetif_output() and
ethernetif_linkoutput?



reply via email to

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