36 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/* Copyright (c) 2023 Meta Platforms, Inc. and affiliates. */3 4/* Define states of a socket to tracking messages sending to and from the5 * socket.6 *7 * These states are based on rfc9293 with some modifications to support8 * tracking of messages sent out from a socket. For example, when a SYN is9 * received, a new socket is transiting to the SYN_RECV state defined in10 * rfc9293. But, we put it in SYN_RECV_SENDING_SYN_ACK state and when11 * SYN-ACK is sent out, it moves to SYN_RECV state. With this modification,12 * we can track the message sent out from a socket.13 */14 15#ifndef __CGROUP_TCP_SKB_H__16#define __CGROUP_TCP_SKB_H__17 18enum {19 INIT,20 CLOSED,21 SYN_SENT,22 SYN_RECV_SENDING_SYN_ACK,23 SYN_RECV,24 ESTABLISHED,25 FIN_WAIT1,26 FIN_WAIT2,27 CLOSE_WAIT_SENDING_ACK,28 CLOSE_WAIT,29 CLOSING,30 LAST_ACK,31 TIME_WAIT_SENDING_ACK,32 TIME_WAIT,33};34 35#endif /* __CGROUP_TCP_SKB_H__ */36