Network Base configuration
Overview
// global functions te_errno tapi_cfg_base_ipv4_fw(const char* ta, bool enable); te_errno tapi_cfg_base_ipv4_fw_enabled(const char* ta, bool* enabled); te_errno tapi_cfg_ipv4_fw_set(const char* ta, const char* ifname, bool enable); te_errno tapi_cfg_ipv4_fw_get(const char* ta, const char* ifname, bool* enabled); static te_errno tapi_cfg_ipv4_fw_enable(const char* ta, const char* ifname); static te_errno tapi_cfg_ipv4_fw_disable(const char* ta, const char* ifname); te_errno tapi_cfg_ipv6_fw_set(const char* ta, const char* ifname, bool enable); te_errno tapi_cfg_ipv6_fw_get(const char* ta, const char* ifname, bool* enabled); static te_errno tapi_cfg_ipv6_fw_enable(const char* ta, const char* ifname); static te_errno tapi_cfg_ipv6_fw_disable(const char* ta, const char* ifname); static te_errno tapi_cfg_base_ipv6_fw(const char* ta, bool enable); static te_errno tapi_cfg_base_ipv6_fw_enabled(const char* ta, bool* enabled); // macros #define TAPI_CFG_IPVLAN_FLAG_BRIDGE #define TAPI_CFG_IPVLAN_FLAG_DEFAULT #define TAPI_CFG_IPVLAN_FLAG_PRIVATE #define TAPI_CFG_IPVLAN_FLAG_VEPA #define TAPI_CFG_IPVLAN_MODE_DEFAULT #define TAPI_CFG_IPVLAN_MODE_L2 #define TAPI_CFG_IPVLAN_MODE_L3 #define TAPI_CFG_IPVLAN_MODE_L3S #define TAPI_CFG_MACVLAN_MODE_BRIDGE #define TAPI_CFG_MACVLAN_MODE_PASSTHRU #define TAPI_CFG_MACVLAN_MODE_PRIVATE #define TAPI_CFG_MACVLAN_MODE_VEPA
Detailed Documentation
Global Functions
te_errno tapi_cfg_base_ipv4_fw(const char* ta, bool enable)
Enable/disable IPv4 forwarding on a Test Agent.
Parameters:
ta |
TA name |
enable |
|
Returns:
Status code.
te_errno tapi_cfg_base_ipv4_fw_enabled(const char* ta, bool* enabled)
Get IPv4 forwarding status on a Test Agent.
Parameters:
ta |
TA name |
enabled |
|
Returns:
Status code.
te_errno tapi_cfg_ipv4_fw_set(const char* ta, const char* ifname, bool enable)
Enable/disable IPv4 forwarding on a specified network interface
Parameters:
ta |
TA name |
ifname |
Name of network interface |
enable |
|
Returns:
Status code
te_errno tapi_cfg_ipv4_fw_get(const char* ta, const char* ifname, bool* enabled)
Get IPv4 forwarding status of a specified network interface
Parameters:
ta |
TA name |
ifname |
Name of network interface |
enabled |
|
Returns:
Status code
static te_errno tapi_cfg_ipv4_fw_enable(const char* ta, const char* ifname)
It’s a wrapper for tapi_cfg_ipv4_fw_set() to enable IPv4 forwarding on a specified network interface
static te_errno tapi_cfg_ipv4_fw_disable(const char* ta, const char* ifname)
It’s a wrapper for tapi_cfg_ipv4_fw_set() to disable IPv4 forwarding on a specified network interface
te_errno tapi_cfg_ipv6_fw_set(const char* ta, const char* ifname, bool enable)
Enable/disable IPv6 forwarding on a specified network interface
Parameters:
ta |
TA name |
ifname |
Name of network interface |
enable |
|
Returns:
Status code
te_errno tapi_cfg_ipv6_fw_get(const char* ta, const char* ifname, bool* enabled)
Get IPv6 forwarding status of a specified network interface
Parameters:
ta |
TA name |
ifname |
Name of network interface |
enabled |
|
Returns:
Status code
static te_errno tapi_cfg_ipv6_fw_enable(const char* ta, const char* ifname)
It’s a wrapper for tapi_cfg_ipv6_fw_set() to enable IPv6 forwarding on a specified network interface
static te_errno tapi_cfg_ipv6_fw_disable(const char* ta, const char* ifname)
It’s a wrapper for tapi_cfg_ipv6_fw_set() to disable IPv6 forwarding on a specified network interface
static te_errno tapi_cfg_base_ipv6_fw(const char* ta, bool enable)
It’s a wrapper for tapi_cfg_ipv6_fw_set() to enable/disable IPv6 forwarding on a Test Agent. It sets forwarding to the interface “all”.
static te_errno tapi_cfg_base_ipv6_fw_enabled(const char* ta, bool* enabled)
It’s a wrapper for tapi_cfg_ipv6_fw_get() to get IPv6 forwarding status on a Test Agent, i.e. forwarding status of the interface “all”.
Macros
#define TAPI_CFG_IPVLAN_FLAG_BRIDGE
IP VLAN interface flag bridge
#define TAPI_CFG_IPVLAN_FLAG_DEFAULT
IP VLAN default flag value
#define TAPI_CFG_IPVLAN_FLAG_PRIVATE
IP VLAN interface flag private
#define TAPI_CFG_IPVLAN_FLAG_VEPA
IP VLAN interface flag vepa
#define TAPI_CFG_IPVLAN_MODE_DEFAULT
IP VLAN default mode value
#define TAPI_CFG_IPVLAN_MODE_L2
IP VLAN interface mode l2
#define TAPI_CFG_IPVLAN_MODE_L3
IP VLAN interface mode l3
#define TAPI_CFG_IPVLAN_MODE_L3S
IP VLAN interface mode l3s
#define TAPI_CFG_MACVLAN_MODE_BRIDGE
MAC VLAN interface mode: talk to bridge ports directly.
#define TAPI_CFG_MACVLAN_MODE_PASSTHRU
MAC VLAN interface mode: take over the underlying device.
#define TAPI_CFG_MACVLAN_MODE_PRIVATE
MAC VLAN interface mode: don’t talk to other macvlans.
#define TAPI_CFG_MACVLAN_MODE_VEPA
MAC VLAN interface mode: talk to other ports through ext bridge.