Test API to allocate L4 port

Overview

// global functions

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

Detailed Documentation

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.