From 38894637e73c9674afde362ee9903b37033efb9d Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Thu, 30 Jan 2020 23:13:07 +0100 Subject: [PATCH] ip4: forward: remove invalid const modifiers This should fix the build... --- src/core/ipv4/ip4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/ipv4/ip4.c b/src/core/ipv4/ip4.c index 19144c92..085a17f5 100644 --- a/src/core/ipv4/ip4.c +++ b/src/core/ipv4/ip4.c @@ -347,21 +347,21 @@ ip4_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp) #endif case IP_PROTO_UDP: if (CHECKSUM_GEN_UDP || NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_UDP)) { - ((struct udp_hdr *)((const u8_t *)iphdr + IPH_HL_BYTES(iphdr)))->chksum = 0; + ((struct udp_hdr *)((u8_t *)iphdr + IPH_HL_BYTES(iphdr)))->chksum = 0; } break; #endif #if LWIP_TCP case IP_PROTO_TCP: if (CHECKSUM_GEN_TCP || NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_TCP)) { - ((struct tcp_hdr *)((const u8_t *)iphdr + IPH_HL_BYTES(iphdr)))->chksum = 0; + ((struct tcp_hdr *)((u8_t *)iphdr + IPH_HL_BYTES(iphdr)))->chksum = 0; } break; #endif #if LWIP_ICMP case IP_PROTO_ICMP: if (CHECKSUM_GEN_ICMP || NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_ICMP)) { - ((struct icmp_hdr *)((const u8_t *)iphdr + IPH_HL_BYTES(iphdr)))->chksum = 0; + ((struct icmp_hdr *)((u8_t *)iphdr + IPH_HL_BYTES(iphdr)))->chksum = 0; } break; #endif