From 95d3aae48c62d7a6dac4a7fdff888aaf63ce8211 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 11 Feb 2014 07:14:35 +0100 Subject: [PATCH] actually use msg_queue in ip.c msg_queue is defined but never used, hook it up so IP packets get queued instead of dropped when there is more than one. change the name to ip_msg_queue to avoid naming conflicts. --- sys/net/network_layer/sixlowpan/ip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/net/network_layer/sixlowpan/ip.c b/sys/net/network_layer/sixlowpan/ip.c index fb89018551..d5116841d8 100644 --- a/sys/net/network_layer/sixlowpan/ip.c +++ b/sys/net/network_layer/sixlowpan/ip.c @@ -45,7 +45,7 @@ char addr_str[IPV6_MAX_ADDR_STR_LEN]; uint8_t ip_send_buffer[BUFFER_SIZE]; uint8_t buffer[BUFFER_SIZE]; -msg_t msg_queue[IP_PKT_RECV_BUF_SIZE]; +msg_t ip_msg_queue[IP_PKT_RECV_BUF_SIZE]; ipv6_hdr_t *ipv6_buf; icmpv6_hdr_t *icmp_buf; uint8_t *nextheader; @@ -269,6 +269,8 @@ void ipv6_process(void) uint8_t i; uint16_t packet_length; + msg_init_queue(ip_msg_queue, IP_PKT_RECV_BUF_SIZE); + ipv6_addr_init(&myaddr, 0xabcd, 0x0, 0x0, 0x0, 0x3612, 0x00ff, 0xfe00, sixlowpan_mac_get_radio_address());