BroadView™ API Guide and Reference Manual
Data Structures | Macros | Typedefs | Enumerations | Enumerator | Variables
BroadView Packet Trace Feature Declarations And Definitions [BVIEW]
API Definitions

Data Structures

struct  _bview_ecmp_lag_hashing_info_
 
struct  _bview_ecmp_member_info_
 
struct  _bview_pt_hashing_info_
 
struct  _bview_pt_lag_hashing_info_
 
struct  _pt_drop_counter_report_::_counter_
 
struct  _pt_5_tuple_params_s_
 
struct  _pt_drop_counter_report_
 
struct  _pt_drop_reason_config_
 
struct  _pt_drop_reason_data_
 
struct  _pt_trace_profile_
 
struct  BVIEW_PT_DROP_REASON_MASK_t
 
struct  BVIEW_PT_LOOKUP_RESULT_MASK_t
 
struct  BVIEW_PT_PACKET_t
 

Macros

#define BVIEW_ECMP_MAX_LEVEL   2
 
#define BVIEW_ECMP_MAX_MEMBERS   8
 
#define BVIEW_MAX_TRUNK_MEMBERS   8
 
#define BVIEW_PT_MAX_DST_PORT   65535
 
#define BVIEW_PT_MAX_PACKET_LIMIT   10
 
#define BVIEW_PT_MAX_PACKET_SIZE   1558
 
#define BVIEW_PT_MAX_PROTOCOL   144
 
#define BVIEW_PT_MAX_SRC_PORT   65535
 
#define BVIEW_PT_MAX_WC   3
 
#define BVIEW_PT_MIN_DST_PORT   0
 
#define BVIEW_PT_MIN_PACKET_LIMIT   1
 
#define BVIEW_PT_MIN_PROTOCOL   0
 
#define BVIEW_PT_MIN_SRC_PORT   0
 
#define PKT_TRACE_ECMP_1_INDEX   0
 
#define PKT_TRACE_ECMP_2_INDEX   1
 

Typedefs

typedef struct
_bview_ecmp_member_info_ 
BVIEW_ECMP_MEMBER_t
 
typedef struct
_pt_drop_counter_report_ 
BVIEW_PT_DROP_COUNTER_REPORT_t
 
typedef struct
_pt_drop_reason_config_ 
BVIEW_PT_DROP_REASON_CONFIG_t
 
typedef struct
_pt_drop_reason_data_ 
BVIEW_PT_DROP_REASON_DATA_t
 
typedef enum _pt_drop_reason_type_ BVIEW_PT_DROP_REASON_TYPE_t
 
typedef struct
_bview_ecmp_lag_hashing_info_ 
BVIEW_PT_ECMP_HASHING_INFO_t
 
typedef enum
_bview_pt_hashing_info_mask_ 
BVIEW_PT_HASHING_INFO_MASK_t
 
typedef struct
_bview_pt_hashing_info_ 
BVIEW_PT_HASHING_INFO_t
 
typedef struct
_bview_pt_lag_hashing_info_ 
BVIEW_PT_LAG_HASHING_INFO_t
 
typedef enum
_pt_lookup_result_type_ 
BVIEW_PT_LOOKUP_RESULT_TYPE_t
 
typedef enum _pt_resolution_type_t BVIEW_PT_RESOULTION_t
 
typedef enum _stp_state_ BVIEW_PT_STP_STATE_t
 
typedef struct _pt_trace_profile_ BVIEW_PT_TRACE_PROFILE_t
 
typedef BVIEW_STATUS(* BVIEW_PT_TRIGGER_CALLBACK_t )(int asic, void *cookie, BVIEW_PT_DROP_REASON_DATA_t dropReasonData)
 
typedef struct
_pt_5_tuple_params_s_ 
PT_5_TUPLE_PARAMS_t
 
typedef enum _pt_config_tuple_mask_ PT_CONFIG_TUPLE_MASK_t
 

Enumerations

enum  _bview_pt_hashing_info_mask_ {
  BVIEW_PT_NO_HASHING_RESOLUTION = 1<<0, BVIEW_PT_ECMP_1_RESOLUTION = 1<<1, BVIEW_PT_ECMP_2_RESOLUTION = 1<<2, BVIEW_PT_TRUNK_RESOLUTION = 1<<3,
  BVIEW_PT_FABRIC_TRUNK_RESOLUTION = 1<<4, BVIEW_PT_DGPP_RESOLUTION = 1 <<5
}
 
