Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f4d64a2
pkt: Initial import
miri64 Dec 5, 2014
a4c209d
[SQUASH ME] address comments and fix some bugs
miri64 Dec 8, 2014
d9bbbfb
[SQUASH ME] pkt: more
miri64 Dec 8, 2014
0961cc8
tests, pkt: add unittests for pkt
miri64 Dec 8, 2014
b77344a
[SQUASH ME] pkt: make header list pktbuf compatible single-linked list
miri64 Dec 9, 2014
6d3b297
[SQUASH ME] pkt: some fixes
miri64 Dec 10, 2014
8f33710
[SQUASH ME] tests: adapt unittests for previous changes
miri64 Dec 10, 2014
4c80be9
[SQUASH ME] tests: add new tests for pkt module
miri64 Dec 10, 2014
6351da6
[SQUASH ME] pkt: fix doc
miri64 Dec 10, 2014
7c8a9c8
[SQUASH ME] some more fixes
miri64 Dec 14, 2014
0c62935
[SQUASH ME] pkt: rename payload member
miri64 Jan 12, 2015
f5dc750
[SQUASH ME] pkt: addressed comments
miri64 Jan 13, 2015
1d51f12
[SQUASH ME] tests: adapt tests
miri64 Jan 13, 2015
033517e
pktbuf: port to use pkt_t instead of void*
miri64 Dec 11, 2014
97ec2de
[SQUASH ME] adapt for changes in pkt_t
miri64 Jan 13, 2015
216d580
netapi: adapt to pkt_t
miri64 Jan 12, 2015
f6bceaa
sixlowpan: rename to sixlowpan_legacy
miri64 Nov 7, 2014
4b8423f
ipv6: Initial import of preliminary refactored IPv6 header
miri64 Nov 7, 2014
468a0d4
sixlowpan: refactor 6LoWPAN fragmentation for netapi
miri64 Nov 7, 2014
37a8c74
sixlowpan.iphc_cbuf: Initial import of an IPHC context buffer
miri64 Oct 8, 2014
0c7e3ec
sixlowpan: Initial import of refactored IPHC
miri64 Oct 9, 2014
6d3805c
Merge branch 'pktbuf/api/use-pkt' into 6lowpan-fix-major
miri64 Jan 13, 2015
63fa4e1
Merge branch 'netapi/api/use-pkt_t' into 6lowpan-fix-major
miri64 Jan 13, 2015
8cd07b0
[SQUASH ME] tests.sixlowpan: fix some type errors
miri64 Jan 13, 2015
d253c63
[SQUASH ME] WIP: adapt to netapi change
miri64 Jan 13, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 30 additions & 6 deletions Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,50 @@ ifneq (,$(filter tcp,$(USEMODULE)))
endif

ifneq (,$(filter socket_base,$(USEMODULE)))
USEMODULE += sixlowpan
USEMODULE += sixlowpan_legacy
USEMODULE += net_help
USEMODULE += vtimer
endif

ifneq (,$(filter sixlowborder,$(USEMODULE)))
USEMODULE += sixlowpan
ifneq (,$(filter sixlowborder_legacy,$(USEMODULE)))
USEMODULE += sixlowpan_legacy
endif

ifneq (,$(filter rpl,$(USEMODULE)))
USEMODULE += routing
endif

ifneq (,$(filter routing,$(USEMODULE)))
USEMODULE += sixlowpan
USEMODULE += sixlowpan_legacy
endif

ifneq (,$(filter sixlowpan,$(USEMODULE)))
ifneq (,$(filter sixlowpan_legacy,$(USEMODULE)))
USEMODULE += ieee802154
USEMODULE += net_help
USEMODULE += net_if
USEMODULE += posix
USEMODULE += vtimer
endif

ifneq (,$(filter sixlowpan_hc,$(USEMODULE)))
USEMODULE += sixlowpan
USEMODULE += sixlowpan_iphc_cbuf
endif

ifneq (,$(filter sixlowpan_iphc_cbuf,$(USEMODULE)))
USEMODULE += vtimer
endif

ifneq (,$(filter sixlowpan,$(USEMODULE)))
USEMODULE += netapi
USEMODULE += netdev_base
USEMODULE += pktbuf
USEMODULE += vtimer
endif

ifneq (,$(filter aodvv2,$(USEMODULE)))
USEMODULE += vtimer
USEMODULE += sixlowpan
USEMODULE += sixlowpan_legacy
USEMODULE += oonf_common
USEMODULE += oonf_rfc5444
endif
Expand Down Expand Up @@ -108,10 +124,18 @@ ifneq (,$(filter ccn_lite,$(USEMODULE)))
USEMODULE += crypto
endif

ifneq (,$(filter netapi,$(USEMODULE)))
USEMODULE += pkt
endif

