Set up new directory structure

This commit is contained in:
Martin Lenders 2013-08-05 16:10:54 +02:00 committed by authmillenon
parent 9117bb2b76
commit b944a48da9
43 changed files with 342 additions and 91 deletions

View File

@ -39,4 +39,7 @@ ifneq (,$(findstring sixlowpan,$(USEMODULE)))
ifeq (,$(findstring ieee802154,$(USEMODULE))) ifeq (,$(findstring ieee802154,$(USEMODULE)))
USEMODULE += ieee802154 USEMODULE += ieee802154
endif endif
ifeq (,$(findstring net_help,$(USEMODULE)))
USEMODULE += net_help
endif
endif endif

View File

@ -1,4 +1,4 @@
MODULE:=$(shell basename $(CURDIR)) MODULE:=$(shell basename $(CURDIR))
INCLUDES = -I$(RIOTBASE) -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/net INCLUDES = -I$(RIOTBASE) -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/net/destiny -I$(RIOTBASE)/sys/net/sixlowpan/include -I$(RIOTBASE)/sys/net/net_help/
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base

View File

@ -23,7 +23,7 @@
#include "tcp.h" #include "tcp.h"
#include "udp.h" #include "udp.h"
#include "in.h" #include "in.h"
#include "../sixlowpan/sixlowip.h" #include "ipv6.h"
/* /*
* POSIX compatibility * POSIX compatibility

View File

@ -30,7 +30,7 @@
#include "socket.h" #include "socket.h"
#include "../net_help/net_help.h" #include "../net_help/net_help.h"
#include "../net_help/msg_help.h" #include "../net_help/msg_help.h"
#include "../sixlowpan/sixlowpan.h" #include "sixlowpan.h"
void printTCPHeader(tcp_hdr_t *tcp_header) void printTCPHeader(tcp_hdr_t *tcp_header)
{ {

View File

@ -78,7 +78,7 @@ enum tcp_codes {
#define TCP_STACK_SIZE 1024 #define TCP_STACK_SIZE 1024
#include "../sixlowpan/sixlowip.h" #include "ipv6.h"
typedef struct __attribute__((packed)) tcp_mms_o_t { typedef struct __attribute__((packed)) tcp_mms_o_t {
uint8_t kind; uint8_t kind;

View File

@ -23,7 +23,7 @@
#include "tcp_hc.h" #include "tcp_hc.h"
#include "socket.h" #include "socket.h"
#include "tcp.h" #include "tcp.h"
#include "../sixlowpan/sixlowip.h" #include "ipv6.h"
#include "../net_help/net_help.h" #include "../net_help/net_help.h"
#ifdef TCP_HC #ifdef TCP_HC

View File

@ -9,7 +9,7 @@
#define TCP_HC_H_ #define TCP_HC_H_
#include "tcp.h" #include "tcp.h"
#include "../sixlowpan/sixlowip.h" #include "sixlowpan.h"
#include "socket.h" #include "socket.h"
#ifdef TCP_HC #ifdef TCP_HC

View File

@ -26,8 +26,8 @@
#include "thread.h" #include "thread.h"
#include "destiny.h" #include "destiny.h"
#include "socket.h" #include "socket.h"
#include "net_help/msg_help.h" #include "../net_help/msg_help.h"
#include "../sixlowpan/sixlowpan.h" #include "sixlowpan.h"
void handle_synchro_timeout(socket_internal_t *current_socket) void handle_synchro_timeout(socket_internal_t *current_socket)
{ {

View File

@ -22,8 +22,8 @@
#include "udp.h" #include "udp.h"
#include "msg.h" #include "msg.h"
#include "../sixlowpan/sixlowip.h" #include "ipv6.h"
#include "../sixlowpan/sixlowpan.h" #include "sixlowpan.h"
#include "socket.h" #include "socket.h"
#include "in.h" #include "in.h"
#include "../net_help/net_help.h" #include "../net_help/net_help.h"

View File

@ -29,7 +29,7 @@
#define UDP_STACK_SIZE 512 #define UDP_STACK_SIZE 512
#include "../sixlowpan/sixlowip.h" #include "ipv6.h"
typedef struct __attribute__((packed)) udp_h_t { typedef struct __attribute__((packed)) udp_h_t {
uint16_t src_port; uint16_t src_port;

View File

@ -1,4 +1,4 @@
MODULE:=$(shell basename $(CURDIR)) MODULE:=$(shell basename $(CURDIR))
INCLUDES = -I$(RIOTBASE) -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/core/include INCLUDES = -I$(RIOTBASE) -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/core/include -I$(RIOTBASE)/sys/net/sixlowpan/include
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base

View File

@ -15,7 +15,7 @@
#include <thread.h> #include <thread.h>
#include <transceiver.h> #include <transceiver.h>
#include "sixlowpan/sixlowmac.h" #include "sixlowpan.h"
#include "ieee802154/ieee802154_frame.h" #include "ieee802154/ieee802154_frame.h"
//prototytpes //prototytpes

View File

@ -9,7 +9,7 @@
#ifndef ETX_BEACONING_H_ #ifndef ETX_BEACONING_H_
#define ETX_BEACONING_H_ #define ETX_BEACONING_H_
#include "sys/net/sixlowpan/sixlowip.h" #include "ipv6.h"
//For debugging purposes //For debugging purposes
#define ENABLE_DEBUG (0) #define ENABLE_DEBUG (0)

View File

@ -26,11 +26,8 @@
#include "of_mrhof.h" #include "of_mrhof.h"
#include "trickle.h" #include "trickle.h"
#include "sys/net/sixlowpan/sixlowmac.h" #include "sixlowpan.h"
#include "sys/net/sixlowpan/sixlowip.h" #include "ipv6.h"
#include "sys/net/sixlowpan/sixlowpan.h"
#include "sys/net/sixlowpan/sixlownd.h"
#include "sys/net/sixlowpan/sixlowerror.h"
char rpl_process_buf[RPL_PROCESS_STACKSIZE]; char rpl_process_buf[RPL_PROCESS_STACKSIZE];
/* global variables */ /* global variables */

