lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20779] Keep-Alive and SYNs


From: Frédéric Bernon
Subject: [lwip-devel] [bug #20779] Keep-Alive and SYNs
Date: Tue, 14 Aug 2007 12:06:22 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

Follow-up Comment #3, bug #20779 (project lwip):

If the problem is due to tcp_process's lines you give, I think the the filter
should be done in tcp_input to avoid to "tcp_process" the old pcb. Perhaps do
something like:

if ((flags & TCP_SYN) && (pcb->state != LISTEN)) {
  /* drop SYN packets on non-LISTEN pcb */
  TCP_STATS_INC(tcp.chkerr);
  TCP_STATS_INC(tcp.drop);
  snmp_inc_tcpinerrs();
  pbuf_free(p);
  return;
}

I see that in tcp_in.c, in tcp_input(), lines ~260 (of last cvs head file).

But perhaps a better solution will be to abord the "old" connection? I don't
know if there is any RFC requirements on that point...

Other point, it seems that we should add some "snmp_inc_tcpinerrs();" after
each "TCP_STATS_INC(tcp.drop);", and "TCP_STATS_INC(tcp.drop);" in the "/*
Don't even process incoming broadcasts/multicasts. */" part...


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?20779>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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