Loading...
Searching...
No Matches
IPv6 header definitions

Detailed Description

Files

file  hdr.h
 IPv6 header.
 

Functions

gnrc_pktsnip_tgnrc_ipv6_hdr_build (gnrc_pktsnip_t *payload, const ipv6_addr_t *src, const ipv6_addr_t *dst)
 Builds an IPv6 header for sending and adds it to the packet buffer.
 

Function Documentation

◆ gnrc_ipv6_hdr_build()

gnrc_pktsnip_t * gnrc_ipv6_hdr_build ( gnrc_pktsnip_t payload,
const ipv6_addr_t src,
const ipv6_addr_t dst 
)

Builds an IPv6 header for sending and adds it to the packet buffer.

Initializes version field with 6, traffic class, flow label, and hop limit with 0, and next header with PROTNUM_RESERVED.

Parameters
[in]payloadPayload for the packet.
[in]srcSource address for the header. Can be NULL if not known or required.
[in]dstDestination address for the header. Can be NULL if not known or required.
Returns
The an IPv6 header in packet buffer on success.
NULL on error.