View File

@ -20,7 +20,7 @@
#include <vtimer.h> #include <vtimer.h>
#include <mutex.h> #include <mutex.h>
#include <transceiver.h> #include <transceiver.h>
#include "sixlowpan/sixlowip.h" #include "ipv6.h"
#include "rpl_dodag.h" #include "rpl_dodag.h"
#define CC1100_RADIO_MODE CC1100_MODE_WOR #define CC1100_RADIO_MODE CC1100_MODE_WOR

View File

@ -16,7 +16,7 @@
*/ */
#include <string.h> #include <string.h>
#include "sixlowpan/sixlowip.h" #include "ipv6.h"
#ifndef RPL_STRUCTS_H_INCLUDED #ifndef RPL_STRUCTS_H_INCLUDED
#define RPL_STRUCTS_H_INCLUDED #define RPL_STRUCTS_H_INCLUDED

View File

@ -1,4 +1,4 @@
MODULE:=$(shell basename $(CURDIR)) MODULE:=$(shell basename $(CURDIR))
INCLUDES = -I$(RIOTBASE) -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/net -I$(RIOTBASE)/cpu/arm_common/include/ INCLUDES = -I$(RIOTBASE) -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/cpu/arm_common/include -I$(RIOTBASE)/sys/net/sixlowpan/include/
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base

View File

@ -27,13 +27,13 @@
#include <board_uart0.h> #include <board_uart0.h>
#include "bordermultiplex.h" #include "bordermultiplex.h"
#include "ieee802154/ieee802154_frame.h"
#include "flowcontrol.h" #include "flowcontrol.h"
#include "sixlowborder.h" #include "border.h"
#include "sixlowip.h" #include "ip.h"
#include "sixlownd.h" #include "icmp.h"
#include "serialnumber.h" #include "serialnumber.h"
#include "sixlowerror.h" #include "error.h"
#include "sys/net/ieee802154/ieee802154_frame.h"
#include "sys/net/net_help/net_help.h" #include "sys/net/net_help/net_help.h"
#define READER_STACK_SIZE 512 #define READER_STACK_SIZE 512

