mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
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.
This commit is contained in:
parent
7ccf0e0858
commit
95d3aae48c
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user