enum tapi_packetdrill_ip_version_t

Overview

Flavors of IP versions we support. More…

#include <tapi_packetdrill.h>

enum tapi_packetdrill_ip_version_t {
    TAPI_PACKETDRILL_IP_UNKNOWN            = -1,
    TAPI_PACKETDRILL_IP_VERSION_4,
    TAPI_PACKETDRILL_IP_VERSION_4_MAPPED_6,
    TAPI_PACKETDRILL_IP_VERSION_6,
};

Detailed Documentation

Flavors of IP versions we support.

Enum Values

TAPI_PACKETDRILL_IP_VERSION_4

Native IPv4, with AF_INET sockets and IPv4 addresses.

TAPI_PACKETDRILL_IP_VERSION_4_MAPPED_6

IPv4-Mapped IPv6 addresses: (see RFC 4291 sec. 2.5.5.2) we use AF_INET6 sockets but all connect(), bind(), and accept() calls are for IPv4 addresses mapped into IPv6 address space. So all interface addresses and packets on the wire are IPv4.

TAPI_PACKETDRILL_IP_VERSION_6

Native IPv6, with AF_INET6 sockets and IPv6 addresses.