struct udp4_datagram

Overview

Structure of UDP/IPv4 datagram More…

#include <tapi_udp.h>

struct udp4_datagram {
    // fields

    struct timeval ts;
    struct in_addr src_addr;
    struct in_addr dst_addr;
    uint16_t src_port;
    uint16_t dst_port;
    uint16_t checksum;
    uint16_t payload_len;
    uint8_t* payload;
};

Detailed Documentation

Structure of UDP/IPv4 datagram

Fields

struct timeval ts

packet timestamp

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

uint16_t checksum

UDP checksum

uint16_t payload_len

payload length

uint8_t* payload

UDP payload