#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <netinet/in.h>
#include "openapi_common.h"
#include "openapi_instru_nos.h"
Go to the source code of this file.
|
#define | BVIEW_BHD_DEFAULT_PKT_SAMPLING_METHOD BVIEW_BHD_AGENT_SAMPLING |
|
#define | BVIEW_BHD_DEST_UDP_PORT_MAX 65535 |
|
#define | BVIEW_BHD_DEST_UDP_PORT_MIN 1 |
|
#define | BVIEW_BHD_MAX_SUPPORTED_PORTS OPEN_ASIC_MAX_PORTS |
|
#define | BVIEW_BHD_MAX_UNITS 1 |
|
#define | BVIEW_BHD_SAMP_POOL_SIZE_MAX 100000 |
|
#define | BVIEW_BHD_SAMP_POOL_SIZE_MIN 1024 |
|
#define | BVIEW_BHD_SAMPLE_COUNT_MAX 30 |
|
#define | BVIEW_BHD_SAMPLE_COUNT_MIN 0 |
|
#define | BVIEW_BHD_SAMPLE_PERIODICITY_MAX (60*60) |
|
#define | BVIEW_BHD_SAMPLE_PERIODICITY_MIN 1 |
|
#define | BVIEW_BHD_SOURCE_UDP_PORT_MAX 65535 |
|
#define | BVIEW_BHD_SOURCE_UDP_PORT_MIN 1 |
|
#define | BVIEW_BHD_VLAN_MAX 4094 |
|
#define | BVIEW_BHD_VLAN_MIN 1 |
|
#define | BVIEW_BHD_WATERMARK_MAX 10000 |
|
#define | BVIEW_BHD_WATERMARK_MIN 100 |
|
#define | OPEN_BHD_MAX_PACKET_SIZE OPEN_INSTRU_MAX_PACKET_SIZE |
|
#define | OPEN_BHD_MAX_PORT_LIST_STR 256 |
|
#define | OPEN_BHD_MAX_PORT_STR 8 |
|
#define | OPEN_BHD_SFLOW_AGENT_NUM 1 |
|
#define | OPEN_BHD_SFLOW_SESSION 1 |
|
|
enum | OPEN_BHD_PKT_SAMPLING_METHOD_t { OPEN_BHD_AGENT_SAMPLING = (1 << 0),
OPEN_BHD_SFLOW_SAMPLING = (1 << 1),
OPEN_BHD_MAX_SAMPLING_METHOD
} |
|
|
open_error_t | openapiBhdAsicCapabilitiesGet (openapiClientHandle_t *clientHandle, int32_t asic, int32_t *sampling_capabilities) |
| BHD feature, asic sampling capabilities get. More...
|
|
open_error_t | openapiBhdBlackHoleCancel (openapiClientHandle_t *clientHandle, int32_t asic, int32_t sFlow, open_buffdesc *port_list) |
| BHD feature, cancel black hole. More...
|
|
open_error_t | openapiBhdBlackHoleConfigure (openapiClientHandle_t *clientHandle, int32_t asic, OPEN_BLACK_HOLE_CONFIG_t *config) |
| BHD feature, configure black hole. More...
|
|
open_error_t | openapiBhdPacketCountGet (openapiClientHandle_t *clientHandle, int32_t asic, uint64_t *count) |
| BHD feature, Black holed packet count get. More...
|
|
open_error_t | openapiBhdSflowSamplingStatusGet (openapiClientHandle_t *clientHandle, int32_t asic, int32_t port, open_buffdesc *port_list, OPEN_BHD_PORT_SFLOW_SAMPLING_STATUS_t *status) |
| BHD feature sflow configuration get function. More...
|
|