Skip to content

Helper function bpf_skb_ecn_set_ce

v5.1

Definition

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

Set ECN (Explicit Congestion Notification) field of IP header to CE (Congestion Encountered) if current value is ECT (ECN Capable Transport). Otherwise, do nothing. Works with IPv6 and IPv4.

Returns

1 if the CE flag is set (either by the current helper call or because it was already present), 0 if it is not set.

static long (* const bpf_skb_ecn_set_ce)(struct __sk_buff *skb) = (void *) 97;

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