ifneq (,$(filter netdev_802154,$(USEMODULE)))
USEMODULE += netdev_base
endif

ifneq (,$(filter pktbuf,$(USEMODULE)))
USEMODULE += pkt
endif

ifneq (,$(filter rgbled,$(USEMODULE)))
USEMODULE += color
endif
Expand Down
2 changes: 1 addition & 1 deletion cpu/native/include/nativenet.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
extern "C" {
#endif

#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY
#define NATIVE_MAX_DATA_LENGTH (127)
#else
#define NATIVE_MAX_DATA_LENGTH (TAP_MAX_DATA)
Expand Down
6 changes: 3 additions & 3 deletions examples/rpl_udp/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include "msg.h"
#include "sixlowpan/ip.h"
#include "sixlowpan_legacy/ip.h"
#include "transceiver.h"
#include "ieee802154_frame.h"
#include "rpl/rpl_structs.h"
Expand Down Expand Up @@ -63,7 +63,7 @@ void *rpl_udp_monitor(void *arg)

msg_t m;
radio_packet_t *p;
ipv6_hdr_t *ipv6_buf;
ipv6_legacy_hdr_t *ipv6_buf;
uint8_t icmp_type, icmp_code;
icmpv6_hdr_t *icmpv6_buf = NULL;

Expand All @@ -90,7 +90,7 @@ void *rpl_udp_monitor(void *arg)
DEBUG("\n");
}
else if (m.type == IPV6_PACKET_RECEIVED) {
ipv6_buf = (ipv6_hdr_t *) m.content.ptr;
ipv6_legacy_buf = (ipv6_hdr_t *) m.content.ptr;
printf("IPv6 datagram received (next header: %02X)", ipv6_buf->nextheader);
printf(" from %s ", ipv6_addr_to_str(addr_str, IPV6_MAX_ADDR_STR_LEN,
&ipv6_buf->srcaddr));
Expand Down
20 changes: 10 additions & 10 deletions examples/rpl_udp/rpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "vtimer.h"
#include "thread.h"
#include "net_if.h"
#include "sixlowpan.h"
#include "sixlowpan_legacy.h"
#include "udp.h"
#include "rpl.h"
#include "rpl/rpl_dodag.h"
Expand Down Expand Up @@ -83,11 +83,11 @@ void rpl_udp_init(int argc, char **argv)

if (command == 'r') {
rpl_init_root();
ipv6_iface_set_routing_provider(rpl_get_next_hop);
ipv6_legacy_iface_set_routing_provider(rpl_get_next_hop);
is_root = 1;
}
else {
ipv6_iface_set_routing_provider(rpl_get_next_hop);
ipv6_legacy_iface_set_routing_provider(rpl_get_next_hop);
}
}
else {
Expand All @@ -104,24 +104,24 @@ void rpl_udp_init(int argc, char **argv)
"monitor");
DEBUGF("Register at transceiver %02X\n", TRANSCEIVER);
transceiver_register(TRANSCEIVER, monitor_pid);
ipv6_register_packet_handler(monitor_pid);
//sixlowpan_lowpan_register(monitor_pid);
ipv6_legacy_register_packet_handler(monitor_pid);
//sixlowpan_legacy_lowpan_register(monitor_pid);
}
else {
printf("ERROR: Unknown command '%c'\n", command);
return;
}

/* add global address */
ipv6_addr_t tmp;
ipv6_legacy_addr_t tmp;
/* initialize prefix */
ipv6_addr_init(&tmp, 0xabcd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, id);
ipv6_legacy_addr_init(&tmp, 0xabcd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, id);
/* set host suffix */
ipv6_addr_set_by_eui64(&tmp, 0, &tmp);
ipv6_net_if_add_addr(0, &tmp, NDP_ADDR_STATE_PREFERRED, 0, 0, 0);
ipv6_legacy_addr_set_by_eui64(&tmp, 0, &tmp);
ipv6_legacy_net_if_add_addr(0, &tmp, NDP_ADDR_STATE_PREFERRED, 0, 0, 0);

if (command != 'h') {
ipv6_init_as_router();
ipv6_legacy_init_as_router();
}