enum  _pt_config_tuple_mask_ {
  PT_CONFIG_TUPLE_SRC_IP = (1 << 0), PT_CONFIG_TUPLE_DST_IP = (1 << 1), PT_CONFIG_TUPLE_PROTOCOL = (1 << 2), PT_CONFIG_TUPLE_SRC_PORT = (1 << 3),
  PT_CONFIG_TUPLE_DST_PORT = (1 << 4)
}
 
enum  _pt_drop_reason_type_ {
  BVIEW_PT_VLAN_XLATE_MISS_DROP, BVIEW_PT_BPDU_DROP, BVIEW_PT_PROTOCOL_PKT_DROP, BVIEW_PT_CML_DROP,
  BVIEW_PT_SRC_ROUTE_DROP, BVIEW_PT_L2_SRC_DISCARD_DROP, BVIEW_PT_L2SRC_STATIC_MOVE_DROP, BVIEW_PT_L2DST_DISCARD_DROP,
  BVIEW_PT_CFI_OR_L3DISABLE_DROP, BVIEW_PT_HIGIG_MH_TYPE1_DROP, BVIEW_PT_DISC_STAGE_DROP, BVIEW_PT_SW1_INVALID_VLAN_DROP,
  BVIEW_PT_HIGIG_HDR_ERROR_DROP, BVIEW_PT_LAG_FAILOVER_DROP, BVIEW_PT_MACSA0_DROP, BVIEW_PT_VFP_DROP,
  BVIEW_PT_VLAN_CC_OR_PBT_DROP, BVIEW_PT_CLASS_BASED_SM_DROP, BVIEW_PT_MPLS_STAGE_DROP, BVIEW_PT_TIME_SYNC_PKT_DROP,
  BVIEW_PT_MY_STATION_DROP, BVIEW_PT_BAD_UDP_CHECKSUM_DROP, BVIEW_PT_NIV_FORWARDING_DROP, BVIEW_PT_NIV_RPF_CHECK_FAIL_DROP,
  BVIEW_PT_PVLAN_VP_EFILTER_DROP, BVIEW_PT_TRILL_HEADER_VERSION_NONZERO_DROP, BVIEW_PT_TRILL_ADJACENCY_CHECK_FAIL_DROP, BVIEW_PT_TRILL_RBRIDGE_LOOKUP_MISS_DROP,
  BVIEW_PT_TRILL_UC_HDR_MC_MACDA_DROP, BVIEW_PT_TRILL_SLOWPATH_DROP, BVIEW_PT_CORE_IS_IS_PKT_DROP, BVIEW_PT_TRILL_RPF_CHECK_FAIL_DROP,
  BVIEW_PT_TRILL_PKT_WITH_SNAP_ENCAP_DROP, BVIEW_PT_TRILL_ING_RBRIDGE_EQ_EGR_RBRIDGE_DROP, BVIEW_PT_TRILL_HOPCOUNT_CHECK_FAIL_DROP, BVIEW_PT_BFD_TERMINATED_DROP,
  BVIEW_PT_L3DST_DISCARD_DROP, BVIEW_PT_TUNNEL_DECAP_ECN_DROP, BVIEW_PT_L3_PKT_RESOURCE_DROP, BVIEW_PT_IPV4_HEADER_ERROR_DROP,
  BVIEW_PT_L3_IPV6_PKT_RESOURCE_DROP, BVIEW_PT_IPV6_HEADER_ERROR_DROP, BVIEW_PT_INGRESS_PORT_FWD_STATE_DROP, BVIEW_PT_FIELD_PROCESSOR_DROP,
  BVIEW_PT_MULTICAST_DROP, BVIEW_PT_BITMAP_ZERO_DROP, BVIEW_PT_POLICY_DROP, BVIEW_PT_DOS_L4_HEADER_ERROR_DROP,
  BVIEW_PT_MTU_ERROR_DROP, BVIEW_PT_RECV_TUNNELED_PKT_ERROR_DROP, BVIEW_PT_VLAN_ERROR_DROP, BVIEW_PT_HIGIG_HEADER_ERROR_DROP,
  BVIEW_PT_MC_IPMC_INDEX_ERROR_DROP, BVIEW_PT_PARITY_ERROR_DROP, BVIEW_PT_REVERSE_RPF_ERROR_DROP, BVIEW_PT_DST_DISCARD_BIT_ERROR_DROP,
  BVIEW_PT_ECMP_CALCULATION_ERROR_DROP, BVIEW_PT_MPLS_SEQ_NUM_ERROR_DROP, BVIEW_PT_FIELD_PROCESSOR_REDIRECT_ERROR_DROP, BVIEW_PT_INVALID_L2MC_ENTRY_DROP,
  BVIEW_PT_NEXTHOP_ZERO_DROP, BVIEW_PT_MAX_DROP_REASON
}
 