View File

@ -18,14 +18,14 @@
/* 6LoWPAN Border Router header file */ /* 6LoWPAN Border Router header file */
#ifndef SIXLOWBORDER_H #ifndef _SIXLOWPAN_BORDER_H
#define SIXLOWBORDER_H #define _SIXLOWPAN_BORDER_H
#include <stdint.h> #include <stdint.h>
#include <mutex.h> #include <mutex.h>
#include <transceiver.h> #include <transceiver.h>
#include "sixlowip.h" #include "ip.h"
#include "semaphore.h" #include "semaphore.h"
extern ipv6_addr_t abr_addr; extern ipv6_addr_t abr_addr;
@ -39,4 +39,4 @@ uint8_t border_initialize(transceiver_type_t trans, ipv6_addr_t *border_router_a
void border_send_ipv6_over_lowpan(ipv6_hdr_t *packet, uint8_t aro_flag, uint8_t sixco_flag); void border_send_ipv6_over_lowpan(ipv6_hdr_t *packet, uint8_t aro_flag, uint8_t sixco_flag);
void border_process_lowpan(void); void border_process_lowpan(void);
#endif /* SIXLOWBORDER_H*/ #endif /* _SIXLOWPAN_BORDER_H*/

View File

@ -22,10 +22,10 @@
#include <board_uart0.h> #include <board_uart0.h>
#include "flowcontrol.h" #include "flowcontrol.h"
#include "sixlowpan.h" #include "lowpan.h"
#include "sixlownd.h" #include "icmp.h"
#include "sixlowborder.h" #include "border.h"
#include "sixlowerror.h" #include "error.h"
#include "bordermultiplex.h" #include "bordermultiplex.h"

View File

@ -16,13 +16,13 @@
* @} * @}
*/ */
#ifndef BORDERMULTIPLEX_H #ifndef _SIXLOWPAN_BORDERMULTIPLEX_H
#define BORDERMULTIPLEX_H #define _SIXLOWPAN_BORDERMULTIPLEX_H
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include "sixlowip.h" #include "ip.h"
/* packet types of uart-packets */ /* packet types of uart-packets */
#define BORDER_PACKET_RAW_TYPE 0 #define BORDER_PACKET_RAW_TYPE 0
@ -89,4 +89,4 @@ void multiplex_send_addr_over_uart(ipv6_addr_t *addr);
int readpacket(uint8_t *packet_buf, size_t size); int readpacket(uint8_t *packet_buf, size_t size);
int writepacket(uint8_t *packet_buf, size_t size); int writepacket(uint8_t *packet_buf, size_t size);
#endif /* BORDERMULTIPLEX_H*/ #endif /* _SIXLOWPAN_BORDERMULTIPLEX_H*/

View File

@ -1,5 +1,5 @@
#ifndef SIXLOWERROR_H #ifndef _SIXLOWPAN_ERROR_H
#define SIXLOWERROR_H #define _SIXLOWPAN_ERROR_H
#define SUCCESS 0 #define SUCCESS 0
#define SIXLOWERROR_ARRAYFULL 132 // array is full #define SIXLOWERROR_ARRAYFULL 132 // array is full
@ -13,4 +13,4 @@
#define SIXLOWERROR_DCI 140 // destination context not found #define SIXLOWERROR_DCI 140 // destination context not found
#define SIXLOWERROR_CSUM 141 // wrong checksum #define SIXLOWERROR_CSUM 141 // wrong checksum
#endif /* SIXLOWERROR_H*/ #endif /* _SIXLOWPAN_ERROR_H*/

View File

