Helper function bpf_skb_get_xfrm_state
Definition
Copyright (c) 2015 The Libbpf Authors. All rights reserved.
Retrieve the XFRM state (IP transform framework, see also ip-xfrm(8)) at index in XFRM "security path" for skb.
The retrieved value is stored in the struct bpf_xfrm_state pointed by xfrm_state and of length size.
All values for flags are reserved for future usage, and must be left at zero.
This helper is available only if the kernel was compiled with CONFIG_XFRM configuration option.
Returns
0 on success, or a negative error in case of failure.
static long (* const bpf_skb_get_xfrm_state)(struct __sk_buff *skb, __u32 index, struct bpf_xfrm_state *xfrm_state, __u32 size, __u64 flags) = (void *) 66;
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