lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] too few arguments to function `netif_add'


From: Pepe Prisas
Subject: [lwip-users] too few arguments to function `netif_add'
Date: Wed, 30 Mar 2005 17:36:33 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Hi folks,

I am using EDK 6.3 SP2 and trying to compile a project that uses lwip v2.00.a.with microblaze processor.
I am getting errors with the netif_add function.
The part of the code to our interest is like follows::



................................................
extern XEmacIf_Config XEmacIf_ConfigTable[]; // defined in xemacif_g.c
.................................................
.................................................
char ip[4] = {213,196,25,106};
char subnet[4] = {255,255,255,0};
char gateway[4] = {213,196,25,254};
...................................................
...................................................
IP4_ADDR(&gw, gateway[0],gateway[1],gateway[2],gateway[3]);
IP4_ADDR(&ipaddr, ip[0],ip[1],ip[2],ip[3]);
IP4_ADDR(&netmask,subnet[0],subnet[1],subnet[2],subnet[3]);
....................................................
....................................................
default_netif = netif_add(&ipaddr,&netmask,&gw,&XEmacIf_ConfigTable[0],xemacif_init,ip_input);
.....................................................
.....................................................

I have the following errors when trying to compile the project

code/main.c: In function `main_main':
code/main.c:269: warning: passing arg 1 of `netif_add' from incompatible pointer type code/main.c:269: warning: passing arg 4 of `netif_add' from incompatible pointer type code/main.c:269: warning: passing arg 6 of `netif_add' from incompatible pointer type
code/main.c:269: too few arguments to function `netif_add'
make: *** [test/executable.elf] Error 1
Done.


This project used to work perfectly when using EDK with lwip v1.00.a.
Has the function 'netif_add' changed in version 2 ?
Does anyone know what could be going wrong ?

Thanks a lot,

Adrian.





reply via email to

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