Quoting Samuel Engelmajer <[EMAIL PROTECTED]>:
I'm using uip on a Blackfin Analog Device.
I had a problem while trying to connect to a tcp remote host.
uip_buf was not filled with tcp SYN data after calling uip_periodic_con().

In uip.c line 740 you can find:
********************************
if(uip_outstanding(uip_connr)) {
   if(uip_connr->timer --== 0) {
********************************
Initialy 'timer' equals 1, but it never goes into the 2nd if!

Should be replaced with:
********************************
if(uip_outstanding(uip_connr)) {
        uip_connr->timer = uip_connr->timer-1 ;
        if(uip_connr->timer== 0) {
********************************
which works.

Maybe can help some of you.


I just call uip_periodic() twice before the main-loop to get things started without delay.
Which means: I can confirm this minor bug for active TCP connections.


Olaf


Reply via email to