Skip to content

Helper function bpf_get_listener_sock

v5.1

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Return a struct bpf_sock pointer in TCP_LISTEN state. bpf_sk_release() is unnecessary and not allowed.

Returns

A struct bpf_sock pointer on success, or NULL in case of failure.

static struct bpf_sock *(* const bpf_get_listener_sock)(struct bpf_sock *sk) = (void *) 98;

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