Updates IP64 Fallback Interfaces to return ints

This commit is contained in:
Valentin Sawadski 2015-09-23 09:20:31 +02:00
parent 76e293c289
commit 056f58ae1e
2 changed files with 5 additions and 3 deletions

View file

@ -84,7 +84,7 @@ init(void)
printf("ip64-eth-interface: init\n"); printf("ip64-eth-interface: init\n");
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void static int
output(void) output(void)
{ {
int len, ret; int len, ret;
@ -114,7 +114,7 @@ output(void)
printf("Create request\n"); printf("Create request\n");
len = ip64_arp_create_arp_request(ip64_packet_buffer, len = ip64_arp_create_arp_request(ip64_packet_buffer,
&ip64_packet_buffer[sizeof(struct ip64_eth_hdr)]); &ip64_packet_buffer[sizeof(struct ip64_eth_hdr)]);
IP64_ETH_DRIVER.output(ip64_packet_buffer, len); return IP64_ETH_DRIVER.output(ip64_packet_buffer, len);
} }
} }
} }

View file

@ -115,7 +115,7 @@ init(void)
slip_set_input_callback(input_callback); slip_set_input_callback(input_callback);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void static int
output(void) output(void)
{ {
int len; int len;
@ -138,8 +138,10 @@ output(void)
memcpy(&uip_buf[UIP_LLH_LEN], ip64_packet_buffer, len); memcpy(&uip_buf[UIP_LLH_LEN], ip64_packet_buffer, len);
uip_len = len; uip_len = len;
slip_send(); slip_send();
return len;
} }
} }
return 0;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
const struct uip_fallback_interface ip64_slip_interface = { const struct uip_fallback_interface ip64_slip_interface = {