GNRC implementation of IPv6 hop-by-hop and destination option header extension.
More...
GNRC implementation of IPv6 hop-by-hop and destination option header extension.
|
file | opt.h |
| GNRC hop-by-hop and destination option header definitions.
|
|
◆ gnrc_ipv6_ext_opt_process()
Processes all options within an IPv6 option header.
- Precondition
pkt != NULL
-
(protnum == PROTNUM_IPV6_EXT_HOPOPT) || (protnum == PROTNUM_IPV6_EXT_DST)
- Parameters
-
[in] | pkt | The packet containing the option header. The option must be contained in the first snip, with all preceding headers marked (in receive order). Must not be NULL. |
[in] | protnum | The protocol number of the option header. Must be PROTNUM_IPV6_EXT_HOPOPT or PROTNUM_IPV6_EXT_DST |
- Returns
pkt
with the option header marked on success.
-
NULL, if the packet was consumed by the option handling.
-
NULL, on error.
pkt
is released with EINVAL in that case and if necessary and `gnrc_icmpv6_error` is used, the according ICMPv6 error message is sent.