Hi!

I'm working on a APIPA module and got some problems:

I have a apipa.c and a apipa.h in the core directory. apipa.h is
included by etharp.c (cause of "hook" at incoming arp packets), netif.h
(apipa struct in netif like dhcp) and in apipa.c.

I declared the function
 
void apipa_arp_reply(struct netif *netif, struct etharp_hdr *hdr);
 
in apipa.h and implemented it in apipa.c and calling it in etharp.c
(atharp_arp_input()):
 

#if (LWIP_APIPA)
apipa_arp_reply(netif, hdr);
#endif

I must include arch/etharp.h in apipa.h that i get no error, when i do
it i get following warnings:

 
Severity and Description Path Resource Location Creation Time Id
warning: 'struct etharp_hdr' declared inside parameter list
FreeRTOS_02/lwip/include/lwip apipa.h line 98 1179817999628 8037

Severity and Description Path Resource Location Creation Time Id
warning: its scope is only this definition or declaration, which is
probably not what you want FreeRTOS_02/lwip/include/lwip apipa.h line 98
1179817999628 8038
 
Severity and Description Path Resource Location Creation Time Id
warning: passing argument 2 of 'apipa_arp_reply' from incompatible
pointer type FreeRTOS_02/lwip/arch etharp.c line 633 1179817999639 8040

What could cause that problem?
 
Regards,
 
Dominik
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to