struct tapi_packetdrill_opts

Overview

Packetdrill test tool options More…

#include <tapi_packetdrill.h>

struct tapi_packetdrill_opts {
    // fields

    tapi_packetdrill_ip_version_t ip_version;
    const char* ip_version_str;
    int bind_port;
    int connect_port;
    const struct sockaddr* local_ip;
    const struct sockaddr* remote_ip;
    const struct sockaddr* gateway_ip;
    const struct sockaddr* netmask_ip;
    char* non_fatal;
    bool is_client;
    const char* wire_device;
    const struct sockaddr* wire_server_ip;
    int wire_server_port;
    char src_test_dir[PATH_MAX];
    char short_test_name[PATH_MAX];
    const char* prefix;
};

Detailed Documentation

Packetdrill test tool options

Fields

tapi_packetdrill_ip_version_t ip_version

v4, v4-mapped-v6, v6

const char* ip_version_str

String representation of IP version, is set in build_argv() function

int bind_port

local port for bind()

int connect_port

remote port for connect()

const struct sockaddr* local_ip

local interface IP

const struct sockaddr* remote_ip

remote interface IP

const struct sockaddr* gateway_ip

gateway interface IP

const struct sockaddr* netmask_ip

network mask

char* non_fatal

treat asserts as non-fatal: packet,syscall

bool is_client

be client or server

const char* wire_device

iface name

const struct sockaddr* wire_server_ip

IP of on-the-wire server

int wire_server_port

server server listens on

char src_test_dir[PATH_MAX]

Path to packetdrill script

char short_test_name[PATH_MAX]

Short packetdrill script name

const char* prefix

String to pass as a prefix before ‘packetdrill’