L4 port allocation

Overview

Allocate TCP and UDP port numbers that no other test is using, either anywhere on an agent or from a given range. More…

// global functions

te_errno tapi_cfg_l4_port_alloc(const char* ta, int family, int type, uint16_t* port);

Detailed Documentation

Allocate TCP and UDP port numbers that no other test is using, either anywhere on an agent or from a given range.

Global Functions

te_errno tapi_cfg_l4_port_alloc(const char* ta, int family, int type, uint16_t* port)

Allocate free L4 port.

Parameters:

family

Address family.

type

SOCK_STREAM or SOCK_DGRAM.

port

Location for allocated port.

Returns:

Status code.