1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/sys/net/sixlowpan/sixlowmac.c
Stephan Zeisberg 5ab4ca3768 renamed defines
2010-11-09 22:20:26 +01:00

18 lines
461 B
C

/* 6LoWPAN MAC - layer 2 implementations */
#include "sixlowmac.h"
#include "sixlownd.h"
#include "drivers/cc110x/cc1100.h"
#include "radio/radio.h"
#define ipv6_buf ((struct ipv6_hdr*)&buffer[LL_HDR_LEN])
/* TODO: payload pointer, payload length */
void send(void){
RADIO.send(get_radio_address(get_eui(&ipv6_buf->destaddr)),NULL,NULL,NULL,NULL);
}
uint16_t get_radio_address(link_layer_addr *lla){
return ((lla->uint8[6] << 8) + lla->uint8[7]);
}