# IP6 Service

This module includes configuration variables for the IP6 service.

## Summary

| ### Macros ||
|---|---|
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga46d6010fd94d3acc5ebac231370faa24 1` | Define as 1 to allow IPv6 datagrams from Host to be looped back to Host. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga8af1bcde6e7cfea5e9d25bd650df738a OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE` | Define as 1 to enable IPv6 Border Routing counters. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga1f60f4d11abef756797de0ad4742556c 0` |   |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga1a1a9fad510b042b3baa2b92c455dd76 64` | This setting configures the default hop limit of IPv6. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga7dbe544a60d60045235ac0d8d2a13158 0` | Define as 1 to enable feature to require Thread Network interface initialization which allows configuring the external unicast/multicast address pool used by the OpenThread stack. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1gac1424346a2fe181354a77849c0d6edc2 2000` | This setting configures the max datagram length of a unfragmented IPv6 packet. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga636c378d62a5435b0fb6140646f4afe1 1280` | This setting configures the max datagram length of IPv6. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga7c2731fd606af2a1f08f19dfb5e66e55 2` | The maximum number of supported IPv6 multicast addresses allows to be externally added. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1gae3d7ef0800b1c7001f51e976f185be45 4` | The maximum number of supported IPv6 addresses allows to be externally added. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1gaa8eb34acb18e680f37f582b15331aa43 60` | This setting configures the reassembly timeout for IPv6 in seconds. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1gaae4e09aca119a22172c9be9aebba66f7 0` | Define as 1 to restrict multicast forwarding to larger scope from local sources. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1gabe2aa853ec6210ab9c3160a496cfd722 300` | Specifies the deprecating time of SLAAC addresses in seconds. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga4274951ddcaaf84f4d82262ef70f77ef 0` | Define as 1 to enable support for adding of auto-configured SLAAC addresses by OpenThread. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga4b8491c60d533cc2679a533cc17baf7a 4` | The number of auto-configured SLAAC addresses. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1gaa4caa547604382017e14bdc2e9e6f1e1 0` | Define as 1 to enable dynamic MPL interval feature. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1gada7d7d8917ef67fa841704bcc8bb7a98 35` | The number of MPL Seed Set entries for duplicate detection. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1gadf421f8cb5557f5e112fc9b6ace09dd3 5` | The MPL Seed Set entry lifetime in seconds. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga354b7344ce7b4b33f590dd5c133e4b1b 0` | Define as 1 to enable TCP support via platform `otPlatTcp*` APIs and `Ip6::PlatTcp`. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga3abb9f0d342fa6f5b222c0b0f466fe2d 1` | Define as 1 to enable TCP. |
| `https://openthread.io/reference/config/group/config-ip6#group__config-ip6_1ga2acd16f41928373ca5d41047a884582b (OPENTHREAD_CONFIG_TCP_ENABLE || OPENTHREAD_CONFIG_BLE_TCAT_ENABLE)` | Define as 1 to enable support for TLS over TCP. |

## Macros

### OPENTHREAD_CONFIG_IP6_ALLOW_LOOP_BACK_HOST_DATAGRAMS

```
 OPENTHREAD_CONFIG_IP6_ALLOW_LOOP_BACK_HOST_DATAGRAMS 1
```
Define as 1 to allow IPv6 datagrams from Host to be looped back to Host.

### OPENTHREAD_CONFIG_IP6_BR_COUNTERS_ENABLE

```
 OPENTHREAD_CONFIG_IP6_BR_COUNTERS_ENABLE OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
```
Define as 1 to enable IPv6 Border Routing counters.

### OPENTHREAD_CONFIG_IP6_FRAGMENTATION_ENABLE

```
 OPENTHREAD_CONFIG_IP6_FRAGMENTATION_ENABLE 0
```

### OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT

```
 OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT 64
```
This setting configures the default hop limit of IPv6.

### OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE

```
 OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE 0
```
Define as 1 to enable feature to require Thread Network interface initialization which allows configuring the external unicast/multicast address pool used by the OpenThread stack.

This feature allows the OpenThread stack to be compiled as a library without specifying the address pool sizes. It delegates the configuration of the pools to the next layer, making it run-time configurable after OpenThread instance initialization. This allows the OpenThread stack to be integrated into various projects without requiring a new OpenThread stack configuration to be built.

