Skip to content

Helper function bpf_tcp_sock

v5.1

Definition

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

This helper gets a struct bpf_tcp_sock pointer from a struct bpf_sock pointer.

Returns

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

static struct bpf_tcp_sock *(* const bpf_tcp_sock)(struct bpf_sock *sk) = (void *) 96;

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