Skip to content

Helper function bpf_set_hash

v4.13

Definition

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

Set the full hash for skb (set the field skb->hash) to value hash.

Returns

0

static long (* const bpf_set_hash)(struct __sk_buff *skb, __u32 hash) = (void *) 48;

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