enum  _pt_lookup_result_type_ {
  BVIEW_PT_LOOKUPINVALID = 0, BVIEW_PT_LOOKUPFIRSTVLANTRANSLATIONHIT = 1, BVIEW_PT_LOOKUPSECONDVLANTRANSLATIONHIT = 2, BVIEW_PT_LOOKUPFORWARDINGVLANVALID = 3,
  BVIEW_PT_LOOKUPL2SRCHIT = 6, BVIEW_PT_LOOKUPL2SRCSTATIC = 7, BVIEW_PT_LOOKUPL2DSTHIT = 8, BVIEW_PT_LOOKUPL2CACHEHIT = 9,
  BVIEW_PT_LOOKUPL3SRCHOSTHIT = 10, BVIEW_PT_LOOKUPL3DESTHOSTHIT = 11, BVIEW_PT_LOOKUPL3DESTROUTEHIT = 12, BVIEW_PT_LOOKUPL2SRCMISS = 13,
  BVIEW_PT_LOOKUPDOSATTACK = 14, BVIEW_PT_LOOKUPIPTUNNELHIT = 15, BVIEW_PT_LOOKUPMPLSLABEL1HIT = 16, BVIEW_PT_LOOKUPMPLSLABEL2HIT = 17,
  BVIEW_PT_LOOKUPMPLSTERMINATED = 18, BVIEW_PT_LOOKUPMYSTATIONHIT = 19, BVIEW_PT_LOOKUPCOUNT = 20
}
 
enum  _pt_resolution_type_t {
  BVIEW_PT_RESOLUTIONUNKOWN = 0, BVIEW_PT_RESOLUTIONCONTROLPKT = 1, BVIEW_PT_RESOLUTIONOAMPKT = 2, BVIEW_PT_RESOLUTIONBFDPKT = 3,
  BVIEW_PT_RESOLUTIONBPDUPKT = 4, BVIEW_PT_RESOLUTION1588PKT = 6, BVIEW_PT_RESOLUTIONKNOWNL2UCPKT = 8, BVIEW_PT_RESOLUTIONUNKNOWNL2UCPKT = 9,
  BVIEW_PT_RESOLUTIONKNOWNL2MCPKT = 10, BVIEW_PT_RESOLUTIONUNKNOWNL2MCPKT = 11, BVIEW_PT_RESOLUTIONL2BCPKT = 12, BVIEW_PT_RESOLUTIONKNOWNL3UCPKT = 16,
  BVIEW_PT_RESOLUTIONUNKNOWNL3UCPKT = 17, BVIEW_PT_RESOLUTIONKNOWNIPMCPKT = 18, BVIEW_PT_RESOLUTIONUNKNOWNIPMCPKT = 19, BVIEW_PT_RESOLUTIONKNOWNMPLSL2PKT = 24,
  BVIEW_PT_RESOLUTIONUNKNOWNMPLSPKT = 25, BVIEW_PT_RESOLUTIONKNOWNMPLSL3PKT = 26, BVIEW_PT_RESOLUTIONKNOWNMPLSPKT = 28, BVIEW_PT_RESOLUTIONKNOWNMIMPKT = 32,
  BVIEW_PT_RESOLUTIONUNKNOWNMIMPKT = 33, BVIEW_PT_RESOLUTIONKNOWNTRILLPKT = 40, BVIEW_PT_RESOLUTIONUNKNOWNTRILLPKT = 41, BVIEW_PT_RESOLUTIONKNOWNNIVPKT = 48,
  BVIEW_PT_RESOLUTIONUNKNOWNNIVPKT = 49, BVIEW_PT_RESOLUTIONKNOWNL2GREPKT = 50, BVIEW_PT_RESOLUTIONKNOWNVXLANPKT = 51, BVIEW_PT_RESOLUTIONCOUNT = 52
}
 