@ -16,15 +16,15 @@
* @} * @}
*/ */
#ifndef FLOWCONTROL_H #ifndef _SIXLOWPAN_FLOWCONTROL_H
#define FLOWCONTROL_H #define _SIXLOWPAN_FLOWCONTROL_H
#include <stdint.h> #include <stdint.h>
#include <vtimer.h> #include <vtimer.h>
#include "semaphore.h" #include "semaphore.h"
#include "sixlowip.h" #include "ip.h"
#include "sixlowborder.h" #include "border.h"
#include "bordermultiplex.h" #include "bordermultiplex.h"
/* packet types for flowcontrol */ /* packet types for flowcontrol */
@ -73,4 +73,4 @@ ipv6_addr_t flowcontrol_init(void);
void flowcontrol_send_over_uart(border_packet_t *packet, int len); void flowcontrol_send_over_uart(border_packet_t *packet, int len);
void flowcontrol_deliver_from_uart(border_packet_t *packet, int len); void flowcontrol_deliver_from_uart(border_packet_t *packet, int len);
#endif /* FLOWCONTROL_H*/ #endif /* _SIXLOWPAN_FLOWCONTROL_H*/

View File

@ -20,11 +20,11 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "sixlowip.h" #include "ip.h"
#include "sixlownd.h" #include "icmp.h"
#include "sixlowmac.h" #include "mac.h"
#include "sixlowpan.h" #include "lowpan.h"
#include "sixlowerror.h" #include "error.h"
#include "serialnumber.h" #include "serialnumber.h"
#include "sys/net/net_help/net_help.h" #include "sys/net/net_help/net_help.h"
#include "vtimer.h" #include "vtimer.h"

View File

@ -17,13 +17,13 @@
* @} * @}
*/ */
#ifndef SIXLOWND_H #ifndef _SIXLOWPAN_ICMP_H
#define SIXLOWND_H #define _SIXLOWPAN_ICMP_H
#include <stdint.h> #include <stdint.h>
#include "vtimer.h" #include "vtimer.h"
#include "sixlowpan.h" #include "lowpan.h"
#include "sixlowip.h" #include "ip.h"
/* parameter problem [rfc4443] */ /* parameter problem [rfc4443] */
#define PARA_PROB_LEN (8) #define PARA_PROB_LEN (8)
@ -282,4 +282,4 @@ void init_nbr_adv(ipv6_addr_t *src, ipv6_addr_t *dst, ipv6_addr_t *tgt,
uint8_t rso, uint8_t sllao, uint8_t aro, uint8_t aro_state); uint8_t rso, uint8_t sllao, uint8_t aro, uint8_t aro_state);
void recv_nbr_adv(void); void recv_nbr_adv(void);
void recv_nbr_sol(void); void recv_nbr_sol(void);
#endif /* SIXLOWND_H*/ #endif /* _SIXLOWPAN_ICMP_H*/

View File

@ -0,0 +1,30 @@
/*
* 6LoWPAN - Wraps all API types, constants and functions of 6LoWPAN in Layer 3.
*
* 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 ipv6.h
* @brief IPv6 and ICMP functions
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @}
*/
#ifndef IPV6_H
#define IPV6_H
#include "sixlowpan/error.h"
#include "sixlowpan/types.h"
#include "sixlowpan/ip.h"
#include "sixlowpan/icmp.h"
#include "sixlowpan/ndp.h"
#include "../error.h" /* TODO: remove if not needed anymore */
#include "../ip.h" /* TODO: remove if not needed anymore */
#include "../icmp.h" /* TODO: remove if not needed anymore */
#endif /* IPV6_H */

View File

@ -0,0 +1,32 @@
/*
* 6LoWPAN - Wraps all API types, constants and functions of 6LoWPAN concerning
* Layers under 3.
*
* 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 sixlowpan.h
* @brief 6lowpan link layer and lowpan functions
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @}
*/
#ifndef SIXLOWPAN_H
#define SIXLOWPAN_H
#include "sixlowpan/error.h"
#include "sixlowpan/types.h"
#include "sixlowpan/borderrouter.h"
#include "sixlowpan/lowpan.h"
#include "sixlowpan/mac.h"
#include "../error.h" /* TODO: remove if not needed anymore */
#include "../border.h" /* TODO: remove if not needed anymore */
#include "../lowpan.h" /* TODO: remove if not needed anymore */
#include "../mac.h" /* TODO: remove if not needed anymore */
#endif /* SIXLOWPAN_H */