/* set channel to 10 */
Expand Down
6 changes: 3 additions & 3 deletions examples/rpl_udp/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void udp_send(int argc, char **argv)
{
int sock;
sockaddr6_t sa;
ipv6_addr_t ipaddr;
ipv6_legacy_addr_t ipaddr;
int bytes_sent;
int address;
char text[5];
Expand All @@ -122,10 +122,10 @@ void udp_send(int argc, char **argv)
memset(&sa, 0, sizeof(sa));

if (address) {
ipv6_addr_init(&ipaddr, 0xabcd, 0x0, 0x0, 0x0, 0x0, 0x00ff, 0xfe00, (uint16_t)address);
ipv6_legacy_addr_init(&ipaddr, 0xabcd, 0x0, 0x0, 0x0, 0x0, 0x00ff, 0xfe00, (uint16_t)address);
}
else {
ipv6_addr_set_all_nodes_addr(&ipaddr);
ipv6_legacy_addr_set_all_nodes_addr(&ipaddr);
}

sa.sin6_family = AF_INET;
Expand Down
2 changes: 1 addition & 1 deletion pkg/libcoap/0001-Add-RIOT-Makefile.patch
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ index 0000000..f90baa1
+++ b/Makefile
@@ -0,0 +1,5 @@
+MODULE:=$(shell basename $(CURDIR))
+INCLUDES += -I$(RIOTBASE) -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/drivers/cc110x_legacy/include -I$(RIOTBASE)/cpu/arm7_common/include -I$(RIOTBASE)/sys/net/transport_layer/include -I$(RIOTBASE)/sys/net/sixlowpan/include/ -I$(RIOTBASE)/sys/net/ieee802154/include -I$(RIOTBASE)/sys/net/net_help -I$(RIOTBASE)/sys/posix/include -I$(RIOTBASE)/sys/posix/pnet/include
+INCLUDES += -I$(RIOTBASE) -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/drivers/cc110x_legacy/include -I$(RIOTBASE)/cpu/arm7_common/include -I$(RIOTBASE)/sys/net/transport_layer/include -I$(RIOTBASE)/sys/net/sixlowpan_legacy/include/ -I$(RIOTBASE)/sys/net/ieee802154/include -I$(RIOTBASE)/sys/net/net_help -I$(RIOTBASE)/sys/posix/include -I$(RIOTBASE)/sys/posix/pnet/include
+CFLAGS += -DWITH_POSIX
+
+include $(RIOTBASE)/Makefile.base
Expand Down
21 changes: 18 additions & 3 deletions sys/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ifneq (,$(filter pkt,$(USEMODULE)))
DIRS += net/crosslayer/pkt
endif
ifneq (,$(filter pktbuf,$(USEMODULE)))
DIRS += net/crosslayer/pktbuf
endif
Expand Down Expand Up @@ -35,11 +38,23 @@ endif
ifneq (,$(filter protocol_multiplex,$(USEMODULE)))
DIRS += net/link_layer/protocol-multiplex
endif
ifneq (,$(filter sixlowpan,$(USEMODULE)))
DIRS += net/network_layer/sixlowpan
ifneq (,$(filter sixlowpan_legacy,$(USEMODULE)))
DIRS += net/network_layer/sixlowpan_legacy
endif
ifneq (,$(filter sixlowborder,$(USEMODULE)))
DIRS += net/network_layer/sixlowpan/border
DIRS += net/network_layer/sixlowpan_legacy/border
endif
ifneq (,$(filter sixlowpan,$(USEMODULE)))
DIRS += net/link_layer/sixlowpan
endif
ifneq (,$(filter sixlowpan_hc,$(USEMODULE)))
DIRS += net/link_layer/sixlowpan/hc
endif
ifneq (,$(filter sixlowpan_iphc_cbuf,$(USEMODULE)))
DIRS += net/link_layer/sixlowpan/iphc_cbuf
endif
ifneq (,$(filter ipv6,$(USEMODULE)))
# TODO
endif
ifneq (,$(filter rpl,$(USEMODULE)))
DIRS += net/routing/rpl
Expand Down
8 changes: 7 additions & 1 deletion sys/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ endif
ifneq (,$(filter protocol_multiplex,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/include
endif
ifneq (,$(filter sixlowpan,$(USEMODULE)))
ifneq (,$(filter sixlowpan_legacy,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/include
endif
ifneq (,$(filter sixlowpan_hc,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/include
endif
ifneq (,$(filter sixlowpan_iphc_cbuf,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/include
endif
ifneq (,$(filter rpl,$(USEMODULE)))
Expand Down
8 changes: 4 additions & 4 deletions sys/auto_init/auto_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
#include "periph/rtc.h"
#endif

#ifdef MODULE_SIXLOWPAN
#include "sixlowpan.h"
#ifdef MODULE_SIXLOWPAN_LEGACY
#include "sixlowpan_legacy.h"
#endif

#ifdef MODULE_UDP
Expand Down Expand Up @@ -245,9 +245,9 @@ void auto_init(void)
DEBUG("Auto init net_if module.\n");
auto_init_net_if();
#endif
#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY
DEBUG("Auto init 6LoWPAN module.\n");
sixlowpan_lowpan_init();
sixlowpan_legacy_lowpan_init();
#endif
#ifdef MODULE_PROFILING
extern void profiling_init(void);
Expand Down
Loading