PPPoE Server configuration

Overview

// global functions

te_errno tapi_cfg_pppoe_server_if_add(const char* ta, const char* ifname);
te_errno tapi_cfg_pppoe_server_if_del(const char* ta, const char* ifname);
te_errno tapi_cfg_pppoe_server_subnet_set(const char* ta, const char* subnet);
te_errno tapi_cfg_pppoe_server_subnet_get(const char* ta, char** subnet_p);
void tapi_cfg_pppoe_server_laddr_get(const char* ta, struct sockaddr** addr);
void tapi_cfg_pppoe_server_raddr_get(const char* ta, struct sockaddr** addr);

Detailed Documentation

Global Functions

te_errno tapi_cfg_pppoe_server_if_add(const char* ta, const char* ifname)

Add interface to PPPoE server configuration on the Test Agent.

Parameters:

ta

Test Agent

ifname

Interface to listen on

Returns:

Status code

te_errno tapi_cfg_pppoe_server_if_del(const char* ta, const char* ifname)

Delete interface from PPPoE server configuration on the Test Agent.

Parameters:

ta

Test Agent

ifname

Interface to remove

Returns:

Status code

te_errno tapi_cfg_pppoe_server_subnet_set(const char* ta, const char* subnet)

Configure subnet of PPPoE server to allocate local and remote addresses.

Parameters:

ta

Test Agent

subnet

String value of subnet XXX.XXX.XXX.XXX/prefix

Returns:

Status code

te_errno tapi_cfg_pppoe_server_subnet_get(const char* ta, char** subnet_p)

Get subnet of PPPoE server to allocate local and remote addresses.

Parameters:

ta

Test Agent

subnet_p

Returned pointer to subnet value. Note, it should be freed with free(3) when it is no longer needed.

Returns:

Status code

void tapi_cfg_pppoe_server_laddr_get(const char* ta, struct sockaddr** addr)

Get local IP address of PPPoE server.

Parameters:

ta

Test agent name.

addr

Local IP address. Note, it should be freed with free(3) when it is no longer needed.

void tapi_cfg_pppoe_server_raddr_get(const char* ta, struct sockaddr** addr)

Get starting remote IP address of PPPoE server.

Parameters:

ta

Test agent name.

addr

Starting remote IP address. Note, it should be freed with free(3) when it is no longer needed.