Helper function bpf_skb_set_tunnel_opt
Definition
Copyright (c) 2015 The Libbpf Authors. All rights reserved.
Set tunnel options metadata for the packet associated to skb to the option data contained in the raw buffer opt of size.
See also the description of the bpf_skb_get_tunnel_opt() helper for additional information.
Returns
0 on success, or a negative error in case of failure.
static long (* const bpf_skb_set_tunnel_opt)(struct __sk_buff *skb, void *opt, __u32 size) = (void *) 30;
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Program types
This helper call can be used in the following program types:
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome