lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Upgrading to 2.0.3 from 1.4.1 can't establish tcp connectio


From: Andrew Foss
Subject: [lwip-users] Upgrading to 2.0.3 from 1.4.1 can't establish tcp connection using raw
Date: Sun, 8 Jul 2018 13:18:36 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

lwip folks,

I've been using version 1.4.1 happily for a while, decided to try 2.0.3 in hopes of doing more ipv6.

I use it pretty simply raw api, event driven with libevent.

Here's what I am scratching my head on, any suggestions would be greatly appreciated.

SYN packet arrives and lwip send SYN/ACK

ACK packet arrives and lwip resets the connection, because the ack number which looks correct to me fails TCP_SEQ_BETWEEN because the ackno is pcb->snd_nxt + 1

tcp_in.c:709

  case SYN_RCVD:
    if (flags & TCP_ACK) {
      /* expected ACK number? */
      if (TCP_SEQ_BETWEEN(ackno, pcb->lastack+1, pcb->snd_nxt)) {

This area of the code, just hasn't changed much since 1.4.1







reply via email to

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