From d860dd7655ac06ab378d859601aaa9caa81aca6f Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Wed, 11 Jan 2017 12:27:30 +0100 Subject: [PATCH] Minor correction to last patch: Avoid #including socket.h in api_msg.c (cherry picked from commit 2b1ebda6f1b2b085149bcc910a5a2826778b5f22) --- src/api/api_msg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/api_msg.c b/src/api/api_msg.c index b45d23f8..e0a0a631 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -53,7 +53,6 @@ #include "lwip/dns.h" #include "lwip/mld6.h" #include "lwip/priv/tcpip_priv.h" -#include "lwip/sockets.h" #include @@ -565,7 +564,7 @@ pcb_new(struct api_msg *msg) if (msg->conn->pcb.raw != NULL) { #if LWIP_IPV6 /* ICMPv6 packets should always have checksum calculated by the stack as per RFC 3542 chapter 3.1 */ - if (NETCONNTYPE_ISIPV6(msg->conn->type) && msg->conn->pcb.raw->protocol == IPPROTO_ICMPV6) { + if (NETCONNTYPE_ISIPV6(msg->conn->type) && msg->conn->pcb.raw->protocol == IP6_NEXTH_ICMP6) { msg->conn->pcb.raw->chksum_reqd = 1; msg->conn->pcb.raw->chksum_offset = 2; }