lwIP 2.1.3 Lightweight IP stack

Macros
Checksum
lwIP » Options (lwipopts.h) » Infrastructure

## Macros
#define | LWIP_CHECKSUM_CTRL_PER_NETIF 0
#define | CHECKSUM_GEN_IP 1
#define | CHECKSUM_GEN_UDP 1
#define | CHECKSUM_GEN_TCP 1
#define | CHECKSUM_GEN_ICMP 1
#define | CHECKSUM_GEN_ICMP6 1
#define | CHECKSUM_CHECK_IP 1
#define | CHECKSUM_CHECK_UDP 1
#define | CHECKSUM_CHECK_TCP 1
#define | CHECKSUM_CHECK_ICMP 1
#define | CHECKSUM_CHECK_ICMP6 1
#define | LWIP_CHECKSUM_ON_COPY 0

## Detailed Description

## Macro Definition Documentation

## ◆ CHECKSUM_CHECK_ICMP

#define CHECKSUM_CHECK_ICMP 1

CHECKSUM_CHECK_ICMP==1: Check checksums in software for incoming ICMP packets.

## ◆ CHECKSUM_CHECK_ICMP6

#define CHECKSUM_CHECK_ICMP6 1

CHECKSUM_CHECK_ICMP6==1: Check checksums in software for incoming ICMPv6 packets

## ◆ CHECKSUM_CHECK_IP

#define CHECKSUM_CHECK_IP 1

CHECKSUM_CHECK_IP==1: Check checksums in software for incoming IP packets.

## ◆ CHECKSUM_CHECK_TCP

#define CHECKSUM_CHECK_TCP 1

CHECKSUM_CHECK_TCP==1: Check checksums in software for incoming TCP packets.

## ◆ CHECKSUM_CHECK_UDP

#define CHECKSUM_CHECK_UDP 1

CHECKSUM_CHECK_UDP==1: Check checksums in software for incoming UDP packets.

## ◆ CHECKSUM_GEN_ICMP

#define CHECKSUM_GEN_ICMP 1

CHECKSUM_GEN_ICMP==1: Generate checksums in software for outgoing ICMP packets.

## ◆ CHECKSUM_GEN_ICMP6

#define CHECKSUM_GEN_ICMP6 1

CHECKSUM_GEN_ICMP6==1: Generate checksums in software for outgoing ICMP6 packets.

## ◆ CHECKSUM_GEN_IP

#define CHECKSUM_GEN_IP 1

CHECKSUM_GEN_IP==1: Generate checksums in software for outgoing IP packets.

## ◆ CHECKSUM_GEN_TCP

#define CHECKSUM_GEN_TCP 1

CHECKSUM_GEN_TCP==1: Generate checksums in software for outgoing TCP packets.

## ◆ CHECKSUM_GEN_UDP

#define CHECKSUM_GEN_UDP 1

CHECKSUM_GEN_UDP==1: Generate checksums in software for outgoing UDP packets.

## ◆ LWIP_CHECKSUM_CTRL_PER_NETIF

#define LWIP_CHECKSUM_CTRL_PER_NETIF 0

LWIP_CHECKSUM_CTRL_PER_NETIF==1: Checksum generation/check can be enabled/disabled per netif. ATTENTION: if enabled, the CHECKSUM_GEN_* and CHECKSUM_CHECK_* defines must be enabled!

## ◆ LWIP_CHECKSUM_ON_COPY

#define LWIP_CHECKSUM_ON_COPY 0

LWIP_CHECKSUM_ON_COPY==1: Calculate checksum when copying data from application buffers to pbufs.