Files | |
file | hdr.h |
IPv6 header. | |
Functions | |
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. More... | |
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.
[in] | payload | Payload for the packet. |
[in] | src | Source address for the header. Can be NULL if not known or required. |
[in] | dst | Destination address for the header. Can be NULL if not known or required. |