1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

function reordered

This commit is contained in:
Stephan Zeisberg 2010-10-27 21:35:40 +02:00
parent 796544b650
commit e9da187fbc
2 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,7 @@ extern uint8_t ipv6_ext_hdr_len;
/* global buffer*/
uint8_t buffer[BUFFER_SIZE];
extern uint16_t packet_length;
/* ipv6 extension header length */

View File

@ -8,6 +8,7 @@
static uint8_t option_field_length;
uint8_t ipv6_ext_hdr_len = 0;
uint16_t packet_length;
#define IP_BUFFER ((struct ipv6_hdr*)&buffer[LL_HEADER_LENGTH])
#define ICMP_BUFFER ((struct icmpv6_hdr*)&buffer[LLHDR_IPV6HDR_LENGTH])
@ -20,6 +21,8 @@ uint8_t rs_count;
void send_rs(void){
//uint8_t ipv6_ext_hdr_len = 0;
if(rs_count < MAX_RTR_SOLICITATIONS){
packet_length = 0;
ICMP_BUFFER->type = ICMP_ROUTER_SOLICITATION;
ICMP_BUFFER->code = 0;