enum  _stp_state_ { BVIEW_DISABLED =0, BVIEW_FORWARDING, BVIEW_DISCRADING, BVIEW_LEARNING }
 

Variables

uint64_t _pt_drop_counter_report_::_counter_::counter
 
unsigned char BVIEW_PT_PACKET_t::data [BVIEW_PT_MAX_PACKET_SIZE]
 
struct
_pt_drop_counter_report_::_counter_ 
_pt_drop_counter_report_::data [BVIEW_PT_MAX_DROP_REASON][BVIEW_ASIC_MAX_PORTS]
 
BVIEW_PORT_MASK_t _pt_trace_profile_::destPortMask
 
BVIEW_PT_DROP_REASON_TYPE_t _pt_drop_reason_data_::dropReason
 
BVIEW_PT_DROP_REASON_MASK_t _pt_drop_reason_config_::dropReasonMask
 
unsigned int _pt_5_tuple_params_s_::dst_ip
 
unsigned int _pt_5_tuple_params_s_::dst_port
 
BVIEW_PT_ECMP_HASHING_INFO_t _bview_pt_hashing_info_::ecmp [BVIEW_ECMP_MAX_LEVEL]
 
BVIEW_ECMP_MEMBER_t _bview_ecmp_lag_hashing_info_::ecmp_egress_info
 
int _bview_ecmp_lag_hashing_info_::ecmp_group
 
BVIEW_ECMP_MEMBER_t _bview_ecmp_lag_hashing_info_::ecmp_group_members [BVIEW_ECMP_MAX_MEMBERS]
 
int _bview_pt_lag_hashing_info_::fabric_trunk
 
int _bview_pt_lag_hashing_info_::fabric_trunk_member
 
int _bview_pt_lag_hashing_info_::fabric_trunk_members [BVIEW_MAX_TRUNK_MEMBERS]
 
BVIEW_PT_HASHING_INFO_MASK_t _bview_pt_hashing_info_::flags
 
BVIEW_PT_HASHING_INFO_t _pt_trace_profile_::hashingInfo
 
int _bview_ecmp_member_info_::ip
 
BVIEW_PT_LAG_HASHING_INFO_t _bview_pt_hashing_info_::lag
 
BVIEW_PT_LOOKUP_RESULT_MASK_t _pt_trace_profile_::lookupResult
 
int _bview_ecmp_member_info_::member
 
BVIEW_PT_PACKET_t _pt_drop_reason_data_::packet
 
BVIEW_PT_PACKET_t _pt_trace_profile_::packet
 
int _pt_drop_reason_config_::packetCount
 
BVIEW_PT_RESOULTION_t _pt_trace_profile_::packetResolution
 
int _pt_drop_reason_config_::packetThreshold
 
BVIEW_PORT_MASK_t _pt_drop_reason_config_::pbmp
 
unsigned int BVIEW_PT_PACKET_t::pkt_len
 
int _pt_drop_reason_data_::port
 
int _bview_ecmp_member_info_::port
 
int _pt_trace_profile_::port
 
unsigned int _pt_5_tuple_params_s_::protocol
 
bool _pt_drop_reason_config_::sendDropedPacket
 
unsigned int _pt_5_tuple_params_s_::src_ip
 
unsigned int _pt_5_tuple_params_s_::src_port
 
BVIEW_PT_STP_STATE_t _pt_trace_profile_::stpState
 
bool _pt_drop_reason_config_::traceProfile
 
int _bview_pt_lag_hashing_info_::trunk
 
int _bview_pt_lag_hashing_info_::trunk_member
 
int _bview_pt_lag_hashing_info_::trunk_members [BVIEW_MAX_TRUNK_MEMBERS]
 
unsigned int _pt_5_tuple_params_s_::tuple_mask
 
BVIEW_MASK_BASE_UNIT BVIEW_PT_DROP_REASON_MASK_t::value [BVIEW_MASK_SIZE(BVIEW_PT_MAX_DROP_REASON)]
 
BVIEW_MASK_BASE_UNIT BVIEW_PT_LOOKUP_RESULT_MASK_t::value [BVIEW_MASK_SIZE(BVIEW_PT_LOOKUPCOUNT)]
 

Detailed Description