Skip to content
Snippets Groups Projects
Unverified Commit 69475e05 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #9796 from gschorcht/lwip_sock_fix

tests/lwip_sock_*: fix compilation error
parents 2db68b60 a71124a8
No related branches found
No related tags found
No related merge requests found
......@@ -321,7 +321,7 @@ bool _check_4packet(uint32_t src, uint32_t dst, uint8_t proto,
void *data, size_t data_len, uint16_t netif)
{
#if LWIP_IPV4
msg_t msg;
msg_t msg = { .content = { .value = 0 } };
(void)netif;
while (data_len != (msg.content.value - sizeof(struct ip_hdr))) {
......@@ -349,7 +349,7 @@ bool _check_6packet(const ipv6_addr_t *src, const ipv6_addr_t *dst,
uint8_t proto, void *data, size_t data_len, uint16_t netif)
{
#if LWIP_IPV6
msg_t msg;
msg_t msg = { .content = { .value = 0 } };
(void)netif;
while (data_len != (msg.content.value - sizeof(ipv6_hdr_t))) {
......
......@@ -351,7 +351,7 @@ bool _check_4packet(uint32_t src, uint32_t dst, uint16_t src_port,
uint16_t netif, bool random_src_port)
{
#if LWIP_IPV4
msg_t msg;
msg_t msg = { .content = { .value = 0 } };
(void)netif;
while (data_len != (msg.content.value - sizeof(struct ip_hdr))) {
......@@ -385,7 +385,7 @@ bool _check_6packet(const ipv6_addr_t *src, const ipv6_addr_t *dst,
bool random_src_port)
{
#if LWIP_IPV6
msg_t msg;
msg_t msg = { .content = { .value = 0 } };
(void)netif;
while (data_len != (msg.content.value - sizeof(ipv6_hdr_t))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment