All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.bechberger.ebpf.bpf.raw.tcp_info Maven / Gradle / Ivy

The newest version!
// Generated by jextract

package me.bechberger.ebpf.bpf.raw;

import java.lang.invoke.*;
import java.lang.foreign.*;
import java.nio.ByteOrder;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;

import static java.lang.foreign.ValueLayout.*;
import static java.lang.foreign.MemoryLayout.PathElement.*;

/**
 * {@snippet lang=c :
 * struct tcp_info {
 *     __u8 tcpi_state;
 *     __u8 tcpi_ca_state;
 *     __u8 tcpi_retransmits;
 *     __u8 tcpi_probes;
 *     __u8 tcpi_backoff;
 *     __u8 tcpi_options;
 *     __u8 tcpi_snd_wscale : 4;
 *     __u8 tcpi_rcv_wscale : 4;
 *     __u8 tcpi_delivery_rate_app_limited : 1;
 *     __u8 tcpi_fastopen_client_fail : 2;
 *     __u32 tcpi_rto;
 *     __u32 tcpi_ato;
 *     __u32 tcpi_snd_mss;
 *     __u32 tcpi_rcv_mss;
 *     __u32 tcpi_unacked;
 *     __u32 tcpi_sacked;
 *     __u32 tcpi_lost;
 *     __u32 tcpi_retrans;
 *     __u32 tcpi_fackets;
 *     __u32 tcpi_last_data_sent;
 *     __u32 tcpi_last_ack_sent;
 *     __u32 tcpi_last_data_recv;
 *     __u32 tcpi_last_ack_recv;
 *     __u32 tcpi_pmtu;
 *     __u32 tcpi_rcv_ssthresh;
 *     __u32 tcpi_rtt;
 *     __u32 tcpi_rttvar;
 *     __u32 tcpi_snd_ssthresh;
 *     __u32 tcpi_snd_cwnd;
 *     __u32 tcpi_advmss;
 *     __u32 tcpi_reordering;
 *     __u32 tcpi_rcv_rtt;
 *     __u32 tcpi_rcv_space;
 *     __u32 tcpi_total_retrans;
 *     __u64 tcpi_pacing_rate;
 *     __u64 tcpi_max_pacing_rate;
 *     __u64 tcpi_bytes_acked;
 *     __u64 tcpi_bytes_received;
 *     __u32 tcpi_segs_out;
 *     __u32 tcpi_segs_in;
 *     __u32 tcpi_notsent_bytes;
 *     __u32 tcpi_min_rtt;
 *     __u32 tcpi_data_segs_in;
 *     __u32 tcpi_data_segs_out;
 *     __u64 tcpi_delivery_rate;
 *     __u64 tcpi_busy_time;
 *     __u64 tcpi_rwnd_limited;
 *     __u64 tcpi_sndbuf_limited;
 *     __u32 tcpi_delivered;
 *     __u32 tcpi_delivered_ce;
 *     __u64 tcpi_bytes_sent;
 *     __u64 tcpi_bytes_retrans;
 *     __u32 tcpi_dsack_dups;
 *     __u32 tcpi_reord_seen;
 *     __u32 tcpi_rcv_ooopack;
 *     __u32 tcpi_snd_wnd;
 *     __u32 tcpi_rcv_wnd;
 *     __u32 tcpi_rehash;
 *     __u16 tcpi_total_rto;
 *     __u16 tcpi_total_rto_recoveries;
 *     __u32 tcpi_total_rto_time;
 * }
 * }
 */
public class tcp_info {

    tcp_info() {
        // Should not be called directly
    }

