struct tcp4_message

Overview

struct tcp4_message {
    // fields

    struct in_addr src_addr;
    struct in_addr dst_addr;
    uint16_t src_port;
    uint16_t dst_port;
    uint8_t flags;
    uint16_t payload_len;
    uint8_t* payload;
};

Detailed Documentation

Fields

struct in_addr src_addr

source address

struct in_addr dst_addr

destination address

uint16_t src_port

source port in host byte order

uint16_t dst_port

destination port in host byte order

uint8_t flags

TCP checksum

uint16_t payload_len

payload length

uint8_t* payload

TCP payload