[En-Nut-Discussion] UdpGetError() is only conditionally defined
Philipp Burch
phip at hb9etc.ch
Mon Feb 4 20:17:22 CET 2013
Hi all,
just found this in sys/socket.h:
#ifdef NUT_UDP_ICMP_SUPPORT
extern int NutUdpSetSocketError(UDPSOCKET * sock, uint32_t remote_addr,
uint16_t remote_port, uint16_t error);
extern int NutUdpError(UDPSOCKET * sock, uint32_t * addr, uint16_t * port);
#endif
Why is there an #ifdef with ICMP for these basic functions? It is not
present in the source, so the functions will always be compiled anyway.
Additionally, the doc still says "Todo: There is no similar call like
NutTcpError() available for UDP."
Is something wrong with these functions or is this only a relict?
Thanks,
Philipp
More information about the En-Nut-Discussion
mailing list