Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.52 KB

bpf_tcp_raw_check_syncookie_ipv4.md

File metadata and controls

51 lines (32 loc) · 1.52 KB
title description
Helper Function 'bpf_tcp_raw_check_syncookie_ipv4'
This page documents the 'bpf_tcp_raw_check_syncookie_ipv4' eBPF helper function, including its defintion, usage, program types that can use it, and examples.

Helper function bpf_tcp_raw_check_syncookie_ipv4

:octicons-tag-24: 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.

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

Usage

!!! example "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

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome