TA system options configuration (OBSOLETE)

Overview

<Untitled>

NOTE! This API is obsolete!

System parameters configuration must be used in modern tests. More…

// global functions

int tapi_cfg_net_route_flush(rcf_rpc_server* rpcs);
te_errno tapi_cfg_tcp_syncookies_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_syncookies_get(const char* ta, int* value);
te_errno tapi_cfg_tcp_timestamps_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_timestamps_get(const char* ta, int* value);
te_errno tapi_cfg_if_rp_filter_get(const char* ta, const char* ifname, int* rp_filter);
te_errno tapi_cfg_if_rp_filter_set(const char* ta, const char* ifname, int rp_filter, int* old_value);
te_errno tapi_cfg_if_all_rp_filter_get(const char* ta, int* rp_filter);
te_errno tapi_cfg_if_all_rp_filter_set(const char* ta, int rp_filter, int* old_value);
te_errno tapi_cfg_if_iface_ip4_fw_get(const char* ta, const char* ifname, int* iface_ip4_fw);
te_errno tapi_cfg_if_iface_ip4_fw_set(const char* ta, const char* ifname, int iface_ip4_fw, int* old_value);
te_errno tapi_cfg_if_arp_ignore_get(const char* ta, const char* ifname, int* arp_ignore);
te_errno tapi_cfg_if_arp_ignore_set(const char* ta, const char* ifname, int arp_ignore, int* old_value);
te_errno tapi_cfg_if_all_arp_ignore_get(const char* ta, int* arp_ignore);
te_errno tapi_cfg_if_all_arp_ignore_set(const char* ta, int arp_ignore, int* old_value);
te_errno tapi_cfg_tcp_keepalive_time_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_keepalive_time_get(const char* ta, int* value);
te_errno tapi_cfg_tcp_keepalive_probes_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_keepalive_probes_get(const char* ta, int* value);
te_errno tapi_cfg_tcp_keepalive_intvl_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_keepalive_intvl_get(const char* ta, int* value);
te_errno tapi_cfg_tcp_retries2_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_retries2_get(const char* ta, int* value);
te_errno tapi_cfg_tcp_orphan_retries_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_orphan_retries_get(const char* ta, int* value);
te_errno tapi_cfg_tcp_fin_timeout_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_fin_timeout_get(const char* ta, int* value);
te_errno tapi_cfg_tcp_synack_retries_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_synack_retries_get(const char* ta, int* value);
te_errno tapi_cfg_tcp_syn_retries_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_syn_retries_get(const char* ta, int* value);
te_errno tapi_cfg_core_busy_read_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_core_busy_read_get(const char* ta, int* value);
te_errno tapi_cfg_core_busy_poll_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_core_busy_poll_get(const char* ta, int* value);
te_errno tapi_cfg_core_somaxconn_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_core_somaxconn_get(const char* ta, int* value);
te_errno tapi_cfg_neigh_gc_thresh3_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_neigh_gc_thresh3_get(const char* ta, int* value);
te_errno tapi_cfg_igmp_max_memberships_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_igmp_max_memberships_get(const char* ta, int* value);
te_errno tapi_cfg_core_optmem_max_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_core_optmem_max_get(const char* ta, int* value);
te_errno tapi_cfg_tcp_max_syn_backlog_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_tcp_max_syn_backlog_get(const char* ta, int* value);
te_errno tapi_cfg_route_mtu_expires_set(const char* ta, int value, int* old_value);
te_errno tapi_cfg_route_mtu_expires_get(const char* ta, int* value);

Detailed Documentation

<Untitled>

NOTE! This API is obsolete!

System parameters configuration must be used in modern tests.

<Untitled>

API declaration for access to some system options via /proc/sys

Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.

Global Functions

int tapi_cfg_net_route_flush(rcf_rpc_server* rpcs)

Flush network routes.

Parameters:

rpcs

RPC server

Returns:

0 on success or -1 in case of failure

te_errno tapi_cfg_tcp_syncookies_set(const char* ta, int value, int* old_value)

Set a new TCP syncookies value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_syncookies_get(const char* ta, int* value)

Get TCP syncookies value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_tcp_timestamps_set(const char* ta, int value, int* old_value)

Set a new TCP timestamps value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_timestamps_get(const char* ta, int* value)

Get TCP timestamps value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_if_rp_filter_get(const char* ta, const char* ifname, int* rp_filter)

Get RPF filtering value of TA interface.

Parameters:

ta

Test agent name

ifname

Interface name

rp_filter

location for RPF filtering value

Returns:

Status code.

te_errno tapi_cfg_if_rp_filter_set(const char* ta, const char* ifname, int rp_filter, int* old_value)

Set RPF filtering value of TA interface.

Parameters:

ta

Test agent name

ifname

Interface name

rp_filter

New RPF filtering value

old_value

Location for previous RPF filtering value or NULL

Returns:

Status code.

te_errno tapi_cfg_if_all_rp_filter_get(const char* ta, int* rp_filter)

Get RPF filtering value of TA interface "all".

Parameters:

ta

Test agent name

rp_filter

location for RPF filtering value

Returns:

Status code.

te_errno tapi_cfg_if_all_rp_filter_set(const char* ta, int rp_filter, int* old_value)

Set RPF filtering value of TA interface "all".

Parameters:

ta

Test agent name

rp_filter

New RPF filtering value

old_value

Location for previous RPF filtering value or NULL

Returns:

Status code.

te_errno tapi_cfg_if_iface_ip4_fw_get(const char* ta, const char* ifname, int* iface_ip4_fw)

Get IP4 forwarding state of TA interface.

Parameters:

ta

Test agent name

ifname

Interface name

iface_ip4_fw

Location for forwarding state value

Returns:

Status code.

