---
name: "IPV6_RECVERR"
section: "2const"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/IPV6_RECVERR"
---

# IPV6\_RECVERR(2const)

extended reliable error message passing

## NAME

IPV6\_RECVERR - extended reliable error message passing

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

```
#include <netinet/in.h>  /* Definition of IP* constants */
#include <sys/socket.h>
```

**int setsockopt(int** *sockfd***, IPPROTO\_IPV6, IPV6\_RECVERR,**                **const int \****enable***, sizeof(int));** **int getsockopt(int** *sockfd***, IPPROTO\_IPV6, IPV6\_RECVERR,**                **int \****enabled***, sizeof(int));**

## DESCRIPTION

Control receiving of asynchronous error options.

See [**IP\_RECVERR**(2const)](/IP_RECVERR/2const.md).

## ERRORS

See [**IPPROTO\_IPV6**(2const)](/IPPROTO_IPV6/2const.md). See [**setsockopt**(2)](/setsockopt/2.md). See [**ipv6**(7)](/ipv6/7.md).

## SEE ALSO

[**IP\_RECVERR**(2const)](/IP_RECVERR/2const.md), [**IPPROTO\_IPV6**(2const)](/IPPROTO_IPV6/2const.md), [**setsockopt**(2)](/setsockopt/2.md), [**cmsg**(3)](/cmsg/3.md), [**ipv6**(7)](/ipv6/7.md)
