ICMP

Overview

Copyright (C) 2019-2022 OKTET Labs Ltd. More…

// global functions

te_errno tapi_udp_ip_icmp_ip_eth_csap_create(const char* ta_name, int sid, const char* eth_dev, unsigned int receive_mode, const uint8_t* loc_eth, const uint8_t* rem_eth, const struct sockaddr* loc_saddr, const struct sockaddr* rem_saddr, const struct sockaddr* msg_loc_saddr, const struct sockaddr* msg_rem_saddr, int af, csap_handle_t* udp_csap);
te_errno tapi_tcp_ip_icmp_ip_eth_csap_create(const char* ta_name, int sid, const char* eth_dev, unsigned int receive_mode, const uint8_t* loc_eth, const uint8_t* rem_eth, const struct sockaddr* loc_saddr, const struct sockaddr* rem_saddr, const struct sockaddr* msg_loc_saddr, const struct sockaddr* msg_rem_saddr, int af, csap_handle_t* tcp_csap);

Detailed Documentation

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

Global Functions

te_errno tapi_udp_ip_icmp_ip_eth_csap_create(const char* ta_name, int sid, const char* eth_dev, unsigned int receive_mode, const uint8_t* loc_eth, const uint8_t* rem_eth, const struct sockaddr* loc_saddr, const struct sockaddr* rem_saddr, const struct sockaddr* msg_loc_saddr, const struct sockaddr* msg_rem_saddr, int af, csap_handle_t* udp_csap)

Create ‘udp.ip.icmp.ip.eth’ CSAP on the specified Agent, IPv4 or IPv6 version depends on the af.

Parameters:

ta_name

Test Agent name

sid

RCF SID

eth_dev

Name of Ethernet interface

receive_mode

Bitmask with receive mode, see ‘enum tad_eth_recv_mode’ in tad_common.h. Use TAD_ETH_RECV_DEF by default.

loc_eth

Local MAC address (or NULL)

rem_eth

Remote MAC address (or NULL)

loc_saddr

Local IP address (or NULL)

rem_saddr

Remote IP address (or NULL)

msg_loc_saddr

Local IP address/port of ICMP Error message (or NULL)

msg_rem_saddr

Remote IP address/port of ICMP Error message (or NULL)

af

Address family

udp_csap

Location for the CSAP handle (OUT)

Returns:

Status code

te_errno tapi_tcp_ip_icmp_ip_eth_csap_create(const char* ta_name, int sid, const char* eth_dev, unsigned int receive_mode, const uint8_t* loc_eth, const uint8_t* rem_eth, const struct sockaddr* loc_saddr, const struct sockaddr* rem_saddr, const struct sockaddr* msg_loc_saddr, const struct sockaddr* msg_rem_saddr, int af, csap_handle_t* tcp_csap)

Create ‘tcp.ip.icmp.ip.eth’ CSAP on the specified Agent, IPv4 or IPv6 version depends on the af.

Parameters:

ta_name

Test Agent name

sid

RCF SID

eth_dev

Name of Ethernet interface

receive_mode

Bitmask with receive mode, see ‘enum tad_eth_recv_mode’ in tad_common.h. Use TAD_ETH_RECV_DEF by default.

loc_eth

Local MAC address (or NULL)

rem_eth

Remote MAC address (or NULL)

loc_saddr

Local IP address (or NULL)

rem_saddr

Remote IP address (or NULL)

msg_loc_saddr

Local IP address/port of ICMP Error message (or NULL)

msg_rem_saddr

Remote IP address/port of ICMP Error message (or NULL)

af

Address family

tcp_csap

Location for the CSAP handle (OUT)

Returns:

Status code