Skip to content

Helper function bpf_tcp_raw_check_syncookie_ipv4

v6.0

Definition

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

Check whether iph and th contain a valid SYN cookie ACK without depending on a listening socket.

iph points to the IPv4 header.

th points to the TCP header.

Returns

0 if iph and th are a valid SYN cookie ACK.

On failure, the returned value is one of the following:

-EACCES if the SYN cookie is not valid.

static long (* const bpf_tcp_raw_check_syncookie_ipv4)(struct iphdr *iph, struct tcphdr *th) = (void *) 206;

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