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.h

29 lines
558 B
C
Raw Normal View History

/* 6LoWPAN MAC header file */
2010-10-17 16:04:03 +02:00
#ifndef SIXLOWMAC_H
#define SIXLOWMAC_H
#include "sixlowip.h"
#include <stdio.h>
#include <stdint.h>
#define MSBA2_OUI 0x005BA2 // 24bit OUI
2010-10-17 16:04:03 +02:00
#define R8BIT 0xA2 // random 8bit
#ifdef MSBA2_SENSOR_NODE
#define OUI 0x005BA2
#else
#define OUI 0x0
#endif
void create_link_local_prefix(ipv6_addr *ipaddr);
void create_all_routers_mcast_addr(ipv6_addr *ipaddr);
void set_eui64(ipv6_addr *ipaddr);
void get_link_layer_addr_from_ipaddr(ipv6_addr *ipaddr, link_layer_addr *lla);
void boot_6ln(void);
#endif