-This map type can be use too lookup a pointer to a socket with the [`bpf_map_lookup_elem`](../helper-function/bpf_map_lookup_elem.md) helper function, which then can be passed to helpers such as [`bpf_sk_assign`](../helper-function/bpf_sk_assign.md) or the a map reference can be used directly in a range of helpers such as [`bpf_sk_redirect_map`](../helper-function/bpf_sk_redirect_map.md), [`bpf_msg_redirect_map`](../helper-function/bpf_msg_redirect_map.md) and [`bpf_sk_select_reuseport`](../helper-function/bpf_sk_select_reuseport.md). All of the above cases redirect a packet or connection in some way, the details differ depending on the program type and the helper function, so please visit the specific pages for details.
0 commit comments