Path: blob/master/tools/testing/selftests/bpf/cgroup_tcp_skb.h
26285 views
/* SPDX-License-Identifier: GPL-2.0 */1/* Copyright (c) 2023 Meta Platforms, Inc. and affiliates. */23/* Define states of a socket to tracking messages sending to and from the4* socket.5*6* These states are based on rfc9293 with some modifications to support7* tracking of messages sent out from a socket. For example, when a SYN is8* received, a new socket is transiting to the SYN_RECV state defined in9* rfc9293. But, we put it in SYN_RECV_SENDING_SYN_ACK state and when10* SYN-ACK is sent out, it moves to SYN_RECV state. With this modification,11* we can track the message sent out from a socket.12*/1314#ifndef __CGROUP_TCP_SKB_H__15#define __CGROUP_TCP_SKB_H__1617enum {18INIT,19CLOSED,20SYN_SENT,21SYN_RECV_SENDING_SYN_ACK,22SYN_RECV,23ESTABLISHED,24FIN_WAIT1,25FIN_WAIT2,26CLOSE_WAIT_SENDING_ACK,27CLOSE_WAIT,28CLOSING,29LAST_ACK,30TIME_WAIT_SENDING_ACK,31TIME_WAIT,32};3334#endif /* __CGROUP_TCP_SKB_H__ */353637