View File

@ -0,0 +1,24 @@
/**
* 6LoWPAN constants, data structs, and prototypes for 6LoWPAN border router
*
* 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 sixlowpan/borderrouter.h
* @brief 6LoWPAN borderrouter header
* @author Stephan Zeisberg <zeisberg@mi.fu-berlin.de>
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @author Eric Engel <eric.engel@fu-berlin.de>
* @author Oliver Gesch <oliver.gesch@googlemail.com>
* @}
*/
#ifndef SIXLOWPAN_BORDERROUTER_H
#define SIXLOWPAN_BORDERROUTER_H
#endif /* SIXLOWPAN_BORDERROUTER_H */

View File

@ -0,0 +1,21 @@
/**
* 6LoWPAN error codes
*
* 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 sixlowpan/error.h
* @brief 6LoWPAN error codes
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @}
*/
#ifndef SIXLOWPAN_ERROR_H
#define SIXLOWPAN_ERROR_H
#endif /* SIXLOWPAN_ERROR_H */

View File

@ -0,0 +1,24 @@
/**
* 6LoWPAN constants, data structs, and prototypes related to ICMP
*
* 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 sixlowpan/icmp.h
* @brief 6LoWPAN ICMP related header
* @author Stephan Zeisberg <zeisberg@mi.fu-berlin.de>
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @author Eric Engel <eric.engel@fu-berlin.de>
* @author Oliver Gesch <oliver.gesch@googlemail.com>
* @}
*/
#ifndef SIXLOWPAN_ICMP_H
#define SIXLOWPAN_ICMP_H
#endif /* SIXLOWPAN_ICMP_H */

View File

@ -0,0 +1,24 @@
/**
* 6LoWPAN constants, data structs, and prototypes for network layer
*
* 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 sixlowpan/ip.h
* @brief 6LoWPAN network layer header
* @author Stephan Zeisberg <zeisberg@mi.fu-berlin.de>
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @author Eric Engel <eric.engel@fu-berlin.de>
* @author Oliver Gesch <oliver.gesch@googlemail.com>
* @}
*/
#ifndef SIXLOWPAN_IP_H
#define SIXLOWPAN_IP_H
#endif /* SIXLOWPAN_IP_H */

View File

@ -0,0 +1,24 @@
/**
* 6LoWPAN constants, data structs, and prototypes for 6LoWPAN layer
*
* 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 sixlowpan/lowpan.h
* @brief 6LoWPAN LoWPAN layer header
* @author Stephan Zeisberg <zeisberg@mi.fu-berlin.de>
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @author Eric Engel <eric.engel@fu-berlin.de>
* @author Oliver Gesch <oliver.gesch@googlemail.com>
* @}
*/
#ifndef SIXLOWPAN_LOWPAN_H
#define SIXLOWPAN_LOWPAN_H
#endif /* SIXLOWPAN_LOWPAN_H */

View File

@ -0,0 +1,24 @@
/**
* 6LoWPAN constants, data structs, and prototypes for MAC layer
*
* 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 sixlowpan/mac.h
* @brief 6LoWPAN MAC layer header
* @author Stephan Zeisberg <zeisberg@mi.fu-berlin.de>
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @author Eric Engel <eric.engel@fu-berlin.de>
* @author Oliver Gesch <oliver.gesch@googlemail.com>
* @}
*/
#ifndef SIXLOWPAN_MAC_H
#define SIXLOWPAN_MAC_H
#endif /* SIXLOWPAN_MAC_H */

View File

@ -0,0 +1,24 @@
/**
* 6LoWPAN constants, data structs, and prototypes related to NDP
*
* 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 sixlowpan/ndp.h
* @brief 6LoWPAN NDP related header
* @author Stephan Zeisberg <zeisberg@mi.fu-berlin.de>
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @author Eric Engel <eric.engel@fu-berlin.de>
* @author Oliver Gesch <oliver.gesch@googlemail.com>
* @}
*/
#ifndef SIXLOWPAN_NDP_H
#define SIXLOWPAN_NDP_H
#endif /* SIXLOWPAN_NDP_H */

