Till,

About DHCP, just look at one of my previous mails, i found a bug in dhcp
example where some PT_WAIT_UNTIL needs to be changed to PT_YIELD_UNTIL,
full explanation in that mail (subject: DHCP Error รง)

Regards,
Pablo

-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre
de Till Harbaum (Lists)
Enviado el: Lunes, 18 de Septiembre de 2006 06:10 p.m.
Para: uip-users@sics.se
Asunto: [uip-users] spi2cf project

Hi,

i am currently using uip in a WLAN/AVR project. In that progress i am
porting UIP 1.0 to the AVR cpu. Porting code like this to the avr mostly
consists of adding support for storing data in flash memory and directly
accessing it there. The demo application (the webserver) is now working
via my 
local WLAN using a standard compact flash wlan card interfaced via a
cpld for 
fast data transfers.

I have encountered a tiny problem with the next_scriptstate() function
which imho malfunctions if it scans past the end of the file. The
following
version works fine:

static void
next_scriptstate(struct httpd_state *s)
{
  char *p;

  if((p = strchr(s->scriptptr, ISO_nl)) != NULL) {
    p += 1;
    s->scriptlen -= (unsigned short)(p - s->scriptptr);
    s->scriptptr = p;
  } else
    s->scriptlen = 0;
}

But i have some trouble getting the dhcpc working with the webserver.
The
data transfer on the net looks fine, i see the device asking for an
offer, 
getting one, then the device requesting the data which then is being
acked.
But the final address isn't set and the dhcpc code instead gets into an 
endless loop. Furthermore some small debugging looked strange and it
seems the dhcpc code should be acking that it read some udp data
which it isn't and which causes the thing to loop forever ... or so ...

Is the dhcpc code in uip 1.0 tested? Together with the webserver? Is
there more to do than enabling dhcp in the Makefile and uip-conf.h
and enabling udp and the dhcp hooks in main.c?

Regards,
  Till

-- 
Dr.Ing. Till Harbaum <[EMAIL PROTECTED]>
http://www.harbaum.org/till


------------------------------------------------------------------------------
deArriba me paga por navegar. Vos tambien podes ganar $$$ navegando. Entra a 
www.dearriba.com.


Reply via email to