struct tapi_rt_entry

Overview

Routing entry data structure More…

#include <tapi_cfg.h>

struct tapi_rt_entry {
    // fields

    struct sockaddr_storage dst;
    unsigned int prefix;
    struct sockaddr_storage gw;
    struct sockaddr_storage src;
    uint16_t flags;
    uint32_t metric;
    char dev[IF_NAMESIZE];
    uint32_t mtu;
    uint32_t win;
    uint32_t irtt;
    uint32_t hoplimit;
    char type[TYPE_NAMESIZE];
    uint32_t table;
    cfg_handle hndl;
};

Detailed Documentation

Routing entry data structure

Fields

struct sockaddr_storage dst

Route for this destination address

unsigned int prefix

Destination address prefix

struct sockaddr_storage gw

Gateway address (in case RTF_GATEWAY flag is set)

struct sockaddr_storage src

Default source address

uint16_t flags

Route flags

uint32_t metric

Route metric

char dev[IF_NAMESIZE]

Output interface name

uint32_t mtu

Route MTU value (for TCP)

uint32_t win

Route Window value (for TCP)

uint32_t irtt

Route IRTT value (for TCP)

uint32_t hoplimit

Route Hop Limit value (influences IPv6 Hop Limit and IPv4 Time To Live)

char type[TYPE_NAMESIZE]

Route Type value (for TCP)

uint32_t table

Route Table ID value (for TCP)

cfg_handle hndl

Handle of the entry in configurator