View File

@ -0,0 +1,24 @@
/**
* 6LoWPAN data types
*
* 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 sixlowpan/types.h
* @brief 6LoWPAN data types
* @author Stephan Zeisberg <zeisberg@mi.fu-berlin.de>
* @author Martin Lenders <mlenders@inf.fu-berlin.de>
* @author Eric Engel <eric.engel@fu-berlin.de>
* @author Oliver Gesch <oliver.gesch@googlemail.com>
* @}
*/
#ifndef SIXLOWPAN_TYPES_H
#define SIXLOWPAN_TYPES_H
#endif /* SIXLOWPAN_TYPES_H */

View File

@ -23,10 +23,10 @@
#include <vtimer.h> #include <vtimer.h>
#include <mutex.h> #include <mutex.h>
#include "msg.h" #include "msg.h"
#include "sixlowip.h" #include "ip.h"
#include "sixlowmac.h" #include "mac.h"
#include "sixlownd.h" #include "icmp.h"
#include "sixlowpan.h" #include "lowpan.h"
#include "sys/net/destiny/in.h" #include "sys/net/destiny/in.h"
#include "sys/net/destiny/socket.h" #include "sys/net/destiny/socket.h"
#include "sys/net/net_help/net_help.h" #include "sys/net/net_help/net_help.h"

View File

@ -20,8 +20,8 @@
/* 6LoWPAN IP header file */ /* 6LoWPAN IP header file */
#ifndef SIXLOWIP_H #ifndef _SIXLOWPAN_IP_H
#define SIXLOWIP_H #define _SIXLOWPAN_IP_H
#include <stdint.h> #include <stdint.h>
#include <timex.h> #include <timex.h>
@ -185,4 +185,4 @@ uint8_t ipv6_next_hdr_unrec(uint8_t next_hdr);
void set_tcp_packet_handler_pid(int pid); void set_tcp_packet_handler_pid(int pid);
void set_udp_packet_handler_pid(int pid); void set_udp_packet_handler_pid(int pid);
void set_rpl_process_pid(int pid); void set_rpl_process_pid(int pid);
#endif /* SIXLOWIP_H*/ #endif /* _SIXLOWPAN_IP_H*/

View File

@ -18,7 +18,7 @@
* @} * @}
*/ */
#include "sixlowip.h" #include "ip.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
@ -31,13 +31,13 @@
#include "mutex.h" #include "mutex.h"
#include "hwtimer.h" #include "hwtimer.h"
#include "msg.h" #include "msg.h"
#include "sixlowmac.h" #include "mac.h"
#include "sixlowpan.h" #include "lowpan.h"
#include "sixlowborder.h" #include "border.h"
#include "sixlowip.h" #include "ip.h"
#include "sixlownd.h" #include "icmp.h"
#include "transceiver.h" #include "transceiver.h"
#include "ieee802154/ieee802154_frame.h" #include "sys/net/ieee802154/ieee802154_frame.h"
#include "sys/net/destiny/in.h" #include "sys/net/destiny/in.h"
#include "sys/net/net_help/net_help.h" #include "sys/net/net_help/net_help.h"

View File

@ -18,8 +18,8 @@
* @} * @}
*/ */
#ifndef SIXLOWPAN_H #ifndef _SIXLOWPAN_LOWPAN_H
#define SIXLOWPAN_H #define _SIXLOWPAN_LOWPAN_H
#define IP_PROCESS_STACKSIZE (3072) #define IP_PROCESS_STACKSIZE (3072)
#define NC_STACKSIZE (512) #define NC_STACKSIZE (512)
@ -58,7 +58,7 @@
#define ICMP_RPL_CONTROL (155) #define ICMP_RPL_CONTROL (155)
#include "transceiver.h" #include "transceiver.h"
#include "sixlowip.h" #include "ip.h"
#include "vtimer.h" #include "vtimer.h"
#include "mutex.h" #include "mutex.h"
@ -143,4 +143,4 @@ void lowpan_ipv6_set_dispatch(uint8_t *data);
void init_reas_bufs(lowpan_reas_buf_t *buf); void init_reas_bufs(lowpan_reas_buf_t *buf);
void printReasBuffers(void); void printReasBuffers(void);
void printFIFOBuffers(void); void printFIFOBuffers(void);
#endif #endif /* _SIXLOWPAN_LOWPAN_H */

