From e8c0ba2a479ba7045932b8706740e8e36cbde850 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Fri, 18 Sep 2015 09:31:37 +0200 Subject: [PATCH] Fix tests after ip4_current_header() made const --- test/unit/tcp/tcp_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/tcp/tcp_helper.c b/test/unit/tcp/tcp_helper.c index 74254696..a26c8271 100644 --- a/test/unit/tcp/tcp_helper.c +++ b/test/unit/tcp/tcp_helper.c @@ -244,7 +244,7 @@ void test_tcp_input(struct pbuf *p, struct netif *inp) ip_addr_copy_from_ip4(*ip_current_dest_addr(), iphdr->dest); ip_addr_copy_from_ip4(*ip_current_src_addr(), iphdr->src); ip_current_netif() = inp; - ip4_current_header() = iphdr; + ip_data.current_ip4_header = iphdr; /* since adding IPv6, p->payload must point to tcp header, not ip header */ pbuf_header(p, -(s16_t)sizeof(struct ip_hdr)); @@ -254,7 +254,7 @@ void test_tcp_input(struct pbuf *p, struct netif *inp) ip_addr_set_zero(ip_current_dest_addr()); ip_addr_set_zero(ip_current_src_addr()); ip_current_netif() = NULL; - ip4_current_header() = NULL; + ip_data.current_ip4_header = NULL; } static err_t test_tcp_netif_output(struct netif *netif, struct pbuf *p,