Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
openapi_ping.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2018 Broadcom
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_ping.h
28 *
29 * @purpose APIs for issuing ping to a host or IPv4/IPv6 address
30 *
31 * @component OpEN
32 *
33 * @note This code must not include any ICOS header files.
34 *
35 * @create 03/29/2018
36 *
37 * @end
38 *
39 **********************************************************************/
40 #ifndef OPENAPI_PING_H_INCLUDED
41 #define OPENAPI_PING_H_INCLUDED
42 
43 #define OPEN_PING_STRING_SIZE 2048
44 #define OPEN_PING_ADDRESS_MAX_LEN 256
45 #define OPEN_PING_DEFAULT_PROBE_SIZE 0
46 #define OPEN_PING_OUT_INTF_STRING_SIZE 32
47 #define OPEN_PING_CALLBACK_STR_MAX_LEN 256
48 
49 typedef enum
50 {
55 
56 typedef enum
57 {
61 
62 typedef enum
63 {
70 
71 /*****************************************************************/
90  open_buffdesc *address,
91  open_buffdesc *output);
92 
93 /*****************************************************************/
115  open_buffdesc *address,
116  uint32_t pingCount,
117  open_buffdesc *output);
118 
119 /*****************************************************************/
141  open_buffdesc *address,
142  uint32_t pingInterval,
143  open_buffdesc *output);
144 
145 /*****************************************************************/
167  open_buffdesc *address,
168  uint32_t pingSize,
169  open_buffdesc *output);
170 
171 /*****************************************************************/
193  open_buffdesc *address,
195  open_buffdesc *output);
196 
197 /*****************************************************************/
229  open_buffdesc *address,
230  uint32_t pingCount,
231  uint32_t pingInterval,
232  uint32_t pingSize,
234  open_buffdesc *output);
235 
236 /*****************************************************************/
262  open_buffdesc *vrfName,
263  OPEN_AF_t family,
264  open_buffdesc *address,
265  OPEN_PING_SOURCE_TYPE_t srcType,
266  uint32_t srcIntf,
267  open_buffdesc *srcAddr,
268  open_buffdesc *output);
269 
270 /*****************************************************************/
305  open_buffdesc *vrfName,
306  OPEN_AF_t family,
307  open_buffdesc *address,
308  uint32_t pingCount,
309  uint32_t pingInterval,
310  uint32_t pingSize,
311  OPEN_PING_SOURCE_TYPE_t srcType,
312  uint32_t intIfNum,
313  open_buffdesc *srcAddr,
314  open_buffdesc *output);
315 
316 #endif
317 
open_error_t openapiPingAddressWithCount(openapiClientHandle_t *client_handle, open_buffdesc *address, uint32_t pingCount, open_buffdesc *output)
Ping host or IPv4/IPv6 Address with specific count.
OPEN_PING_SOURCE_INTF_TYPE_t
Definition: openapi_ping.h:56
open_error_t openapiPingAddressWithInterval(openapiClientHandle_t *client_handle, open_buffdesc *address, uint32_t pingInterval, open_buffdesc *output)
Ping host or IPv4/IPv6 Address with specific interval.
open_error_t openapiPingAddressWithSourceInterface(openapiClientHandle_t *client_handle, open_buffdesc *address, OPEN_PING_SOURCE_INTF_TYPE_t srcIntf, open_buffdesc *output)
Ping host or IPv4/IPv6 Address with source interface.
Ping Unspecified Address Type.
Definition: openapi_ping.h:53
OPEN_PING_ADDR_TYPE_t
Definition: openapi_ping.h:49
Ping IPv4 Address Type.
Definition: openapi_ping.h:51
Ping Ipv6 Address Type.
Definition: openapi_ping.h:52
Ping IP Address/Hostname/IPv6 Address with source interface as service port.
Definition: openapi_ping.h:64
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiPingWithSource(openapiClientHandle_t *client_handle, open_buffdesc *vrfName, OPEN_AF_t family, open_buffdesc *address, OPEN_PING_SOURCE_TYPE_t srcType, uint32_t srcIntf, open_buffdesc *srcAddr, open_buffdesc *output)
Ping host or IPv4/IPv6 Address with given source.
Ping IP Address/Hostname/IPv6 Address without source.
Definition: openapi_ping.h:68
Ping IP Address/Hostname/IPv6 Address with source interface as network port.
Definition: openapi_ping.h:59
OPEN_AF_t
OPEN uses these enumerators to indicate address family, IPV4 or IPV6.
Ping IP Address/Hostname/IPv6 Address with source interface as routing interface. ...
Definition: openapi_ping.h:66
Ping IP Address/Hostname/IPv6 Address with source address.
Definition: openapi_ping.h:67
open_error_t openapiPingAddressWithPDUSize(openapiClientHandle_t *client_handle, open_buffdesc *address, uint32_t pingSize, open_buffdesc *output)
Ping host or IPv4/IPv6 Address with specific probe size.
open_error_t openapiPingAddressExplicit(openapiClientHandle_t *client_handle, open_buffdesc *address, uint32_t pingCount, uint32_t pingInterval, uint32_t pingSize, OPEN_PING_SOURCE_INTF_TYPE_t srcIntf, open_buffdesc *output)
Ping host or IPv4/IPv6 Address with all parameters given at a time.
Ping IP Address/Hostname/IPv6 Address with source interface as service port.
Definition: openapi_ping.h:58
OPEN_PING_SOURCE_TYPE_t
Definition: openapi_ping.h:62
Ping IP Address/Hostname/IPv6 Address with source interface as network port.
Definition: openapi_ping.h:65
open_error_t openapiPingAddress(openapiClientHandle_t *client_handle, open_buffdesc *address, open_buffdesc *output)
Ping host or IPv4/IPv6 Address.
open_error_t openapiPing(openapiClientHandle_t *client_handle, open_buffdesc *vrfName, OPEN_AF_t family, open_buffdesc *address, uint32_t pingCount, uint32_t pingInterval, uint32_t pingSize, OPEN_PING_SOURCE_TYPE_t srcType, uint32_t intIfNum, open_buffdesc *srcAddr, open_buffdesc *output)
Ping host or IPv4/IPv6 Address with all parameters.