View File

@ -24,10 +24,10 @@
#include <string.h> #include <string.h>
#include <inttypes.h> #include <inttypes.h>
#include "sixlowmac.h" #include "mac.h"
#include "sixlowip.h" #include "ip.h"
#include "sixlownd.h" #include "icmp.h"
#include "sixlowpan.h" #include "lowpan.h"
#include <ltc4150.h> #include <ltc4150.h>
#include <hwtimer.h> #include <hwtimer.h>
#include "thread.h" #include "thread.h"
@ -35,8 +35,8 @@
#include "radio/radio.h" #include "radio/radio.h"
#include "transceiver.h" #include "transceiver.h"
#include "vtimer.h" #include "vtimer.h"
#include "ieee802154/ieee802154_frame.h" #include "sys/net/ieee802154/ieee802154_frame.h"
#include "net_help/net_help.h" #include "sys/net/net_help/net_help.h"
#define ENABLE_DEBUG (0) #define ENABLE_DEBUG (0)
#include "debug.h" #include "debug.h"

View File

@ -18,12 +18,12 @@
* @} * @}
*/ */
#ifndef SIXLOWMAC_H #ifndef _SIXLOWPAN_MAC_H
#define SIXLOWMAC_H #define _SIXLOWPAN_MAC_H
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include "sixlowip.h" #include "ip.h"
#include "radio/radio.h" #include "radio/radio.h"
#include <transceiver.h> #include <transceiver.h>
@ -42,4 +42,4 @@ void init_802154_short_addr(ieee_802154_short_t *saddr);
void sixlowmac_init(transceiver_type_t type); void sixlowmac_init(transceiver_type_t type);
ieee_802154_long_t *mac_get_eui(ipv6_addr_t *ipaddr); ieee_802154_long_t *mac_get_eui(ipv6_addr_t *ipaddr);
#endif /* SIXLOWMAC_H*/ #endif /* _SIXLOWPAN_MAC_H*/

View File

@ -16,8 +16,8 @@
* @} * @}
*/ */
#ifndef SEMAPHORE_H #ifndef _SIXLOWPAN_SEMAPHORE_H
#define SEMAPHORE_H #define _SIXLOWPAN_SEMAPHORE_H
#include <stdint.h> #include <stdint.h>
#include <mutex.h> #include <mutex.h>
@ -32,4 +32,4 @@ void sem_init(sem_t *sem, int8_t value);
int sem_wait(sem_t *sem); int sem_wait(sem_t *sem);
int sem_signal(sem_t *sem); int sem_signal(sem_t *sem);
#endif /* SEMAPHORE_H*/ #endif /* _SIXLOWPAN_SEMAPHORE_H*/

View File

@ -2,8 +2,8 @@
* Header file for serial number arithmetics [RFC1982] * Header file for serial number arithmetics [RFC1982]
*/ */
#ifndef SERIALNUMBER_H #ifndef _SIXLOWPAN_SERIALNUMBER_H
#define SERIALNUMBER_H #define _SIXLOWPAN_SERIALNUMBER_H
#include <stdint.h> #include <stdint.h>
typedef enum serial_comp_res_t { typedef enum serial_comp_res_t {
@ -79,4 +79,4 @@ serial_comp_res_t serial_comp16(uint16_t s1, uint16_t s2);
**/ **/
serial_comp_res_t serial_comp32(uint32_t s1, uint32_t s2); serial_comp_res_t serial_comp32(uint32_t s1, uint32_t s2);
#endif /* SERIALNUMBER_H*/ #endif /* _SIXLOWPAN_SERIALNUMBER_H*/