When this feature is enabled, the configs `OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS` and `OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS` are no longer applicable or used.

### OPENTHREAD_CONFIG_IP6_MAX_ASSEMBLED_DATAGRAM

```
 OPENTHREAD_CONFIG_IP6_MAX_ASSEMBLED_DATAGRAM 2000
```
This setting configures the max datagram length of a unfragmented IPv6 packet.

### OPENTHREAD_CONFIG_IP6_MAX_DATAGRAM_LENGTH

```
 OPENTHREAD_CONFIG_IP6_MAX_DATAGRAM_LENGTH 1280
```
This setting configures the max datagram length of IPv6.

### OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS

```
 OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS 2
```
The maximum number of supported IPv6 multicast addresses allows to be externally added.

If `OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE` is enabled, this config is not used.

### OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS

```
 OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS 4
```
The maximum number of supported IPv6 addresses allows to be externally added.

If `OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE` is enabled, this config is not used.

### OPENTHREAD_CONFIG_IP6_REASSEMBLY_TIMEOUT

```
 OPENTHREAD_CONFIG_IP6_REASSEMBLY_TIMEOUT 60
```
This setting configures the reassembly timeout for IPv6 in seconds.

RFC 2460 \> 60 seconds

### OPENTHREAD_CONFIG_IP6_RESTRICT_FORWARDING_LARGER_SCOPE_MCAST_WITH_LOCAL_SRC

```
 OPENTHREAD_CONFIG_IP6_RESTRICT_FORWARDING_LARGER_SCOPE_MCAST_WITH_LOCAL_SRC 0
```
Define as 1 to restrict multicast forwarding to larger scope from local sources.

### OPENTHREAD_CONFIG_IP6_SLAAC_DEPRECATION_INTERVAL

```
 OPENTHREAD_CONFIG_IP6_SLAAC_DEPRECATION_INTERVAL 300
```
Specifies the deprecating time of SLAAC addresses in seconds.

Applicable only if OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE is enabled.

Deprecating interval is used once an on-mesh prefix is removed from Network Data before removing the SLAAC address.

### OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE

```
 OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE 0
```
Define as 1 to enable support for adding of auto-configured SLAAC addresses by OpenThread.

### OPENTHREAD_CONFIG_IP6_SLAAC_NUM_ADDRESSES

```
 OPENTHREAD_CONFIG_IP6_SLAAC_NUM_ADDRESSES 4
```
The number of auto-configured SLAAC addresses.

Applicable only if OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE is enabled.

### OPENTHREAD_CONFIG_MPL_DYNAMIC_INTERVAL_ENABLE

```
 OPENTHREAD_CONFIG_MPL_DYNAMIC_INTERVAL_ENABLE 0
```
Define as 1 to enable dynamic MPL interval feature.

If this feature is enabled, the MPL forward interval will be adjusted dynamically according to the network scale, which helps to reduce multicast latency.

### OPENTHREAD_CONFIG_MPL_SEED_SET_ENTRIES

```
 OPENTHREAD_CONFIG_MPL_SEED_SET_ENTRIES 35
```
The number of MPL Seed Set entries for duplicate detection.

### OPENTHREAD_CONFIG_MPL_SEED_SET_ENTRY_LIFETIME

```
 OPENTHREAD_CONFIG_MPL_SEED_SET_ENTRY_LIFETIME 5
```
The MPL Seed Set entry lifetime in seconds.

### OPENTHREAD_CONFIG_PLATFORM_TCP_ENABLE

```
 OPENTHREAD_CONFIG_PLATFORM_TCP_ENABLE 0
```
Define as 1 to enable TCP support via platform `otPlatTcp*` APIs and `Ip6::PlatTcp`.

### OPENTHREAD_CONFIG_TCP_ENABLE

```
 OPENTHREAD_CONFIG_TCP_ENABLE 1
```
Define as 1 to enable TCP.

### OPENTHREAD_CONFIG_TLS_ENABLE

```
 OPENTHREAD_CONFIG_TLS_ENABLE (OPENTHREAD_CONFIG_TCP_ENABLE || OPENTHREAD_CONFIG_BLE_TCAT_ENABLE)
```
Define as 1 to enable support for TLS over TCP.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).