Bugfix: output function was not called with latest version of tcpip. Identified by Pierre de Vos.

This commit is contained in:
nifi 2009-06-01 15:13:30 +00:00
parent 33909cc2fd
commit 16a9656abd

View File

@ -17,8 +17,17 @@ struct uip_stats uip_stat;
uip_lladdr_t uip_lladdr; uip_lladdr_t uip_lladdr;
u8_t tcpip_output(uip_lladdr_t * lladdr){ return 0; } static u8_t (* output)(uip_lladdr_t *);
void tcpip_set_outputfunc(u8_t (* f)(uip_lladdr_t *)) { return; }
u8_t tcpip_output(uip_lladdr_t * lladdr){
if(output != NULL) {
return output(lladdr);
}
return 0;
}
void tcpip_set_outputfunc(u8_t (* f)(uip_lladdr_t *)) {
output = f;
}
u16_t htons(u16_t val) { return HTONS(val);} u16_t htons(u16_t val) { return HTONS(val);}