    private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
        Lib.C_CHAR.withName("tcpi_state"),
        Lib.C_CHAR.withName("tcpi_ca_state"),
        Lib.C_CHAR.withName("tcpi_retransmits"),
        Lib.C_CHAR.withName("tcpi_probes"),
        Lib.C_CHAR.withName("tcpi_backoff"),
        Lib.C_CHAR.withName("tcpi_options"),
        MemoryLayout.paddingLayout(2),
        Lib.C_INT.withName("tcpi_rto"),
        Lib.C_INT.withName("tcpi_ato"),
        Lib.C_INT.withName("tcpi_snd_mss"),
        Lib.C_INT.withName("tcpi_rcv_mss"),
        Lib.C_INT.withName("tcpi_unacked"),
        Lib.C_INT.withName("tcpi_sacked"),
        Lib.C_INT.withName("tcpi_lost"),
        Lib.C_INT.withName("tcpi_retrans"),
        Lib.C_INT.withName("tcpi_fackets"),
        Lib.C_INT.withName("tcpi_last_data_sent"),
        Lib.C_INT.withName("tcpi_last_ack_sent"),
        Lib.C_INT.withName("tcpi_last_data_recv"),
        Lib.C_INT.withName("tcpi_last_ack_recv"),
        Lib.C_INT.withName("tcpi_pmtu"),
        Lib.C_INT.withName("tcpi_rcv_ssthresh"),
        Lib.C_INT.withName("tcpi_rtt"),
        Lib.C_INT.withName("tcpi_rttvar"),
        Lib.C_INT.withName("tcpi_snd_ssthresh"),
        Lib.C_INT.withName("tcpi_snd_cwnd"),
        Lib.C_INT.withName("tcpi_advmss"),
        Lib.C_INT.withName("tcpi_reordering"),
        Lib.C_INT.withName("tcpi_rcv_rtt"),
        Lib.C_INT.withName("tcpi_rcv_space"),
        Lib.C_INT.withName("tcpi_total_retrans"),
        Lib.C_LONG_LONG.withName("tcpi_pacing_rate"),
        Lib.C_LONG_LONG.withName("tcpi_max_pacing_rate"),
        Lib.C_LONG_LONG.withName("tcpi_bytes_acked"),
        Lib.C_LONG_LONG.withName("tcpi_bytes_received"),
        Lib.C_INT.withName("tcpi_segs_out"),
        Lib.C_INT.withName("tcpi_segs_in"),
        Lib.C_INT.withName("tcpi_notsent_bytes"),
        Lib.C_INT.withName("tcpi_min_rtt"),
        Lib.C_INT.withName("tcpi_data_segs_in"),
        Lib.C_INT.withName("tcpi_data_segs_out"),
        Lib.C_LONG_LONG.withName("tcpi_delivery_rate"),
        Lib.C_LONG_LONG.withName("tcpi_busy_time"),
        Lib.C_LONG_LONG.withName("tcpi_rwnd_limited"),
        Lib.C_LONG_LONG.withName("tcpi_sndbuf_limited"),
        Lib.C_INT.withName("tcpi_delivered"),
        Lib.C_INT.withName("tcpi_delivered_ce"),
        Lib.C_LONG_LONG.withName("tcpi_bytes_sent"),
        Lib.C_LONG_LONG.withName("tcpi_bytes_retrans"),
        Lib.C_INT.withName("tcpi_dsack_dups"),
        Lib.C_INT.withName("tcpi_reord_seen"),
        Lib.C_INT.withName("tcpi_rcv_ooopack"),
        Lib.C_INT.withName("tcpi_snd_wnd"),
        Lib.C_INT.withName("tcpi_rcv_wnd"),
        Lib.C_INT.withName("tcpi_rehash"),
        Lib.C_SHORT.withName("tcpi_total_rto"),
        Lib.C_SHORT.withName("tcpi_total_rto_recoveries"),
        Lib.C_INT.withName("tcpi_total_rto_time")
    ).withName("tcp_info");

    /**
     * The layout of this struct
     */
    public static final GroupLayout layout() {
        return $LAYOUT;
    }

    private static final OfByte tcpi_state$LAYOUT = (OfByte)$LAYOUT.select(groupElement("tcpi_state"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u8 tcpi_state
     * }
     */
    public static final OfByte tcpi_state$layout() {
        return tcpi_state$LAYOUT;
    }

    private static final long tcpi_state$OFFSET = 0;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u8 tcpi_state
     * }
     */
    public static final long tcpi_state$offset() {
        return tcpi_state$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u8 tcpi_state
     * }
     */
    public static byte tcpi_state(MemorySegment struct) {
        return struct.get(tcpi_state$LAYOUT, tcpi_state$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u8 tcpi_state
     * }
     */
    public static void tcpi_state(MemorySegment struct, byte fieldValue) {
        struct.set(tcpi_state$LAYOUT, tcpi_state$OFFSET, fieldValue);
    }

    private static final OfByte tcpi_ca_state$LAYOUT = (OfByte)$LAYOUT.select(groupElement("tcpi_ca_state"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u8 tcpi_ca_state
     * }
     */
    public static final OfByte tcpi_ca_state$layout() {
        return tcpi_ca_state$LAYOUT;
    }

    private static final long tcpi_ca_state$OFFSET = 1;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u8 tcpi_ca_state
     * }
     */
    public static final long tcpi_ca_state$offset() {
        return tcpi_ca_state$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u8 tcpi_ca_state
     * }
     */
    public static byte tcpi_ca_state(MemorySegment struct) {
        return struct.get(tcpi_ca_state$LAYOUT, tcpi_ca_state$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u8 tcpi_ca_state
     * }
     */
    public static void tcpi_ca_state(MemorySegment struct, byte fieldValue) {
        struct.set(tcpi_ca_state$LAYOUT, tcpi_ca_state$OFFSET, fieldValue);
    }

    private static final OfByte tcpi_retransmits$LAYOUT = (OfByte)$LAYOUT.select(groupElement("tcpi_retransmits"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u8 tcpi_retransmits
     * }
     */
    public static final OfByte tcpi_retransmits$layout() {
        return tcpi_retransmits$LAYOUT;
    }

    private static final long tcpi_retransmits$OFFSET = 2;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u8 tcpi_retransmits
     * }
     */
    public static final long tcpi_retransmits$offset() {
        return tcpi_retransmits$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u8 tcpi_retransmits
     * }
     */
    public static byte tcpi_retransmits(MemorySegment struct) {
        return struct.get(tcpi_retransmits$LAYOUT, tcpi_retransmits$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u8 tcpi_retransmits
     * }
     */
    public static void tcpi_retransmits(MemorySegment struct, byte fieldValue) {
        struct.set(tcpi_retransmits$LAYOUT, tcpi_retransmits$OFFSET, fieldValue);
    }

    private static final OfByte tcpi_probes$LAYOUT = (OfByte)$LAYOUT.select(groupElement("tcpi_probes"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u8 tcpi_probes
     * }
     */
    public static final OfByte tcpi_probes$layout() {
        return tcpi_probes$LAYOUT;
    }

    private static final long tcpi_probes$OFFSET = 3;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u8 tcpi_probes
     * }
     */
    public static final long tcpi_probes$offset() {
        return tcpi_probes$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u8 tcpi_probes
     * }
     */
    public static byte tcpi_probes(MemorySegment struct) {
        return struct.get(tcpi_probes$LAYOUT, tcpi_probes$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u8 tcpi_probes
     * }
     */
    public static void tcpi_probes(MemorySegment struct, byte fieldValue) {
        struct.set(tcpi_probes$LAYOUT, tcpi_probes$OFFSET, fieldValue);
    }

    private static final OfByte tcpi_backoff$LAYOUT = (OfByte)$LAYOUT.select(groupElement("tcpi_backoff"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u8 tcpi_backoff
     * }
     */
    public static final OfByte tcpi_backoff$layout() {
        return tcpi_backoff$LAYOUT;
    }

    private static final long tcpi_backoff$OFFSET = 4;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u8 tcpi_backoff
     * }
     */
    public static final long tcpi_backoff$offset() {
        return tcpi_backoff$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u8 tcpi_backoff
     * }
     */
    public static byte tcpi_backoff(MemorySegment struct) {
        return struct.get(tcpi_backoff$LAYOUT, tcpi_backoff$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u8 tcpi_backoff
     * }
     */
    public static void tcpi_backoff(MemorySegment struct, byte fieldValue) {
        struct.set(tcpi_backoff$LAYOUT, tcpi_backoff$OFFSET, fieldValue);
    }

    private static final OfByte tcpi_options$LAYOUT = (OfByte)$LAYOUT.select(groupElement("tcpi_options"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u8 tcpi_options
     * }
     */
    public static final OfByte tcpi_options$layout() {
        return tcpi_options$LAYOUT;
    }

    private static final long tcpi_options$OFFSET = 5;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u8 tcpi_options
     * }
     */
    public static final long tcpi_options$offset() {
        return tcpi_options$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u8 tcpi_options
     * }
     */
    public static byte tcpi_options(MemorySegment struct) {
        return struct.get(tcpi_options$LAYOUT, tcpi_options$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u8 tcpi_options
     * }
     */
    public static void tcpi_options(MemorySegment struct, byte fieldValue) {
        struct.set(tcpi_options$LAYOUT, tcpi_options$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_rto$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_rto"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_rto
     * }
     */
    public static final OfInt tcpi_rto$layout() {
        return tcpi_rto$LAYOUT;
    }

    private static final long tcpi_rto$OFFSET = 8;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_rto
     * }
     */
    public static final long tcpi_rto$offset() {
        return tcpi_rto$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rto
     * }
     */
    public static int tcpi_rto(MemorySegment struct) {
        return struct.get(tcpi_rto$LAYOUT, tcpi_rto$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rto
     * }
     */
    public static void tcpi_rto(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_rto$LAYOUT, tcpi_rto$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_ato$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_ato"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_ato
     * }
     */
    public static final OfInt tcpi_ato$layout() {
        return tcpi_ato$LAYOUT;
    }

    private static final long tcpi_ato$OFFSET = 12;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_ato
     * }
     */
    public static final long tcpi_ato$offset() {
        return tcpi_ato$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_ato
     * }
     */
    public static int tcpi_ato(MemorySegment struct) {
        return struct.get(tcpi_ato$LAYOUT, tcpi_ato$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_ato
     * }
     */
    public static void tcpi_ato(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_ato$LAYOUT, tcpi_ato$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_snd_mss$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_snd_mss"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_mss
     * }
     */
    public static final OfInt tcpi_snd_mss$layout() {
        return tcpi_snd_mss$LAYOUT;
    }

    private static final long tcpi_snd_mss$OFFSET = 16;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_mss
     * }
     */
    public static final long tcpi_snd_mss$offset() {
        return tcpi_snd_mss$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_mss
     * }
     */
    public static int tcpi_snd_mss(MemorySegment struct) {
        return struct.get(tcpi_snd_mss$LAYOUT, tcpi_snd_mss$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_mss
     * }
     */
    public static void tcpi_snd_mss(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_snd_mss$LAYOUT, tcpi_snd_mss$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_rcv_mss$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_rcv_mss"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_mss
     * }
     */
    public static final OfInt tcpi_rcv_mss$layout() {
        return tcpi_rcv_mss$LAYOUT;
    }

    private static final long tcpi_rcv_mss$OFFSET = 20;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_mss
     * }
     */
    public static final long tcpi_rcv_mss$offset() {
        return tcpi_rcv_mss$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_mss
     * }
     */
    public static int tcpi_rcv_mss(MemorySegment struct) {
        return struct.get(tcpi_rcv_mss$LAYOUT, tcpi_rcv_mss$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_mss
     * }
     */
    public static void tcpi_rcv_mss(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_rcv_mss$LAYOUT, tcpi_rcv_mss$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_unacked$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_unacked"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_unacked
     * }
     */
    public static final OfInt tcpi_unacked$layout() {
        return tcpi_unacked$LAYOUT;
    }

    private static final long tcpi_unacked$OFFSET = 24;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_unacked
     * }
     */
    public static final long tcpi_unacked$offset() {
        return tcpi_unacked$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_unacked
     * }
     */
    public static int tcpi_unacked(MemorySegment struct) {
        return struct.get(tcpi_unacked$LAYOUT, tcpi_unacked$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_unacked
     * }
     */
    public static void tcpi_unacked(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_unacked$LAYOUT, tcpi_unacked$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_sacked$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_sacked"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_sacked
     * }
     */
    public static final OfInt tcpi_sacked$layout() {
        return tcpi_sacked$LAYOUT;
    }

    private static final long tcpi_sacked$OFFSET = 28;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_sacked
     * }
     */
    public static final long tcpi_sacked$offset() {
        return tcpi_sacked$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_sacked
     * }
     */
    public static int tcpi_sacked(MemorySegment struct) {
        return struct.get(tcpi_sacked$LAYOUT, tcpi_sacked$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_sacked
     * }
     */
    public static void tcpi_sacked(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_sacked$LAYOUT, tcpi_sacked$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_lost$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_lost"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_lost
     * }
     */
    public static final OfInt tcpi_lost$layout() {
        return tcpi_lost$LAYOUT;
    }

    private static final long tcpi_lost$OFFSET = 32;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_lost
     * }
     */
    public static final long tcpi_lost$offset() {
        return tcpi_lost$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_lost
     * }
     */
    public static int tcpi_lost(MemorySegment struct) {
        return struct.get(tcpi_lost$LAYOUT, tcpi_lost$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_lost
     * }
     */
    public static void tcpi_lost(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_lost$LAYOUT, tcpi_lost$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_retrans$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_retrans"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_retrans
     * }
     */
    public static final OfInt tcpi_retrans$layout() {
        return tcpi_retrans$LAYOUT;
    }

    private static final long tcpi_retrans$OFFSET = 36;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_retrans
     * }
     */
    public static final long tcpi_retrans$offset() {
        return tcpi_retrans$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_retrans
     * }
     */
    public static int tcpi_retrans(MemorySegment struct) {
        return struct.get(tcpi_retrans$LAYOUT, tcpi_retrans$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_retrans
     * }
     */
    public static void tcpi_retrans(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_retrans$LAYOUT, tcpi_retrans$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_fackets$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_fackets"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_fackets
     * }
     */
    public static final OfInt tcpi_fackets$layout() {
        return tcpi_fackets$LAYOUT;
    }

    private static final long tcpi_fackets$OFFSET = 40;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_fackets
     * }
     */
    public static final long tcpi_fackets$offset() {
        return tcpi_fackets$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_fackets
     * }
     */
    public static int tcpi_fackets(MemorySegment struct) {
        return struct.get(tcpi_fackets$LAYOUT, tcpi_fackets$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_fackets
     * }
     */
    public static void tcpi_fackets(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_fackets$LAYOUT, tcpi_fackets$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_last_data_sent$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_last_data_sent"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_data_sent
     * }
     */
    public static final OfInt tcpi_last_data_sent$layout() {
        return tcpi_last_data_sent$LAYOUT;
    }

    private static final long tcpi_last_data_sent$OFFSET = 44;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_data_sent
     * }
     */
    public static final long tcpi_last_data_sent$offset() {
        return tcpi_last_data_sent$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_data_sent
     * }
     */
    public static int tcpi_last_data_sent(MemorySegment struct) {
        return struct.get(tcpi_last_data_sent$LAYOUT, tcpi_last_data_sent$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_data_sent
     * }
     */
    public static void tcpi_last_data_sent(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_last_data_sent$LAYOUT, tcpi_last_data_sent$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_last_ack_sent$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_last_ack_sent"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_ack_sent
     * }
     */
    public static final OfInt tcpi_last_ack_sent$layout() {
        return tcpi_last_ack_sent$LAYOUT;
    }

    private static final long tcpi_last_ack_sent$OFFSET = 48;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_ack_sent
     * }
     */
    public static final long tcpi_last_ack_sent$offset() {
        return tcpi_last_ack_sent$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_ack_sent
     * }
     */
    public static int tcpi_last_ack_sent(MemorySegment struct) {
        return struct.get(tcpi_last_ack_sent$LAYOUT, tcpi_last_ack_sent$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_ack_sent
     * }
     */
    public static void tcpi_last_ack_sent(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_last_ack_sent$LAYOUT, tcpi_last_ack_sent$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_last_data_recv$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_last_data_recv"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_data_recv
     * }
     */
    public static final OfInt tcpi_last_data_recv$layout() {
        return tcpi_last_data_recv$LAYOUT;
    }

    private static final long tcpi_last_data_recv$OFFSET = 52;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_data_recv
     * }
     */
    public static final long tcpi_last_data_recv$offset() {
        return tcpi_last_data_recv$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_data_recv
     * }
     */
    public static int tcpi_last_data_recv(MemorySegment struct) {
        return struct.get(tcpi_last_data_recv$LAYOUT, tcpi_last_data_recv$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_data_recv
     * }
     */
    public static void tcpi_last_data_recv(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_last_data_recv$LAYOUT, tcpi_last_data_recv$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_last_ack_recv$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_last_ack_recv"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_ack_recv
     * }
     */
    public static final OfInt tcpi_last_ack_recv$layout() {
        return tcpi_last_ack_recv$LAYOUT;
    }

    private static final long tcpi_last_ack_recv$OFFSET = 56;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_ack_recv
     * }
     */
    public static final long tcpi_last_ack_recv$offset() {
        return tcpi_last_ack_recv$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_ack_recv
     * }
     */
    public static int tcpi_last_ack_recv(MemorySegment struct) {
        return struct.get(tcpi_last_ack_recv$LAYOUT, tcpi_last_ack_recv$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_last_ack_recv
     * }
     */
    public static void tcpi_last_ack_recv(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_last_ack_recv$LAYOUT, tcpi_last_ack_recv$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_pmtu$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_pmtu"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_pmtu
     * }
     */
    public static final OfInt tcpi_pmtu$layout() {
        return tcpi_pmtu$LAYOUT;
    }

    private static final long tcpi_pmtu$OFFSET = 60;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_pmtu
     * }
     */
    public static final long tcpi_pmtu$offset() {
        return tcpi_pmtu$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_pmtu
     * }
     */
    public static int tcpi_pmtu(MemorySegment struct) {
        return struct.get(tcpi_pmtu$LAYOUT, tcpi_pmtu$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_pmtu
     * }
     */
    public static void tcpi_pmtu(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_pmtu$LAYOUT, tcpi_pmtu$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_rcv_ssthresh$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_rcv_ssthresh"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_ssthresh
     * }
     */
    public static final OfInt tcpi_rcv_ssthresh$layout() {
        return tcpi_rcv_ssthresh$LAYOUT;
    }

    private static final long tcpi_rcv_ssthresh$OFFSET = 64;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_ssthresh
     * }
     */
    public static final long tcpi_rcv_ssthresh$offset() {
        return tcpi_rcv_ssthresh$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_ssthresh
     * }
     */
    public static int tcpi_rcv_ssthresh(MemorySegment struct) {
        return struct.get(tcpi_rcv_ssthresh$LAYOUT, tcpi_rcv_ssthresh$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_ssthresh
     * }
     */
    public static void tcpi_rcv_ssthresh(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_rcv_ssthresh$LAYOUT, tcpi_rcv_ssthresh$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_rtt$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_rtt"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_rtt
     * }
     */
    public static final OfInt tcpi_rtt$layout() {
        return tcpi_rtt$LAYOUT;
    }

    private static final long tcpi_rtt$OFFSET = 68;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_rtt
     * }
     */
    public static final long tcpi_rtt$offset() {
        return tcpi_rtt$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rtt
     * }
     */
    public static int tcpi_rtt(MemorySegment struct) {
        return struct.get(tcpi_rtt$LAYOUT, tcpi_rtt$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rtt
     * }
     */
    public static void tcpi_rtt(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_rtt$LAYOUT, tcpi_rtt$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_rttvar$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_rttvar"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_rttvar
     * }
     */
    public static final OfInt tcpi_rttvar$layout() {
        return tcpi_rttvar$LAYOUT;
    }

    private static final long tcpi_rttvar$OFFSET = 72;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_rttvar
     * }
     */
    public static final long tcpi_rttvar$offset() {
        return tcpi_rttvar$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rttvar
     * }
     */
    public static int tcpi_rttvar(MemorySegment struct) {
        return struct.get(tcpi_rttvar$LAYOUT, tcpi_rttvar$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rttvar
     * }
     */
    public static void tcpi_rttvar(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_rttvar$LAYOUT, tcpi_rttvar$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_snd_ssthresh$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_snd_ssthresh"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_ssthresh
     * }
     */
    public static final OfInt tcpi_snd_ssthresh$layout() {
        return tcpi_snd_ssthresh$LAYOUT;
    }

    private static final long tcpi_snd_ssthresh$OFFSET = 76;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_ssthresh
     * }
     */
    public static final long tcpi_snd_ssthresh$offset() {
        return tcpi_snd_ssthresh$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_ssthresh
     * }
     */
    public static int tcpi_snd_ssthresh(MemorySegment struct) {
        return struct.get(tcpi_snd_ssthresh$LAYOUT, tcpi_snd_ssthresh$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_ssthresh
     * }
     */
    public static void tcpi_snd_ssthresh(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_snd_ssthresh$LAYOUT, tcpi_snd_ssthresh$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_snd_cwnd$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_snd_cwnd"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_cwnd
     * }
     */
    public static final OfInt tcpi_snd_cwnd$layout() {
        return tcpi_snd_cwnd$LAYOUT;
    }

    private static final long tcpi_snd_cwnd$OFFSET = 80;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_cwnd
     * }
     */
    public static final long tcpi_snd_cwnd$offset() {
        return tcpi_snd_cwnd$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_cwnd
     * }
     */
    public static int tcpi_snd_cwnd(MemorySegment struct) {
        return struct.get(tcpi_snd_cwnd$LAYOUT, tcpi_snd_cwnd$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_cwnd
     * }
     */
    public static void tcpi_snd_cwnd(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_snd_cwnd$LAYOUT, tcpi_snd_cwnd$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_advmss$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_advmss"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_advmss
     * }
     */
    public static final OfInt tcpi_advmss$layout() {
        return tcpi_advmss$LAYOUT;
    }

    private static final long tcpi_advmss$OFFSET = 84;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_advmss
     * }
     */
    public static final long tcpi_advmss$offset() {
        return tcpi_advmss$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_advmss
     * }
     */
    public static int tcpi_advmss(MemorySegment struct) {
        return struct.get(tcpi_advmss$LAYOUT, tcpi_advmss$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_advmss
     * }
     */
    public static void tcpi_advmss(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_advmss$LAYOUT, tcpi_advmss$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_reordering$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_reordering"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_reordering
     * }
     */
    public static final OfInt tcpi_reordering$layout() {
        return tcpi_reordering$LAYOUT;
    }

    private static final long tcpi_reordering$OFFSET = 88;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_reordering
     * }
     */
    public static final long tcpi_reordering$offset() {
        return tcpi_reordering$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_reordering
     * }
     */
    public static int tcpi_reordering(MemorySegment struct) {
        return struct.get(tcpi_reordering$LAYOUT, tcpi_reordering$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_reordering
     * }
     */
    public static void tcpi_reordering(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_reordering$LAYOUT, tcpi_reordering$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_rcv_rtt$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_rcv_rtt"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_rtt
     * }
     */
    public static final OfInt tcpi_rcv_rtt$layout() {
        return tcpi_rcv_rtt$LAYOUT;
    }

    private static final long tcpi_rcv_rtt$OFFSET = 92;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_rtt
     * }
     */
    public static final long tcpi_rcv_rtt$offset() {
        return tcpi_rcv_rtt$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_rtt
     * }
     */
    public static int tcpi_rcv_rtt(MemorySegment struct) {
        return struct.get(tcpi_rcv_rtt$LAYOUT, tcpi_rcv_rtt$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_rtt
     * }
     */
    public static void tcpi_rcv_rtt(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_rcv_rtt$LAYOUT, tcpi_rcv_rtt$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_rcv_space$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_rcv_space"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_space
     * }
     */
    public static final OfInt tcpi_rcv_space$layout() {
        return tcpi_rcv_space$LAYOUT;
    }

    private static final long tcpi_rcv_space$OFFSET = 96;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_space
     * }
     */
    public static final long tcpi_rcv_space$offset() {
        return tcpi_rcv_space$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_space
     * }
     */
    public static int tcpi_rcv_space(MemorySegment struct) {
        return struct.get(tcpi_rcv_space$LAYOUT, tcpi_rcv_space$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_space
     * }
     */
    public static void tcpi_rcv_space(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_rcv_space$LAYOUT, tcpi_rcv_space$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_total_retrans$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_total_retrans"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_total_retrans
     * }
     */
    public static final OfInt tcpi_total_retrans$layout() {
        return tcpi_total_retrans$LAYOUT;
    }

    private static final long tcpi_total_retrans$OFFSET = 100;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_total_retrans
     * }
     */
    public static final long tcpi_total_retrans$offset() {
        return tcpi_total_retrans$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_total_retrans
     * }
     */
    public static int tcpi_total_retrans(MemorySegment struct) {
        return struct.get(tcpi_total_retrans$LAYOUT, tcpi_total_retrans$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_total_retrans
     * }
     */
    public static void tcpi_total_retrans(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_total_retrans$LAYOUT, tcpi_total_retrans$OFFSET, fieldValue);
    }

    private static final OfLong tcpi_pacing_rate$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpi_pacing_rate"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u64 tcpi_pacing_rate
     * }
     */
    public static final OfLong tcpi_pacing_rate$layout() {
        return tcpi_pacing_rate$LAYOUT;
    }

    private static final long tcpi_pacing_rate$OFFSET = 104;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u64 tcpi_pacing_rate
     * }
     */
    public static final long tcpi_pacing_rate$offset() {
        return tcpi_pacing_rate$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u64 tcpi_pacing_rate
     * }
     */
    public static long tcpi_pacing_rate(MemorySegment struct) {
        return struct.get(tcpi_pacing_rate$LAYOUT, tcpi_pacing_rate$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u64 tcpi_pacing_rate
     * }
     */
    public static void tcpi_pacing_rate(MemorySegment struct, long fieldValue) {
        struct.set(tcpi_pacing_rate$LAYOUT, tcpi_pacing_rate$OFFSET, fieldValue);
    }

    private static final OfLong tcpi_max_pacing_rate$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpi_max_pacing_rate"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u64 tcpi_max_pacing_rate
     * }
     */
    public static final OfLong tcpi_max_pacing_rate$layout() {
        return tcpi_max_pacing_rate$LAYOUT;
    }

    private static final long tcpi_max_pacing_rate$OFFSET = 112;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u64 tcpi_max_pacing_rate
     * }
     */
    public static final long tcpi_max_pacing_rate$offset() {
        return tcpi_max_pacing_rate$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u64 tcpi_max_pacing_rate
     * }
     */
    public static long tcpi_max_pacing_rate(MemorySegment struct) {
        return struct.get(tcpi_max_pacing_rate$LAYOUT, tcpi_max_pacing_rate$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u64 tcpi_max_pacing_rate
     * }
     */
    public static void tcpi_max_pacing_rate(MemorySegment struct, long fieldValue) {
        struct.set(tcpi_max_pacing_rate$LAYOUT, tcpi_max_pacing_rate$OFFSET, fieldValue);
    }

    private static final OfLong tcpi_bytes_acked$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpi_bytes_acked"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_acked
     * }
     */
    public static final OfLong tcpi_bytes_acked$layout() {
        return tcpi_bytes_acked$LAYOUT;
    }

    private static final long tcpi_bytes_acked$OFFSET = 120;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_acked
     * }
     */
    public static final long tcpi_bytes_acked$offset() {
        return tcpi_bytes_acked$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_acked
     * }
     */
    public static long tcpi_bytes_acked(MemorySegment struct) {
        return struct.get(tcpi_bytes_acked$LAYOUT, tcpi_bytes_acked$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_acked
     * }
     */
    public static void tcpi_bytes_acked(MemorySegment struct, long fieldValue) {
        struct.set(tcpi_bytes_acked$LAYOUT, tcpi_bytes_acked$OFFSET, fieldValue);
    }

    private static final OfLong tcpi_bytes_received$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpi_bytes_received"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_received
     * }
     */
    public static final OfLong tcpi_bytes_received$layout() {
        return tcpi_bytes_received$LAYOUT;
    }

    private static final long tcpi_bytes_received$OFFSET = 128;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_received
     * }
     */
    public static final long tcpi_bytes_received$offset() {
        return tcpi_bytes_received$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_received
     * }
     */
    public static long tcpi_bytes_received(MemorySegment struct) {
        return struct.get(tcpi_bytes_received$LAYOUT, tcpi_bytes_received$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_received
     * }
     */
    public static void tcpi_bytes_received(MemorySegment struct, long fieldValue) {
        struct.set(tcpi_bytes_received$LAYOUT, tcpi_bytes_received$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_segs_out$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_segs_out"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_segs_out
     * }
     */
    public static final OfInt tcpi_segs_out$layout() {
        return tcpi_segs_out$LAYOUT;
    }

    private static final long tcpi_segs_out$OFFSET = 136;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_segs_out
     * }
     */
    public static final long tcpi_segs_out$offset() {
        return tcpi_segs_out$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_segs_out
     * }
     */
    public static int tcpi_segs_out(MemorySegment struct) {
        return struct.get(tcpi_segs_out$LAYOUT, tcpi_segs_out$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_segs_out
     * }
     */
    public static void tcpi_segs_out(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_segs_out$LAYOUT, tcpi_segs_out$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_segs_in$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_segs_in"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_segs_in
     * }
     */
    public static final OfInt tcpi_segs_in$layout() {
        return tcpi_segs_in$LAYOUT;
    }

    private static final long tcpi_segs_in$OFFSET = 140;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_segs_in
     * }
     */
    public static final long tcpi_segs_in$offset() {
        return tcpi_segs_in$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_segs_in
     * }
     */
    public static int tcpi_segs_in(MemorySegment struct) {
        return struct.get(tcpi_segs_in$LAYOUT, tcpi_segs_in$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_segs_in
     * }
     */
    public static void tcpi_segs_in(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_segs_in$LAYOUT, tcpi_segs_in$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_notsent_bytes$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_notsent_bytes"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_notsent_bytes
     * }
     */
    public static final OfInt tcpi_notsent_bytes$layout() {
        return tcpi_notsent_bytes$LAYOUT;
    }

    private static final long tcpi_notsent_bytes$OFFSET = 144;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_notsent_bytes
     * }
     */
    public static final long tcpi_notsent_bytes$offset() {
        return tcpi_notsent_bytes$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_notsent_bytes
     * }
     */
    public static int tcpi_notsent_bytes(MemorySegment struct) {
        return struct.get(tcpi_notsent_bytes$LAYOUT, tcpi_notsent_bytes$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_notsent_bytes
     * }
     */
    public static void tcpi_notsent_bytes(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_notsent_bytes$LAYOUT, tcpi_notsent_bytes$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_min_rtt$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_min_rtt"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_min_rtt
     * }
     */
    public static final OfInt tcpi_min_rtt$layout() {
        return tcpi_min_rtt$LAYOUT;
    }

    private static final long tcpi_min_rtt$OFFSET = 148;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_min_rtt
     * }
     */
    public static final long tcpi_min_rtt$offset() {
        return tcpi_min_rtt$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_min_rtt
     * }
     */
    public static int tcpi_min_rtt(MemorySegment struct) {
        return struct.get(tcpi_min_rtt$LAYOUT, tcpi_min_rtt$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_min_rtt
     * }
     */
    public static void tcpi_min_rtt(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_min_rtt$LAYOUT, tcpi_min_rtt$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_data_segs_in$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_data_segs_in"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_data_segs_in
     * }
     */
    public static final OfInt tcpi_data_segs_in$layout() {
        return tcpi_data_segs_in$LAYOUT;
    }

    private static final long tcpi_data_segs_in$OFFSET = 152;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_data_segs_in
     * }
     */
    public static final long tcpi_data_segs_in$offset() {
        return tcpi_data_segs_in$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_data_segs_in
     * }
     */
    public static int tcpi_data_segs_in(MemorySegment struct) {
        return struct.get(tcpi_data_segs_in$LAYOUT, tcpi_data_segs_in$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_data_segs_in
     * }
     */
    public static void tcpi_data_segs_in(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_data_segs_in$LAYOUT, tcpi_data_segs_in$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_data_segs_out$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_data_segs_out"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_data_segs_out
     * }
     */
    public static final OfInt tcpi_data_segs_out$layout() {
        return tcpi_data_segs_out$LAYOUT;
    }

    private static final long tcpi_data_segs_out$OFFSET = 156;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_data_segs_out
     * }
     */
    public static final long tcpi_data_segs_out$offset() {
        return tcpi_data_segs_out$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_data_segs_out
     * }
     */
    public static int tcpi_data_segs_out(MemorySegment struct) {
        return struct.get(tcpi_data_segs_out$LAYOUT, tcpi_data_segs_out$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_data_segs_out
     * }
     */
    public static void tcpi_data_segs_out(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_data_segs_out$LAYOUT, tcpi_data_segs_out$OFFSET, fieldValue);
    }

    private static final OfLong tcpi_delivery_rate$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpi_delivery_rate"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u64 tcpi_delivery_rate
     * }
     */
    public static final OfLong tcpi_delivery_rate$layout() {
        return tcpi_delivery_rate$LAYOUT;
    }

    private static final long tcpi_delivery_rate$OFFSET = 160;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u64 tcpi_delivery_rate
     * }
     */
    public static final long tcpi_delivery_rate$offset() {
        return tcpi_delivery_rate$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u64 tcpi_delivery_rate
     * }
     */
    public static long tcpi_delivery_rate(MemorySegment struct) {
        return struct.get(tcpi_delivery_rate$LAYOUT, tcpi_delivery_rate$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u64 tcpi_delivery_rate
     * }
     */
    public static void tcpi_delivery_rate(MemorySegment struct, long fieldValue) {
        struct.set(tcpi_delivery_rate$LAYOUT, tcpi_delivery_rate$OFFSET, fieldValue);
    }

    private static final OfLong tcpi_busy_time$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpi_busy_time"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u64 tcpi_busy_time
     * }
     */
    public static final OfLong tcpi_busy_time$layout() {
        return tcpi_busy_time$LAYOUT;
    }

    private static final long tcpi_busy_time$OFFSET = 168;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u64 tcpi_busy_time
     * }
     */
    public static final long tcpi_busy_time$offset() {
        return tcpi_busy_time$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u64 tcpi_busy_time
     * }
     */
    public static long tcpi_busy_time(MemorySegment struct) {
        return struct.get(tcpi_busy_time$LAYOUT, tcpi_busy_time$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u64 tcpi_busy_time
     * }
     */
    public static void tcpi_busy_time(MemorySegment struct, long fieldValue) {
        struct.set(tcpi_busy_time$LAYOUT, tcpi_busy_time$OFFSET, fieldValue);
    }

    private static final OfLong tcpi_rwnd_limited$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpi_rwnd_limited"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u64 tcpi_rwnd_limited
     * }
     */
    public static final OfLong tcpi_rwnd_limited$layout() {
        return tcpi_rwnd_limited$LAYOUT;
    }

    private static final long tcpi_rwnd_limited$OFFSET = 176;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u64 tcpi_rwnd_limited
     * }
     */
    public static final long tcpi_rwnd_limited$offset() {
        return tcpi_rwnd_limited$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u64 tcpi_rwnd_limited
     * }
     */
    public static long tcpi_rwnd_limited(MemorySegment struct) {
        return struct.get(tcpi_rwnd_limited$LAYOUT, tcpi_rwnd_limited$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u64 tcpi_rwnd_limited
     * }
     */
    public static void tcpi_rwnd_limited(MemorySegment struct, long fieldValue) {
        struct.set(tcpi_rwnd_limited$LAYOUT, tcpi_rwnd_limited$OFFSET, fieldValue);
    }

    private static final OfLong tcpi_sndbuf_limited$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpi_sndbuf_limited"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u64 tcpi_sndbuf_limited
     * }
     */
    public static final OfLong tcpi_sndbuf_limited$layout() {
        return tcpi_sndbuf_limited$LAYOUT;
    }

    private static final long tcpi_sndbuf_limited$OFFSET = 184;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u64 tcpi_sndbuf_limited
     * }
     */
    public static final long tcpi_sndbuf_limited$offset() {
        return tcpi_sndbuf_limited$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u64 tcpi_sndbuf_limited
     * }
     */
    public static long tcpi_sndbuf_limited(MemorySegment struct) {
        return struct.get(tcpi_sndbuf_limited$LAYOUT, tcpi_sndbuf_limited$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u64 tcpi_sndbuf_limited
     * }
     */
    public static void tcpi_sndbuf_limited(MemorySegment struct, long fieldValue) {
        struct.set(tcpi_sndbuf_limited$LAYOUT, tcpi_sndbuf_limited$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_delivered$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_delivered"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_delivered
     * }
     */
    public static final OfInt tcpi_delivered$layout() {
        return tcpi_delivered$LAYOUT;
    }

    private static final long tcpi_delivered$OFFSET = 192;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_delivered
     * }
     */
    public static final long tcpi_delivered$offset() {
        return tcpi_delivered$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_delivered
     * }
     */
    public static int tcpi_delivered(MemorySegment struct) {
        return struct.get(tcpi_delivered$LAYOUT, tcpi_delivered$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_delivered
     * }
     */
    public static void tcpi_delivered(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_delivered$LAYOUT, tcpi_delivered$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_delivered_ce$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_delivered_ce"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_delivered_ce
     * }
     */
    public static final OfInt tcpi_delivered_ce$layout() {
        return tcpi_delivered_ce$LAYOUT;
    }

    private static final long tcpi_delivered_ce$OFFSET = 196;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_delivered_ce
     * }
     */
    public static final long tcpi_delivered_ce$offset() {
        return tcpi_delivered_ce$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_delivered_ce
     * }
     */
    public static int tcpi_delivered_ce(MemorySegment struct) {
        return struct.get(tcpi_delivered_ce$LAYOUT, tcpi_delivered_ce$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_delivered_ce
     * }
     */
    public static void tcpi_delivered_ce(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_delivered_ce$LAYOUT, tcpi_delivered_ce$OFFSET, fieldValue);
    }

    private static final OfLong tcpi_bytes_sent$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpi_bytes_sent"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_sent
     * }
     */
    public static final OfLong tcpi_bytes_sent$layout() {
        return tcpi_bytes_sent$LAYOUT;
    }

    private static final long tcpi_bytes_sent$OFFSET = 200;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_sent
     * }
     */
    public static final long tcpi_bytes_sent$offset() {
        return tcpi_bytes_sent$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_sent
     * }
     */
    public static long tcpi_bytes_sent(MemorySegment struct) {
        return struct.get(tcpi_bytes_sent$LAYOUT, tcpi_bytes_sent$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_sent
     * }
     */
    public static void tcpi_bytes_sent(MemorySegment struct, long fieldValue) {
        struct.set(tcpi_bytes_sent$LAYOUT, tcpi_bytes_sent$OFFSET, fieldValue);
    }

    private static final OfLong tcpi_bytes_retrans$LAYOUT = (OfLong)$LAYOUT.select(groupElement("tcpi_bytes_retrans"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_retrans
     * }
     */
    public static final OfLong tcpi_bytes_retrans$layout() {
        return tcpi_bytes_retrans$LAYOUT;
    }

    private static final long tcpi_bytes_retrans$OFFSET = 208;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_retrans
     * }
     */
    public static final long tcpi_bytes_retrans$offset() {
        return tcpi_bytes_retrans$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_retrans
     * }
     */
    public static long tcpi_bytes_retrans(MemorySegment struct) {
        return struct.get(tcpi_bytes_retrans$LAYOUT, tcpi_bytes_retrans$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u64 tcpi_bytes_retrans
     * }
     */
    public static void tcpi_bytes_retrans(MemorySegment struct, long fieldValue) {
        struct.set(tcpi_bytes_retrans$LAYOUT, tcpi_bytes_retrans$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_dsack_dups$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_dsack_dups"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_dsack_dups
     * }
     */
    public static final OfInt tcpi_dsack_dups$layout() {
        return tcpi_dsack_dups$LAYOUT;
    }

    private static final long tcpi_dsack_dups$OFFSET = 216;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_dsack_dups
     * }
     */
    public static final long tcpi_dsack_dups$offset() {
        return tcpi_dsack_dups$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_dsack_dups
     * }
     */
    public static int tcpi_dsack_dups(MemorySegment struct) {
        return struct.get(tcpi_dsack_dups$LAYOUT, tcpi_dsack_dups$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_dsack_dups
     * }
     */
    public static void tcpi_dsack_dups(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_dsack_dups$LAYOUT, tcpi_dsack_dups$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_reord_seen$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_reord_seen"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_reord_seen
     * }
     */
    public static final OfInt tcpi_reord_seen$layout() {
        return tcpi_reord_seen$LAYOUT;
    }

    private static final long tcpi_reord_seen$OFFSET = 220;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_reord_seen
     * }
     */
    public static final long tcpi_reord_seen$offset() {
        return tcpi_reord_seen$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_reord_seen
     * }
     */
    public static int tcpi_reord_seen(MemorySegment struct) {
        return struct.get(tcpi_reord_seen$LAYOUT, tcpi_reord_seen$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_reord_seen
     * }
     */
    public static void tcpi_reord_seen(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_reord_seen$LAYOUT, tcpi_reord_seen$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_rcv_ooopack$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_rcv_ooopack"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_ooopack
     * }
     */
    public static final OfInt tcpi_rcv_ooopack$layout() {
        return tcpi_rcv_ooopack$LAYOUT;
    }

    private static final long tcpi_rcv_ooopack$OFFSET = 224;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_ooopack
     * }
     */
    public static final long tcpi_rcv_ooopack$offset() {
        return tcpi_rcv_ooopack$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_ooopack
     * }
     */
    public static int tcpi_rcv_ooopack(MemorySegment struct) {
        return struct.get(tcpi_rcv_ooopack$LAYOUT, tcpi_rcv_ooopack$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_ooopack
     * }
     */
    public static void tcpi_rcv_ooopack(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_rcv_ooopack$LAYOUT, tcpi_rcv_ooopack$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_snd_wnd$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_snd_wnd"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_wnd
     * }
     */
    public static final OfInt tcpi_snd_wnd$layout() {
        return tcpi_snd_wnd$LAYOUT;
    }

    private static final long tcpi_snd_wnd$OFFSET = 228;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_wnd
     * }
     */
    public static final long tcpi_snd_wnd$offset() {
        return tcpi_snd_wnd$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_wnd
     * }
     */
    public static int tcpi_snd_wnd(MemorySegment struct) {
        return struct.get(tcpi_snd_wnd$LAYOUT, tcpi_snd_wnd$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_snd_wnd
     * }
     */
    public static void tcpi_snd_wnd(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_snd_wnd$LAYOUT, tcpi_snd_wnd$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_rcv_wnd$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_rcv_wnd"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_wnd
     * }
     */
    public static final OfInt tcpi_rcv_wnd$layout() {
        return tcpi_rcv_wnd$LAYOUT;
    }

    private static final long tcpi_rcv_wnd$OFFSET = 232;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_wnd
     * }
     */
    public static final long tcpi_rcv_wnd$offset() {
        return tcpi_rcv_wnd$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_wnd
     * }
     */
    public static int tcpi_rcv_wnd(MemorySegment struct) {
        return struct.get(tcpi_rcv_wnd$LAYOUT, tcpi_rcv_wnd$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rcv_wnd
     * }
     */
    public static void tcpi_rcv_wnd(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_rcv_wnd$LAYOUT, tcpi_rcv_wnd$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_rehash$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_rehash"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_rehash
     * }
     */
    public static final OfInt tcpi_rehash$layout() {
        return tcpi_rehash$LAYOUT;
    }

    private static final long tcpi_rehash$OFFSET = 236;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_rehash
     * }
     */
    public static final long tcpi_rehash$offset() {
        return tcpi_rehash$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rehash
     * }
     */
    public static int tcpi_rehash(MemorySegment struct) {
        return struct.get(tcpi_rehash$LAYOUT, tcpi_rehash$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_rehash
     * }
     */
    public static void tcpi_rehash(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_rehash$LAYOUT, tcpi_rehash$OFFSET, fieldValue);
    }

    private static final OfShort tcpi_total_rto$LAYOUT = (OfShort)$LAYOUT.select(groupElement("tcpi_total_rto"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u16 tcpi_total_rto
     * }
     */
    public static final OfShort tcpi_total_rto$layout() {
        return tcpi_total_rto$LAYOUT;
    }

    private static final long tcpi_total_rto$OFFSET = 240;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u16 tcpi_total_rto
     * }
     */
    public static final long tcpi_total_rto$offset() {
        return tcpi_total_rto$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u16 tcpi_total_rto
     * }
     */
    public static short tcpi_total_rto(MemorySegment struct) {
        return struct.get(tcpi_total_rto$LAYOUT, tcpi_total_rto$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u16 tcpi_total_rto
     * }
     */
    public static void tcpi_total_rto(MemorySegment struct, short fieldValue) {
        struct.set(tcpi_total_rto$LAYOUT, tcpi_total_rto$OFFSET, fieldValue);
    }

    private static final OfShort tcpi_total_rto_recoveries$LAYOUT = (OfShort)$LAYOUT.select(groupElement("tcpi_total_rto_recoveries"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u16 tcpi_total_rto_recoveries
     * }
     */
    public static final OfShort tcpi_total_rto_recoveries$layout() {
        return tcpi_total_rto_recoveries$LAYOUT;
    }

    private static final long tcpi_total_rto_recoveries$OFFSET = 242;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u16 tcpi_total_rto_recoveries
     * }
     */
    public static final long tcpi_total_rto_recoveries$offset() {
        return tcpi_total_rto_recoveries$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u16 tcpi_total_rto_recoveries
     * }
     */
    public static short tcpi_total_rto_recoveries(MemorySegment struct) {
        return struct.get(tcpi_total_rto_recoveries$LAYOUT, tcpi_total_rto_recoveries$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u16 tcpi_total_rto_recoveries
     * }
     */
    public static void tcpi_total_rto_recoveries(MemorySegment struct, short fieldValue) {
        struct.set(tcpi_total_rto_recoveries$LAYOUT, tcpi_total_rto_recoveries$OFFSET, fieldValue);
    }

    private static final OfInt tcpi_total_rto_time$LAYOUT = (OfInt)$LAYOUT.select(groupElement("tcpi_total_rto_time"));

    /**
     * Layout for field:
     * {@snippet lang=c :
     * __u32 tcpi_total_rto_time
     * }
     */
    public static final OfInt tcpi_total_rto_time$layout() {
        return tcpi_total_rto_time$LAYOUT;
    }

    private static final long tcpi_total_rto_time$OFFSET = 244;

    /**
     * Offset for field:
     * {@snippet lang=c :
     * __u32 tcpi_total_rto_time
     * }
     */
    public static final long tcpi_total_rto_time$offset() {
        return tcpi_total_rto_time$OFFSET;
    }

    /**
     * Getter for field:
     * {@snippet lang=c :
     * __u32 tcpi_total_rto_time
     * }
     */
    public static int tcpi_total_rto_time(MemorySegment struct) {
        return struct.get(tcpi_total_rto_time$LAYOUT, tcpi_total_rto_time$OFFSET);
    }

    /**
     * Setter for field:
     * {@snippet lang=c :
     * __u32 tcpi_total_rto_time
     * }
     */
    public static void tcpi_total_rto_time(MemorySegment struct, int fieldValue) {
        struct.set(tcpi_total_rto_time$LAYOUT, tcpi_total_rto_time$OFFSET, fieldValue);
    }

    /**
     * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
     * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
     */
    public static MemorySegment asSlice(MemorySegment array, long index) {
        return array.asSlice(layout().byteSize() * index);
    }

    /**
     * The size (in bytes) of this struct
     */
    public static long sizeof() { return layout().byteSize(); }

    /**
     * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
     */
    public static MemorySegment allocate(SegmentAllocator allocator) {
        return allocator.allocate(layout());
    }

    /**
     * Allocate an array of size {@code elementCount} using {@code allocator}.
     * The returned segment has size {@code elementCount * layout().byteSize()}.
     */
    public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
        return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
    }

    /**
     * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
     * The returned segment has size {@code layout().byteSize()}
     */
    public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
        return reinterpret(addr, 1, arena, cleanup);
    }

    /**
     * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
     * The returned segment has size {@code elementCount * layout().byteSize()}
     */
    public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
        return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy