2013-06-22 05:11:53 +02:00
|
|
|
/**
|
|
|
|
* 6lowpan border router prototypes
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 INRIA.
|
|
|
|
*
|
|
|
|
* This file subject to the terms and conditions of the GNU Lesser General
|
|
|
|
* Public License. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
|
|
|
*
|
|
|
|
* @ingroup sixlowpan
|
|
|
|
* @{
|
|
|
|
* @file sixlowborder.h
|
|
|
|
* @brief header for 6lowpan border router
|
|
|
|
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
|
|
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2011-07-23 22:17:52 +02:00
|
|
|
/* 6LoWPAN Border Router header file */
|
2011-06-22 21:09:06 +02:00
|
|
|
|
2013-08-05 16:10:54 +02:00
|
|
|
#ifndef _SIXLOWPAN_BORDER_H
|
|
|
|
#define _SIXLOWPAN_BORDER_H
|
2011-06-22 21:09:06 +02:00
|
|
|
|
|
|
|
#include <stdint.h>
|
2011-07-05 04:24:13 +02:00
|
|
|
#include <mutex.h>
|
2011-07-26 10:31:57 +02:00
|
|
|
#include <transceiver.h>
|
|
|
|
|
2013-08-05 16:10:54 +02:00
|
|
|
#include "ip.h"
|
2011-07-11 18:26:12 +02:00
|
|
|
#include "semaphore.h"
|
|
|
|
|
2011-07-27 02:12:30 +02:00
|
|
|
extern ipv6_addr_t abr_addr;
|
|
|
|
|
2013-06-10 17:36:56 +02:00
|
|
|
uint16_t border_get_serial_reader(void);
|
2011-07-23 22:17:52 +02:00
|
|
|
|
2011-07-26 01:59:34 +02:00
|
|
|
uint8_t *get_serial_out_buffer(int offset);
|
|
|
|
uint8_t *get_serial_in_buffer(int offset);
|
|
|
|
|
2013-06-22 05:11:53 +02:00
|
|
|
uint8_t border_initialize(transceiver_type_t trans, ipv6_addr_t *border_router_addr);
|
2013-06-24 14:11:30 +02:00
|
|
|
void border_send_ipv6_over_lowpan(ipv6_hdr_t *packet, uint8_t aro_flag, uint8_t sixco_flag);
|
2011-07-23 22:17:52 +02:00
|
|
|
void border_process_lowpan(void);
|
2011-06-22 21:09:06 +02:00
|
|
|
|
2013-08-05 16:10:54 +02:00
|
|
|
#endif /* _SIXLOWPAN_BORDER_H*/
|