te_errno tapi_cfg_if_iface_ip4_fw_set(const char* ta, const char* ifname, int iface_ip4_fw, int* old_value)

Change IP4 forwarding state of TA interface.

Parameters:

ta

Test agent name

ifname

Interface name

iface_ip4_fw

Location for forwarding state value

old_value

Location for forwarding state value or NULL

Returns:

Status code.

te_errno tapi_cfg_if_arp_ignore_get(const char* ta, const char* ifname, int* arp_ignore)

Get arp_ignore value of TA interface.

Parameters:

ta

Test agent name

ifname

Interface name

arp_ignore

Location for arp_ignore value

Returns:

Status code.

te_errno tapi_cfg_if_arp_ignore_set(const char* ta, const char* ifname, int arp_ignore, int* old_value)

Set arp_ignore value of TA interface.

Parameters:

ta

Test agent name

ifname

Interface name

arp_ignore

New arp_ignore value

old_value

Location for previous arp_ignore value or NULL

Returns:

Status code.

te_errno tapi_cfg_if_all_arp_ignore_get(const char* ta, int* arp_ignore)

Get arp_ignore value of TA interface "all".

Parameters:

ta

Test agent name

arp_ignore

Location for arp_ignore value

Returns:

Status code.

te_errno tapi_cfg_if_all_arp_ignore_set(const char* ta, int arp_ignore, int* old_value)

Set arp_ignore value of TA interface "all".

Parameters:

ta

Test agent name

arp_ignore

New arp_ignore value

old_value

Location for previous arp_ignore value or NULL

Returns:

Status code.

te_errno tapi_cfg_tcp_keepalive_time_set(const char* ta, int value, int* old_value)

Set a new tcp_keepalive_time value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_keepalive_time_get(const char* ta, int* value)

Get tcp_keepalive_time value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_tcp_keepalive_probes_set(const char* ta, int value, int* old_value)

Set a new tcp_keepalive_probes value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_keepalive_probes_get(const char* ta, int* value)

Get tcp_keepalive_probes value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_tcp_keepalive_intvl_set(const char* ta, int value, int* old_value)

Set a new tcp_keepalive_intvl value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_keepalive_intvl_get(const char* ta, int* value)

Get tcp_keepalive_intvl value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_tcp_retries2_set(const char* ta, int value, int* old_value)

Set a new tcp_retries2 value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_retries2_get(const char* ta, int* value)

Get tcp_retries2 value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_tcp_orphan_retries_set(const char* ta, int value, int* old_value)

Set a new tcp_orphan_retries value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_orphan_retries_get(const char* ta, int* value)

Get tcp_orphan_retries value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_tcp_fin_timeout_set(const char* ta, int value, int* old_value)

Set a new tcp_fin_timeout value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_fin_timeout_get(const char* ta, int* value)

Get tcp_fin_timeout value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_tcp_synack_retries_set(const char* ta, int value, int* old_value)

Set a new tcp_synack_retries value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_synack_retries_get(const char* ta, int* value)

Get tcp_synack_retries value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_tcp_syn_retries_set(const char* ta, int value, int* old_value)

Set a new tcp_syn_retries value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_syn_retries_get(const char* ta, int* value)

Get tcp_syn_retries value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_core_busy_read_set(const char* ta, int value, int* old_value)

Set a new busy_read value.

Parameters:

ta

Test agent name.

value

Value to be set.

old_value

Location for previous value, or NULL.

Returns:

Status code.

te_errno tapi_cfg_core_busy_read_get(const char* ta, int* value)

Get busy_read value.

Parameters:

ta

Test agent name.

value

Location for the value.

Returns:

Status code.

te_errno tapi_cfg_core_busy_poll_set(const char* ta, int value, int* old_value)

Set a new busy_poll value.

Parameters:

ta

Test agent name.

value

Value to be set.

old_value

Location for previous value, or NULL.

Returns:

Status code.

te_errno tapi_cfg_core_busy_poll_get(const char* ta, int* value)

Get busy_poll value.

Parameters:

ta

Test agent name.

value

Location for the value.

Returns:

Status code.

te_errno tapi_cfg_core_somaxconn_set(const char* ta, int value, int* old_value)

Set a new somaxconn value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_core_somaxconn_get(const char* ta, int* value)

Get somaxconn value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_neigh_gc_thresh3_set(const char* ta, int value, int* old_value)

Set a new value to /proc/sys/net/ipv4/neigh/default/gc_thresh3.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_neigh_gc_thresh3_get(const char* ta, int* value)

Get value from /proc/sys/net/ipv4/neigh/default/gc_thresh3.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_igmp_max_memberships_set(const char* ta, int value, int* old_value)

Set a new igmp_max_memberships value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_igmp_max_memberships_get(const char* ta, int* value)

Get igmp_max_memberships value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_core_optmem_max_set(const char* ta, int value, int* old_value)

Set a new /proc/sys/net/core/optmem_max value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_core_optmem_max_get(const char* ta, int* value)

Get /proc/sys/net/core/optmem_max value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_tcp_max_syn_backlog_set(const char* ta, int value, int* old_value)

Set a new tcp_max_syn_backlog value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for previous value or NULL

Returns:

Status code

te_errno tapi_cfg_tcp_max_syn_backlog_get(const char* ta, int* value)

Get tcp_max_syn_backlog value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code

te_errno tapi_cfg_route_mtu_expires_set(const char* ta, int value, int* old_value)

Set a new route_mtu_expires value.

Parameters:

ta

Test agent name

value

Value to be set

old_value

Location for the previous value or NULL

Returns:

Status code

te_errno tapi_cfg_route_mtu_expires_get(const char* ta, int* value)

Get route_mtu_expires value.

Parameters:

ta

Test agent name

value

Location for the value

Returns:

Status code