Skip to content

Helper function bpf_skb_cgroup_classid

v5.10

Definition

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

See bpf_get_cgroup_classid() for the main description. This helper differs from bpf_get_cgroup_classid() in that the cgroup v1 net_cls class is retrieved only from the skb's associated socket instead of the current process.

Returns

The id is returned or 0 in case the id could not be retrieved.

static __u64 (* const bpf_skb_cgroup_classid)(struct __sk_buff *skb) = (void *) 151;

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