[uip-users] app registration add in

3 views
Skip to first unread message

Berg, RR van den

unread,
Feb 27, 2007, 5:14:30 AM2/27/07
to uip-...@sics.se
Hello,

I have a problem with the app registration add-on. I have the following code:

-------------------------------------------------------------------------------------------------------

clock_init();
ax88796Init();
/* uip initialization */
uip_init(); // initialize the uip stack
uip_arp_init(); // must be called before any arp function is called

dhcpc_init(&uip_ethaddr.addr, 6); // initialize DHCP
DHCP_succes = 0;
httpd_init(); // initialize webserver

uip_app_list_init(); // initialize multiple uip applications
error_code = uip_app_register(httpd_appcall, REG_TCP, 80, REG_PASSIVE);
error_code1 = uip_app_register(dhcpc_appcall, REG_UDP, 67, REG_ACTIVE);

-------------------------------------------------------------------------------------------------------

After this, I start the uIP main loop. I use an atmega128 with an asix ax88796 ethernet controller. I use the AVR port SPI2CF of Till Harbaum.

Without the app registration add-on everything works fine. The PCB gets an IP with DHCP and I can open the webserver. I implemented the app registration and both DHCP and the webserver don't work. I have the following settings for app registration:

#define UIP_APP_LIST_SIZE 2

#define UIP_APPSTATE_SIZE sizeof(httpd_state)

Does anyone know what's wrong?

Thanks,

Robin


Reply all
Reply to author
Forward
0 new messages