mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-19 03:05:14 +00:00
Bugfix: output function was not called with latest version of tcpip. Identified by Pierre de Vos.
This commit is contained in:
parent
33909cc2fd
commit
16a9656abd
@ -17,8 +17,17 @@ struct uip_stats uip_stat;
|
||||
|
||||
uip_lladdr_t uip_lladdr;
|
||||
|
||||
u8_t tcpip_output(uip_lladdr_t * lladdr){ return 0; }
|
||||
void tcpip_set_outputfunc(u8_t (* f)(uip_lladdr_t *)) { return; }
|
||||
static u8_t (* output)(uip_lladdr_t *);
|
||||
|
||||
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);}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user