lwIP 2.2.0 Lightweight IP stack

Modules | Macros
IPv6
lwIP » Options (lwipopts.h)

## Modules
| ICMP6
| Multicast listener discovery
| Neighbor discovery
| DHCPv6

## Macros
#define | LWIP_IPV6 0
#define | IPV6_REASS_MAXAGE 60
#define | LWIP_IPV6_SCOPES (LWIP_IPV6 && !LWIP_SINGLE_NETIF)
#define | LWIP_IPV6_SCOPES_DEBUG 0
#define | LWIP_IPV6_NUM_ADDRESSES 3
#define | LWIP_IPV6_FORWARD 0
#define | LWIP_IPV6_FRAG 1
#define | LWIP_IPV6_REASS LWIP_IPV6
#define | LWIP_IPV6_SEND_ROUTER_SOLICIT LWIP_IPV6
#define | LWIP_IPV6_AUTOCONFIG LWIP_IPV6
#define | LWIP_IPV6_ADDRESS_LIFETIMES LWIP_IPV6_AUTOCONFIG
#define | LWIP_IPV6_DUP_DETECT_ATTEMPTS 1

## Detailed Description

## Macro Definition Documentation

## ◆ IPV6_REASS_MAXAGE

#define IPV6_REASS_MAXAGE 60

IPV6_REASS_MAXAGE: Maximum time (in multiples of IP6_REASS_TMR_INTERVAL - so seconds, normally) a fragmented IP packet waits for all fragments to arrive. If not all fragments arrived in this time, the whole packet is discarded.

## ◆ LWIP_IPV6

#define LWIP_IPV6 0

LWIP_IPV6==1: Enable IPv6

## ◆ LWIP_IPV6_ADDRESS_LIFETIMES

#define LWIP_IPV6_ADDRESS_LIFETIMES LWIP_IPV6_AUTOCONFIG

LWIP_IPV6_ADDRESS_LIFETIMES==1: Keep valid and preferred lifetimes for each IPv6 address. Required for LWIP_IPV6_AUTOCONFIG. May still be enabled otherwise, in which case the application may assign address lifetimes with the appropriate macros. Addresses with no lifetime are assumed to be static. If this option is disabled, all addresses are assumed to be static.

## ◆ LWIP_IPV6_AUTOCONFIG

#define LWIP_IPV6_AUTOCONFIG LWIP_IPV6

LWIP_IPV6_AUTOCONFIG==1: Enable stateless address autoconfiguration as per RFC 4862.

## ◆ LWIP_IPV6_DUP_DETECT_ATTEMPTS

#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 1

LWIP_IPV6_DUP_DETECT_ATTEMPTS=[0..7]: Number of duplicate address detection attempts.

## ◆ LWIP_IPV6_FORWARD

#define LWIP_IPV6_FORWARD 0

LWIP_IPV6_FORWARD==1: Forward IPv6 packets across netifs

## ◆ LWIP_IPV6_FRAG

#define LWIP_IPV6_FRAG 1

LWIP_IPV6_FRAG==1: Fragment outgoing IPv6 packets that are too big.

## ◆ LWIP_IPV6_NUM_ADDRESSES

#define LWIP_IPV6_NUM_ADDRESSES 3

LWIP_IPV6_NUM_ADDRESSES: Number of IPv6 addresses per netif.

## ◆ LWIP_IPV6_REASS

#define LWIP_IPV6_REASS LWIP_IPV6

LWIP_IPV6_REASS==1: reassemble incoming IPv6 packets that fragmented

## ◆ LWIP_IPV6_SCOPES

#define LWIP_IPV6_SCOPES (LWIP_IPV6 && !LWIP_SINGLE_NETIF)

LWIP_IPV6_SCOPES==1: Enable support for IPv6 address scopes, ensuring that e.g. link-local addresses are really treated as link-local. Disable this setting only for single-interface configurations. All addresses that have a scope according to the default policy (link-local unicast addresses, interface-local and link-local multicast addresses) should now have a zone set on them before being passed to the core API, although lwIP will currently attempt to select a zone on the caller's behalf when necessary. Applications that directly assign IPv6 addresses to interfaces (which is NOT recommended) must now ensure that link-local addresses carry the netif's zone. See the new ip6_zone.h header file for more information and relevant macros. For now it is still possible to turn off scopes support through the new LWIP_IPV6_SCOPES option. When upgrading an implementation that uses the core API directly, it is highly recommended to enable LWIP_IPV6_SCOPES_DEBUG at least for a while, to ensure e.g. proper address initialization.

## ◆ LWIP_IPV6_SCOPES_DEBUG

#define LWIP_IPV6_SCOPES_DEBUG 0

LWIP_IPV6_SCOPES_DEBUG==1: Perform run-time checks to verify that addresses are properly zoned (see ip6_zone.h on what that means) where it matters. Enabling this setting is highly recommended when upgrading from an existing installation that is not yet scope-aware; otherwise it may be too expensive.

## ◆ LWIP_IPV6_SEND_ROUTER_SOLICIT

#define LWIP_IPV6_SEND_ROUTER_SOLICIT LWIP_IPV6

LWIP_IPV6_SEND_ROUTER_SOLICIT==1: Send router solicitation messages during network startup.