OpenNSL API Guide and Reference Manual
Data Structures | Files | Macros | Typedefs | Enumerations | Functions
Types

Data Structures

struct  opennsl_etag_s
 ETAG structure. More...
 
struct  opennsl_flow_logical_field_s
 Flow Logical Field. More...
 
struct  opennsl_priority_mapping_s
 
struct  opennsl_vlan_action_set_s
 Initialize a VLAN tag action set structure. More...
 
struct  opennsl_vntag_s
 VNTAG structure. More...
 

Files

file  typesX.h
 

Macros

#define OPENNSL_COS_COUNT   8
 
#define OPENNSL_COS_DEFAULT   4
 
#define OPENNSL_COS_INVALID   -1
 
#define OPENNSL_COS_MAX   7
 
#define OPENNSL_COS_MIN   0
 
#define OPENNSL_DSCP_ECN   0x100
 
#define OPENNSL_FIELD_STAT_ID_COUNTER_GET(_stat_id)   _SHR_FIELD_STAT_ID_COUNTER_GET(_stat_id)
 
#define OPENNSL_FIELD_STAT_ID_PROCESSOR_GET(_stat_id)   _SHR_FIELD_STAT_ID_PROCESSOR_GET(_stat_id)
 
#define OPENNSL_FIELD_STAT_ID_SET(_stat_id, _proc, _ctr)   _SHR_FIELD_STAT_ID_SET(_stat_id, _proc, _ctr)
 
#define OPENNSL_FLOW_MAX_NOF_LOGICAL_FIELDS   20
 
#define OPENNSL_GPORT_INVALID   _SHR_GPORT_INVALID
 
#define OPENNSL_GPORT_IS_COSQ(_gport)   _SHR_GPORT_IS_COSQ(_gport)
 
#define OPENNSL_GPORT_IS_MCAST_QUEUE_GROUP(_gport)   _SHR_GPORT_IS_MCAST_QUEUE_GROUP(_gport)
 
#define OPENNSL_GPORT_IS_SCHEDULER(_gport)   _SHR_GPORT_IS_SCHEDULER(_gport)
 
#define OPENNSL_GPORT_IS_TRAP(_gport)   _SHR_GPORT_IS_TRAP(_gport)
 
#define OPENNSL_GPORT_IS_TRUNK(_gport)   _SHR_GPORT_IS_TRUNK(_gport)
 
#define OPENNSL_GPORT_IS_UCAST_QUEUE_GROUP(_gport)   _SHR_GPORT_IS_UCAST_QUEUE_GROUP(_gport)
 
#define OPENNSL_GPORT_LOCAL_CPU   _SHR_GPORT_LOCAL_CPU
 
#define OPENNSL_GPORT_LOCAL_GET(_gport)
 
#define OPENNSL_GPORT_LOCAL_SET(_gport, _port)   _SHR_GPORT_LOCAL_SET(_gport, _port)
 
#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_CORE_GET(_gport)
 
#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_CORE_QUEUE_SET(_gport, _core, _qid)   _SHR_GPORT_MCAST_QUEUE_GROUP_CORE_QUEUE_SET(_gport, _core, _qid)
 
#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_GET(_gport)
 
#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_QID_GET(_gport)
 
#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_QUEUE_GET(_gport)
 
#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_QUEUE_SET(_gport, _qid)   _SHR_GPORT_MCAST_QUEUE_GROUP_QUEUE_SET(_gport, _qid)
 
#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_SET(_gport, _qid)   _SHR_GPORT_MCAST_QUEUE_GROUP_SET(_gport, _qid)
 
#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_GET(_gport)
 
#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_SYSQID_SET(_gport, _sysport_id, _qid)   _SHR_GPORT_MCAST_QUEUE_GROUP_SYSQID_SET(_gport, _sysport_id, _qid)
 
#define OPENNSL_GPORT_MIRROR_GET(_gport)
 
#define OPENNSL_GPORT_MIRROR_SET(_gport, _value)   _SHR_GPORT_MIRROR_SET(_gport, _value)
 
#define OPENNSL_GPORT_MODPORT_MODID_GET(_gport)
 
#define OPENNSL_GPORT_MODPORT_PORT_GET(_gport)
 
#define OPENNSL_GPORT_MODPORT_SET(_gport, _module, _port)   _SHR_GPORT_MODPORT_SET(_gport, _module, _port)
 
#define OPENNSL_GPORT_SCHEDULER_CORE_GET(_gport)   _SHR_GPORT_SCHEDULER_CORE_GET(_gport)
 
#define OPENNSL_GPORT_SCHEDULER_CORE_SET(_gport, _scheduler_id, _core_id)   _SHR_GPORT_SCHEDULER_CORE_SET(_gport, _scheduler_id, _core_id)
 
#define OPENNSL_GPORT_SCHEDULER_GET(_gport)   _SHR_GPORT_SCHEDULER_GET(_gport)
 
#define OPENNSL_GPORT_SCHEDULER_NODE_SET(_gport, _scheduler_level, _scheduler_id)   _SHR_GPORT_SCHEDULER_NODE_SET(_gport, _scheduler_level,_scheduler_id)
 
#define OPENNSL_GPORT_SCHEDULER_SET(_gport, _scheduler_id)   _SHR_GPORT_SCHEDULER_SET(_gport, _scheduler_id)
 
#define OPENNSL_GPORT_TRAP_GET_ID(_gport)
 
#define OPENNSL_GPORT_TRAP_GET_SNOOP_STRENGTH(_gport)   _SHR_GPORT_TRAP_GET_SNOOP_STRENGTH(_gport)
 
#define OPENNSL_GPORT_TRAP_GET_STRENGTH(_gport)   _SHR_GPORT_TRAP_GET_STRENGTH(_gport)
 
#define OPENNSL_GPORT_TRAP_SET(_gport, _trap_id, _trap_strength, _snoop_strength)   _SHR_GPORT_TRAP_SET(_gport, _trap_id, _trap_strength, _snoop_strength)
 
#define OPENNSL_GPORT_TRUNK_GET(_gport)
 
#define OPENNSL_GPORT_TRUNK_SET(_gport, _trunk_id)   _SHR_GPORT_TRUNK_SET(_gport, _trunk_id)
 
#define OPENNSL_GPORT_TUNNEL_ID_GET(_gport)
 
#define OPENNSL_GPORT_TUNNEL_ID_SET(_gport, _tunnel_id)   (_SHR_GPORT_TUNNEL_ID_SET(_gport, _tunnel_id))
 
#define OPENNSL_GPORT_TYPE_CHILD   _SHR_GPORT_TYPE_CHILD
 
#define OPENNSL_GPORT_TYPE_COSQ   _SHR_GPORT_TYPE_COSQ
 
#define OPENNSL_GPORT_TYPE_DESTMOD_QUEUE_GROUP   _SHR_GPORT_TYPE_DESTMOD_QUEUE_GROUP
 
#define OPENNSL_GPORT_TYPE_EGRESS_CHILD   _SHR_GPORT_TYPE_EGRESS_CHILD
 
#define OPENNSL_GPORT_TYPE_EGRESS_GROUP   _SHR_GPORT_TYPE_EGRESS_GROUP
 
#define OPENNSL_GPORT_TYPE_EGRESS_MODPORT   _SHR_GPORT_TYPE_EGRESS_MODPORT
 
#define OPENNSL_GPORT_TYPE_LOCAL   _SHR_GPORT_TYPE_LOCAL
 
#define OPENNSL_GPORT_TYPE_MCAST   _SHR_GPORT_TYPE_MCAST
 
#define OPENNSL_GPORT_TYPE_MCAST_QUEUE_GROUP   _SHR_GPORT_TYPE_MCAST_QUEUE_GROUP
 
#define OPENNSL_GPORT_TYPE_MCAST_SUBSCRIBER_QUEUE_GROUP   _SHR_GPORT_TYPE_MCAST_SUBSCRIBER_QUEUE_GROUP
 
#define OPENNSL_GPORT_TYPE_MODPORT   _SHR_GPORT_TYPE_MODPORT
 
#define OPENNSL_GPORT_TYPE_NONE   _SHR_GPORT_NONE
 
#define OPENNSL_GPORT_TYPE_PROFILE   _SHR_GPORT_TYPE_PROFILE
 
#define OPENNSL_GPORT_TYPE_SCHEDULER   _SHR_GPORT_TYPE_SCHEDULER
 
#define OPENNSL_GPORT_TYPE_UCAST_QUEUE_GROUP   _SHR_GPORT_TYPE_UCAST_QUEUE_GROUP
 
#define OPENNSL_GPORT_TYPE_UCAST_SUBSCRIBER_QUEUE_GROUP   _SHR_GPORT_TYPE_UCAST_SUBSCRIBER_QUEUE_GROUP
 
#define OPENNSL_GPORT_UCAST_QUEUE_GROUP_QID_GET(_gport)
 
#define OPENNSL_GPORT_UCAST_QUEUE_GROUP_SET(_gport, _qid)   _SHR_GPORT_UCAST_QUEUE_GROUP_SET(_gport, _qid)
 
#define OPENNSL_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_GET(_gport)
 
#define OPENNSL_GPORT_UCAST_QUEUE_GROUP_SYSQID_SET(_gport, _sysport_id, _qid)   _SHR_GPORT_UCAST_QUEUE_GROUP_SYSQID_SET(_gport, _sysport_id, _qid)
 
#define opennsl_htonl(_l)   (_l)
 
#define opennsl_htons(_s)   (_s)
 
#define opennsl_ntohl(_l)   (_l)
 
#define opennsl_ntohs(_s)   (_s)
 
#define OPENNSL_PBMP_AND(pbm_a, pbm_b)   _SHR_PBMP_AND(pbm_a, pbm_b)
 
#define OPENNSL_PBMP_ASSIGN(dst, src)   _SHR_PBMP_ASSIGN(dst, src)
 
#define OPENNSL_PBMP_CLEAR(pbm)   _SHR_PBMP_CLEAR(pbm)
 
#define OPENNSL_PBMP_COUNT(pbm, count)   _SHR_PBMP_COUNT(pbm, count)
 
#define OPENNSL_PBMP_EQ(pbm_a, pbm_b)   _SHR_PBMP_EQ(pbm_a, pbm_b)
 
#define OPENNSL_PBMP_IS_NULL(pbm)   _SHR_PBMP_IS_NULL(pbm)
 
#define OPENNSL_PBMP_ITER(bmp, port)   _SHR_PBMP_ITER((bmp), (port))
 
#define OPENNSL_PBMP_MEMBER(bmp, port)   _SHR_PBMP_MEMBER((bmp), (port))
 
#define OPENNSL_PBMP_NEGATE(pbm_a, pbm_b)   _SHR_PBMP_NEGATE(pbm_a, pbm_b)
 
#define OPENNSL_PBMP_NEQ(pbm_a, pbm_b)   _SHR_PBMP_NEQ(pbm_a, pbm_b)
 
#define OPENNSL_PBMP_NOT_NULL(pbm)   _SHR_PBMP_NOT_NULL(pbm)
 
#define OPENNSL_PBMP_OR(pbm_a, pbm_b)   _SHR_PBMP_OR(pbm_a, pbm_b)
 
#define OPENNSL_PBMP_PORT_ADD(pbm, port)   _SHR_PBMP_PORT_ADD(pbm, port)
 
#define OPENNSL_PBMP_PORT_FLIP(pbm, port)   _SHR_PBMP_PORT_FLIP(pbm, port)
 
#define OPENNSL_PBMP_PORT_MAX   _SHR_PBMP_PORT_MAX
 
#define OPENNSL_PBMP_PORT_REMOVE(pbm, port)   _SHR_PBMP_PORT_REMOVE(pbm, port)
 
#define OPENNSL_PBMP_PORT_SET(pbm, port)   _SHR_PBMP_PORT_SET(pbm, port)
 
#define OPENNSL_PBMP_REMOVE(pbm_a, pbm_b)   _SHR_PBMP_REMOVE(pbm_a, pbm_b)
 
#define OPENNSL_PBMP_XOR(pbm_a, pbm_b)   _SHR_PBMP_XOR(pbm_a, pbm_b)
 
#define OPENNSL_PRIO_BLACK   0x1000
 
#define OPENNSL_PRIO_CTAG   0x200
 
#define OPENNSL_PRIO_DROP_FIRST   OPENNSL_PRIO_RED
 
#define OPENNSL_PRIO_DROP_LAST   0x800
 
#define OPENNSL_PRIO_GREEN   0x400
 
#define OPENNSL_PRIO_MASK   0xff
 
#define OPENNSL_PRIO_MAX   7
 
#define OPENNSL_PRIO_MIN   0
 
#define OPENNSL_PRIO_PRESERVE   OPENNSL_PRIO_DROP_LAST
 
#define OPENNSL_PRIO_RED   0x100
 
#define OPENNSL_PRIO_SECONDARY   0x2000
 
#define OPENNSL_PRIO_STAG   0x100
 
#define OPENNSL_PRIO_YELLOW   0x200
 
#define OPENNSL_TRUNK_INVALID   ((opennsl_trunk_t) -1)
 
#define OPENNSL_VLAN_COUNT   (OPENNSL_VLAN_MAX - OPENNSL_VLAN_MIN + 1)
 
#define OPENNSL_VLAN_DEFAULT   ((opennsl_vlan_t)0x0001)
 
#define OPENNSL_VLAN_MAX   4095
 
#define OPENNSL_VLAN_MIN   0
 
#define OPENNSL_VLAN_NONE   ((opennsl_vlan_t)0x0000)
 
#define OPENNSL_VLAN_VEC_CLR(vec, n)   SHR_BITCLR(vec, n)
 
#define OPENNSL_VLAN_VEC_GET(vec, n)   SHR_BITGET(vec, n)
 
#define OPENNSL_VLAN_VEC_SET(vec, n)   SHR_BITSET(vec, n)
 
#define OPENNSL_VLAN_VEC_ZERO(vec)
 

Typedefs

typedef enum opennsl_color_e opennsl_color_t
 opennsl_color_t
 
typedef int opennsl_cos_queue_t
 opennsl_cos_queue_t
 
typedef int opennsl_cos_t
 opennsl_cos_t
 
typedef struct opennsl_etag_s opennsl_etag_t
 ETAG structure.
 
typedef uint16 opennsl_ethertype_t
 opennsl_ethertype_t
 
typedef int opennsl_fabric_distribution_t
 Multicast distribution set.
 
typedef int opennsl_failover_t
 Failover Object.
 
typedef enum opennsl_field_stat_e opennsl_field_stat_t
 opennsl_field_stat_e
 
typedef struct
opennsl_flow_logical_field_s 
opennsl_flow_logical_field_t
 Flow Logical Field.
 
typedef int opennsl_gport_t
 GPORT (generic port) definitions.
 
typedef int opennsl_if_group_t
 opennsl_if_group_t
 
typedef int opennsl_if_t
 opennsl_if_t
 
typedef uint8 opennsl_ip6_t [16]
 opennsl_ip6_t
 
typedef uint32 opennsl_ip_t
 opennsl_ip_t
 
typedef int opennsl_l4_port_t
 opennsl_l4_port_t
 
typedef uint8 opennsl_mac_t [6]
 opennsl_mac_t
 
typedef int opennsl_module_t
 opennsl_module_t
 
typedef uint32 opennsl_mpls_label_t
 opennsl_mpls_label_t
 
typedef int opennsl_multicast_t
 opennsl_multicast_t
 
typedef _shr_pbmp_t opennsl_pbmp_t
 opennsl_pbmp_t
 
typedef int opennsl_policer_t
 opennsl_policer_t
 
typedef int opennsl_port_t
 Set the default tag protocol ID (TPID) for the specified port.
 
typedef struct
opennsl_priority_mapping_s 
opennsl_priority_mapping_t
 
typedef enum
opennsl_reserved_enum_e 
opennsl_reserved_enum_t
 
typedef int opennsl_stg_t
 opennsl_stg_t
 
typedef int opennsl_switch_network_group_t
 Split Horizon Network Group.
 
typedef int opennsl_trill_name_t
 opennsl_trill_name_t
 
typedef int opennsl_trunk_t
 opennsl_trunk_t
 
typedef int opennsl_tsn_flowset_t
 TSN flow set.
 
typedef int opennsl_tsn_pri_map_t
 TSN priority map id.
 
typedef int opennsl_tsn_sr_flowset_t
 SR flow set.
 
typedef uint32 opennsl_tunnel_id_t
 opennsl_tunnel_id_t
 
typedef struct
opennsl_vlan_action_set_s 
opennsl_vlan_action_set_t
 Initialize a VLAN tag action set structure.
 
typedef enum opennsl_vlan_action_e opennsl_vlan_action_t
 VLAN Action definitions.
 
typedef enum
opennsl_vlan_pcp_action_e 
opennsl_vlan_pcp_action_t
 VLAN Pcp Action definitions.
 
typedef uint16 opennsl_vlan_t
 opennsl_vlan_t
 
typedef enum
opennsl_vlan_tpid_action_e 
opennsl_vlan_tpid_action_t
 VLAN TPID Action definitions.
 
typedef uint32 opennsl_vlan_vector_t [_SHR_BITDCLSIZE(OPENNSL_VLAN_COUNT)]
 opennsl_vlan_vector_t
 
typedef struct opennsl_vntag_s opennsl_vntag_t
 VNTAG structure.
 
typedef opennsl_vlan_t opennsl_vpn_t
 opennsl_vpn_t
 
typedef int opennsl_vrf_t
 opennsl_vrf_t
 

Enumerations

enum  opennsl_color_e {
  opennslColorGreen = _SHR_COLOR_GREEN,
  opennslColorYellow = _SHR_COLOR_YELLOW,
  opennslColorRed = _SHR_COLOR_RED,
  opennslColorDropFirst = opennslColorRed,
  opennslColorBlack = _SHR_COLOR_BLACK,
  opennslColorPreserve = _SHR_COLOR_PRESERVE,
  opennslColorCount = _SHR_COLOR_COUNT
}
 opennsl_color_t More...
 
enum  opennsl_field_stat_e {
  opennslFieldStatBytes = 0,
  opennslFieldStatPackets = 1,
  opennslFieldStatDefault = opennslFieldStatPackets,
  opennslFieldStatGreenBytes = 2,
  opennslFieldStatGreenPackets = 3,
  opennslFieldStatYellowBytes = 4,
  opennslFieldStatYellowPackets = 5,
  opennslFieldStatRedBytes = 6,
  opennslFieldStatRedPackets = 7,
  opennslFieldStatNotGreenBytes = 8,
  opennslFieldStatNotGreenPackets = 9,
  opennslFieldStatNotYellowBytes = 10,
  opennslFieldStatNotYellowPackets = 11,
  opennslFieldStatNotRedBytes = 12,
  opennslFieldStatNotRedPackets = 13,
  opennslFieldStatAcceptedBytes = 14,
  opennslFieldStatAcceptedPackets = 15,
  opennslFieldStatAcceptedGreenBytes = 16,
  opennslFieldStatAcceptedGreenPackets = 17,
  opennslFieldStatAcceptedYellowBytes = 18,
  opennslFieldStatAcceptedYellowPackets = 19,
  opennslFieldStatAcceptedRedBytes = 20,
  opennslFieldStatAcceptedRedPackets = 21,
  opennslFieldStatAcceptedNotGreenBytes = 22,
  opennslFieldStatAcceptedNotGreenPackets = 23,
  opennslFieldStatAcceptedNotYellowBytes = 24,
  opennslFieldStatAcceptedNotYellowPackets = 25,
  opennslFieldStatAcceptedNotRedBytes = 26,
  opennslFieldStatAcceptedNotRedPackets = 27,
  opennslFieldStatDroppedBytes = 28,
  opennslFieldStatDroppedPackets = 29,
  opennslFieldStatDroppedGreenBytes = 30,
  opennslFieldStatDroppedGreenPackets = 31,
  opennslFieldStatDroppedYellowBytes = 32,
  opennslFieldStatDroppedYellowPackets = 33,
  opennslFieldStatDroppedRedBytes = 34,
  opennslFieldStatDroppedRedPackets = 35,
  opennslFieldStatDroppedNotGreenBytes = 36,
  opennslFieldStatDroppedNotGreenPackets = 37,
  opennslFieldStatDroppedNotYellowBytes = 38,
  opennslFieldStatDroppedNotYellowPackets = 39,
  opennslFieldStatDroppedNotRedBytes = 40,
  opennslFieldStatDroppedNotRedPackets = 41,
  opennslFieldStatOffset0Bytes = 42,
  opennslFieldStatOffset0Packets = 43,
  opennslFieldStatOffset1Bytes = 44,
  opennslFieldStatOffset1Packets = 45,
  opennslFieldStatOffset2Bytes = 46,
  opennslFieldStatOffset2Packets = 47,
  opennslFieldStatOffset3Bytes = 48,
  opennslFieldStatOffset3Packets = 49,
  opennslFieldStatOffset4Bytes = 50,
  opennslFieldStatOffset4Packets = 51,
  opennslFieldStatOffset5Bytes = 52,
  opennslFieldStatOffset5Packets = 53,
  opennslFieldStatOffset6Bytes = 54,
  opennslFieldStatOffset6Packets = 55,
  opennslFieldStatOffset7Bytes = 56,
  opennslFieldStatOffset7Packets = 57,
  opennslFieldStatCount = 58
}
 opennsl_field_stat_e More...
 
enum  opennsl_reserved_enum_e { opennsl_enum_reserved = 0 }
 
enum  opennsl_vlan_action_e {
  opennslVlanActionNone = 0,
  opennslVlanActionAdd = 1,
  opennslVlanActionReplace = 2,
  opennslVlanActionDelete = 3,
  opennslVlanActionCopy = 4,
  opennslVlanActionCompressed = 5,
  opennslVlanActionMappedAdd = 6,
  opennslVlanActionMappedReplace = 7,
  opennslVlanActionOuterAdd = 8,
  opennslVlanActionInnerAdd = 9
}
 VLAN Action definitions. More...
 
enum  opennsl_vlan_pcp_action_e {
  opennslVlanPcpActionNone = 0,
  opennslVlanPcpActionMapped = 1,
  opennslVlanPcpActionIngressInnerPcp = 2,
  opennslVlanPcpActionIngressOuterPcp = 3,
  opennslVlanPcpActionPortDefault = 4
}
 VLAN Pcp Action definitions. More...
 
enum  opennsl_vlan_tpid_action_e {
  opennslVlanTpidActionNone = 0,
  opennslVlanTpidActionModify = 1,
  opennslVlanTpidActionInner = 2,
  opennslVlanTpidActionOuter = 3
}
 VLAN TPID Action definitions. More...
 

Functions

int opennsl_ip6_mask_create (opennsl_ip6_t ip6, int len) LIB_DLL_EXPORTED
 
opennsl_ip_t opennsl_ip_mask_create (int len) LIB_DLL_EXPORTED
 

Detailed Description

Macro Definition Documentation

#define OPENNSL_COS_COUNT   8

Definition at line 131 of file types.h.

#define OPENNSL_COS_DEFAULT   4

Definition at line 132 of file types.h.

#define OPENNSL_COS_INVALID   -1

Definition at line 133 of file types.h.

#define OPENNSL_COS_MAX   7

Definition at line 130 of file types.h.

#define OPENNSL_COS_MIN   0

Definition at line 129 of file types.h.

#define OPENNSL_DSCP_ECN   0x100

Definition at line 145 of file types.h.

#define OPENNSL_FIELD_STAT_ID_COUNTER_GET (   _stat_id)    _SHR_FIELD_STAT_ID_COUNTER_GET(_stat_id)

Definition at line 489 of file types.h.

Referenced by example_fp_redirect(), and main().

#define OPENNSL_FIELD_STAT_ID_PROCESSOR_GET (   _stat_id)    _SHR_FIELD_STAT_ID_PROCESSOR_GET(_stat_id)

Definition at line 490 of file types.h.

Referenced by example_fp_redirect(), and main().

#define OPENNSL_FIELD_STAT_ID_SET (   _stat_id,
  _proc,
  _ctr 
)    _SHR_FIELD_STAT_ID_SET(_stat_id, _proc, _ctr)

Definition at line 488 of file types.h.

Referenced by example_fp_redirect(), and main().

#define OPENNSL_FLOW_MAX_NOF_LOGICAL_FIELDS   20

Definition at line 317 of file types.h.

#define OPENNSL_GPORT_INVALID   _SHR_GPORT_INVALID

Definition at line 165 of file types.h.

#define OPENNSL_GPORT_IS_COSQ (   _gport)    _SHR_GPORT_IS_COSQ(_gport)

Definition at line 185 of file types.h.

#define OPENNSL_GPORT_IS_MCAST_QUEUE_GROUP (   _gport)    _SHR_GPORT_IS_MCAST_QUEUE_GROUP(_gport)

Definition at line 183 of file types.h.

#define OPENNSL_GPORT_IS_SCHEDULER (   _gport)    _SHR_GPORT_IS_SCHEDULER(_gport)

Definition at line 184 of file types.h.

#define OPENNSL_GPORT_IS_TRAP (   _gport)    _SHR_GPORT_IS_TRAP(_gport)

Definition at line 210 of file types.h.

#define OPENNSL_GPORT_IS_TRUNK (   _gport)    _SHR_GPORT_IS_TRUNK(_gport)

Definition at line 181 of file types.h.

#define OPENNSL_GPORT_IS_UCAST_QUEUE_GROUP (   _gport)    _SHR_GPORT_IS_UCAST_QUEUE_GROUP(_gport)

Definition at line 182 of file types.h.

#define OPENNSL_GPORT_LOCAL_CPU   _SHR_GPORT_LOCAL_CPU

Definition at line 271 of file types.h.

#define OPENNSL_GPORT_LOCAL_GET (   _gport)
Value:
(!_SHR_GPORT_IS_LOCAL(_gport) ? -1 : \
_SHR_GPORT_LOCAL_GET(_gport))

Definition at line 188 of file types.h.

#define OPENNSL_GPORT_LOCAL_SET (   _gport,
  _port 
)    _SHR_GPORT_LOCAL_SET(_gport, _port)
#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_CORE_GET (   _gport)
Value:
_SHR_GPORT_MCAST_QUEUE_GROUP_CORE_GET(_gport))

Definition at line 251 of file types.h.

#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_CORE_QUEUE_SET (   _gport,
  _core,
  _qid 
)    _SHR_GPORT_MCAST_QUEUE_GROUP_CORE_QUEUE_SET(_gport, _core, _qid)

Definition at line 246 of file types.h.

#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_GET (   _gport)
Value:
_SHR_GPORT_MCAST_QUEUE_GROUP_GET(_gport))

Definition at line 230 of file types.h.

#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_QID_GET (   _gport)
Value:
_SHR_GPORT_MCAST_QUEUE_GROUP_QID_GET(_gport))

Definition at line 241 of file types.h.

#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_QUEUE_GET (   _gport)
Value:
_SHR_GPORT_MCAST_QUEUE_GROUP_QUEUE_GET(_gport))

Definition at line 248 of file types.h.

#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_QUEUE_SET (   _gport,
  _qid 
)    _SHR_GPORT_MCAST_QUEUE_GROUP_QUEUE_SET(_gport, _qid)

Definition at line 244 of file types.h.

#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_SET (   _gport,
  _qid 
)    _SHR_GPORT_MCAST_QUEUE_GROUP_SET(_gport, _qid)

Definition at line 227 of file types.h.

#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_GET (   _gport)
Value:
_SHR_GPORT_MCAST_QUEUE_GROUP_SYSPORTID_GET(_gport))

Definition at line 237 of file types.h.

#define OPENNSL_GPORT_MCAST_QUEUE_GROUP_SYSQID_SET (   _gport,
  _sysport_id,
  _qid 
)    _SHR_GPORT_MCAST_QUEUE_GROUP_SYSQID_SET(_gport, _sysport_id, _qid)

Definition at line 234 of file types.h.

#define OPENNSL_GPORT_MIRROR_GET (   _gport)
Value:
(!_SHR_GPORT_IS_MIRROR(_gport) ? -1 : \
_SHR_GPORT_MIRROR_GET(_gport))

Definition at line 274 of file types.h.

#define OPENNSL_GPORT_MIRROR_SET (   _gport,
  _value 
)    _SHR_GPORT_MIRROR_SET(_gport, _value)

Definition at line 272 of file types.h.

#define OPENNSL_GPORT_MODPORT_MODID_GET (   _gport)
Value:
(!_SHR_GPORT_IS_MODPORT(_gport) ? -1 : \
_SHR_GPORT_MODPORT_MODID_GET(_gport))

Definition at line 193 of file types.h.

#define OPENNSL_GPORT_MODPORT_PORT_GET (   _gport)
Value:
(!_SHR_GPORT_IS_MODPORT(_gport) ? -1 : \
_SHR_GPORT_MODPORT_PORT_GET(_gport))

Definition at line 196 of file types.h.

#define OPENNSL_GPORT_MODPORT_SET (   _gport,
  _module,
  _port 
)    _SHR_GPORT_MODPORT_SET(_gport, _module, _port)

Definition at line 191 of file types.h.

#define OPENNSL_GPORT_SCHEDULER_CORE_GET (   _gport)    _SHR_GPORT_SCHEDULER_CORE_GET(_gport)

Definition at line 261 of file types.h.

#define OPENNSL_GPORT_SCHEDULER_CORE_SET (   _gport,
  _scheduler_id,
  _core_id 
)    _SHR_GPORT_SCHEDULER_CORE_SET(_gport, _scheduler_id, _core_id)

Definition at line 263 of file types.h.

#define OPENNSL_GPORT_SCHEDULER_GET (   _gport)    _SHR_GPORT_SCHEDULER_GET(_gport)

Definition at line 259 of file types.h.

#define OPENNSL_GPORT_SCHEDULER_NODE_SET (   _gport,
  _scheduler_level,
  _scheduler_id 
)    _SHR_GPORT_SCHEDULER_NODE_SET(_gport, _scheduler_level,_scheduler_id)

Definition at line 257 of file types.h.

#define OPENNSL_GPORT_SCHEDULER_SET (   _gport,
  _scheduler_id 
)    _SHR_GPORT_SCHEDULER_SET(_gport, _scheduler_id)

Definition at line 255 of file types.h.

#define OPENNSL_GPORT_TRAP_GET_ID (   _gport)
Value:
(!_SHR_GPORT_IS_TRAP(_gport) ? -1 : \
_SHR_GPORT_TRAP_GET_ID(_gport))

Definition at line 203 of file types.h.

#define OPENNSL_GPORT_TRAP_GET_SNOOP_STRENGTH (   _gport)    _SHR_GPORT_TRAP_GET_SNOOP_STRENGTH(_gport)

Definition at line 208 of file types.h.

#define OPENNSL_GPORT_TRAP_GET_STRENGTH (   _gport)    _SHR_GPORT_TRAP_GET_STRENGTH(_gport)

Definition at line 206 of file types.h.

#define OPENNSL_GPORT_TRAP_SET (   _gport,
  _trap_id,
  _trap_strength,
  _snoop_strength 
)    _SHR_GPORT_TRAP_SET(_gport, _trap_id, _trap_strength, _snoop_strength)

Definition at line 201 of file types.h.

#define OPENNSL_GPORT_TRUNK_GET (   _gport)
Value:
_SHR_GPORT_TRUNK_GET(_gport))

Definition at line 212 of file types.h.

#define OPENNSL_GPORT_TRUNK_SET (   _gport,
  _trunk_id 
)    _SHR_GPORT_TRUNK_SET(_gport, _trunk_id)

Definition at line 199 of file types.h.

#define OPENNSL_GPORT_TUNNEL_ID_GET (   _gport)
Value:
(!_SHR_GPORT_IS_TUNNEL(_gport) ? -1 : \
_SHR_GPORT_TUNNEL_ID_GET(_gport))

Definition at line 280 of file types.h.

#define OPENNSL_GPORT_TUNNEL_ID_SET (   _gport,
  _tunnel_id 
)    (_SHR_GPORT_TUNNEL_ID_SET(_gport, _tunnel_id))

Definition at line 277 of file types.h.

Referenced by example_ip_tunnel_add().

#define OPENNSL_GPORT_TYPE_CHILD   _SHR_GPORT_TYPE_CHILD

Definition at line 173 of file types.h.

#define OPENNSL_GPORT_TYPE_COSQ   _SHR_GPORT_TYPE_COSQ

Definition at line 179 of file types.h.

#define OPENNSL_GPORT_TYPE_DESTMOD_QUEUE_GROUP   _SHR_GPORT_TYPE_DESTMOD_QUEUE_GROUP

Definition at line 169 of file types.h.

#define OPENNSL_GPORT_TYPE_EGRESS_CHILD   _SHR_GPORT_TYPE_EGRESS_CHILD

Definition at line 175 of file types.h.

#define OPENNSL_GPORT_TYPE_EGRESS_GROUP   _SHR_GPORT_TYPE_EGRESS_GROUP

Definition at line 174 of file types.h.

#define OPENNSL_GPORT_TYPE_EGRESS_MODPORT   _SHR_GPORT_TYPE_EGRESS_MODPORT

Definition at line 176 of file types.h.

#define OPENNSL_GPORT_TYPE_LOCAL   _SHR_GPORT_TYPE_LOCAL

Definition at line 166 of file types.h.

#define OPENNSL_GPORT_TYPE_MCAST   _SHR_GPORT_TYPE_MCAST

Definition at line 170 of file types.h.

#define OPENNSL_GPORT_TYPE_MCAST_QUEUE_GROUP   _SHR_GPORT_TYPE_MCAST_QUEUE_GROUP

Definition at line 171 of file types.h.

#define OPENNSL_GPORT_TYPE_MCAST_SUBSCRIBER_QUEUE_GROUP   _SHR_GPORT_TYPE_MCAST_SUBSCRIBER_QUEUE_GROUP

Definition at line 178 of file types.h.

#define OPENNSL_GPORT_TYPE_MODPORT   _SHR_GPORT_TYPE_MODPORT

Definition at line 167 of file types.h.

#define OPENNSL_GPORT_TYPE_NONE   _SHR_GPORT_NONE

Definition at line 164 of file types.h.

#define OPENNSL_GPORT_TYPE_PROFILE   _SHR_GPORT_TYPE_PROFILE

Definition at line 180 of file types.h.

#define OPENNSL_GPORT_TYPE_SCHEDULER   _SHR_GPORT_TYPE_SCHEDULER

Definition at line 172 of file types.h.

#define OPENNSL_GPORT_TYPE_UCAST_QUEUE_GROUP   _SHR_GPORT_TYPE_UCAST_QUEUE_GROUP

Definition at line 168 of file types.h.

#define OPENNSL_GPORT_TYPE_UCAST_SUBSCRIBER_QUEUE_GROUP   _SHR_GPORT_TYPE_UCAST_SUBSCRIBER_QUEUE_GROUP

Definition at line 177 of file types.h.

#define OPENNSL_GPORT_UCAST_QUEUE_GROUP_QID_GET (   _gport)
Value:
_SHR_GPORT_UCAST_QUEUE_GROUP_QID_GET(_gport))

Definition at line 223 of file types.h.

#define OPENNSL_GPORT_UCAST_QUEUE_GROUP_SET (   _gport,
  _qid 
)    _SHR_GPORT_UCAST_QUEUE_GROUP_SET(_gport, _qid)

Definition at line 215 of file types.h.

#define OPENNSL_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_GET (   _gport)
Value:
_SHR_GPORT_UCAST_QUEUE_GROUP_SYSPORTID_GET(_gport))

Definition at line 219 of file types.h.

#define OPENNSL_GPORT_UCAST_QUEUE_GROUP_SYSQID_SET (   _gport,
  _sysport_id,
  _qid 
)    _SHR_GPORT_UCAST_QUEUE_GROUP_SYSQID_SET(_gport, _sysport_id, _qid)

Definition at line 217 of file types.h.

#define opennsl_htonl (   _l)    (_l)

Definition at line 320 of file types.h.

#define opennsl_htons (   _s)    (_s)

Definition at line 321 of file types.h.

#define opennsl_ntohl (   _l)    (_l)

Definition at line 322 of file types.h.

#define opennsl_ntohs (   _s)    (_s)

Definition at line 323 of file types.h.

#define OPENNSL_PBMP_AND (   pbm_a,
  pbm_b 
)    _SHR_PBMP_AND(pbm_a, pbm_b)

Definition at line 52 of file types.h.

#define OPENNSL_PBMP_ASSIGN (   dst,
  src 
)    _SHR_PBMP_ASSIGN(dst, src)

Definition at line 51 of file types.h.

#define OPENNSL_PBMP_CLEAR (   pbm)    _SHR_PBMP_CLEAR(pbm)

Definition at line 43 of file types.h.

Referenced by example_stg_create(), example_vlan_port_add(), and vlan_create_add_port().

#define OPENNSL_PBMP_COUNT (   pbm,
  count 
)    _SHR_PBMP_COUNT(pbm, count)

Definition at line 46 of file types.h.

Referenced by example_max_port_count_get().

#define OPENNSL_PBMP_EQ (   pbm_a,
  pbm_b 
)    _SHR_PBMP_EQ(pbm_a, pbm_b)

Definition at line 49 of file types.h.

#define OPENNSL_PBMP_IS_NULL (   pbm)    _SHR_PBMP_IS_NULL(pbm)

Definition at line 47 of file types.h.

#define OPENNSL_PBMP_ITER (   bmp,
  port 
)    _SHR_PBMP_ITER((bmp), (port))
#define OPENNSL_PBMP_MEMBER (   bmp,
  port 
)    _SHR_PBMP_MEMBER((bmp), (port))

Definition at line 44 of file types.h.

#define OPENNSL_PBMP_NEGATE (   pbm_a,
  pbm_b 
)    _SHR_PBMP_NEGATE(pbm_a, pbm_b)

Definition at line 56 of file types.h.

#define OPENNSL_PBMP_NEQ (   pbm_a,
  pbm_b 
)    _SHR_PBMP_NEQ(pbm_a, pbm_b)

Definition at line 50 of file types.h.

#define OPENNSL_PBMP_NOT_NULL (   pbm)    _SHR_PBMP_NOT_NULL(pbm)

Definition at line 48 of file types.h.

#define OPENNSL_PBMP_OR (   pbm_a,
  pbm_b 
)    _SHR_PBMP_OR(pbm_a, pbm_b)

Definition at line 53 of file types.h.

#define OPENNSL_PBMP_PORT_ADD (   pbm,
  port 
)    _SHR_PBMP_PORT_ADD(pbm, port)

Definition at line 58 of file types.h.

Referenced by example_stg_create(), example_vlan_port_add(), and vlan_create_add_port().

#define OPENNSL_PBMP_PORT_FLIP (   pbm,
  port 
)    _SHR_PBMP_PORT_FLIP(pbm, port)

Definition at line 60 of file types.h.

#define OPENNSL_PBMP_PORT_MAX   _SHR_PBMP_PORT_MAX

Definition at line 42 of file types.h.

#define OPENNSL_PBMP_PORT_REMOVE (   pbm,
  port 
)    _SHR_PBMP_PORT_REMOVE(pbm, port)

Definition at line 59 of file types.h.

#define OPENNSL_PBMP_PORT_SET (   pbm,
  port 
)    _SHR_PBMP_PORT_SET(pbm, port)

Definition at line 57 of file types.h.

Referenced by example_pkt_send(), and example_policer_test().

#define OPENNSL_PBMP_REMOVE (   pbm_a,
  pbm_b 
)    _SHR_PBMP_REMOVE(pbm_a, pbm_b)

Definition at line 55 of file types.h.

#define OPENNSL_PBMP_XOR (   pbm_a,
  pbm_b 
)    _SHR_PBMP_XOR(pbm_a, pbm_b)

Definition at line 54 of file types.h.

#define OPENNSL_PRIO_BLACK   0x1000

Definition at line 146 of file types.h.

#define OPENNSL_PRIO_CTAG   0x200

Definition at line 144 of file types.h.

#define OPENNSL_PRIO_DROP_FIRST   OPENNSL_PRIO_RED

Definition at line 138 of file types.h.

#define OPENNSL_PRIO_DROP_LAST   0x800

Definition at line 141 of file types.h.

#define OPENNSL_PRIO_GREEN   0x400

Definition at line 140 of file types.h.

#define OPENNSL_PRIO_MASK   0xff

Definition at line 139 of file types.h.

#define OPENNSL_PRIO_MAX   7

Definition at line 135 of file types.h.

#define OPENNSL_PRIO_MIN   0

Definition at line 134 of file types.h.

#define OPENNSL_PRIO_PRESERVE   OPENNSL_PRIO_DROP_LAST

Definition at line 142 of file types.h.

#define OPENNSL_PRIO_RED   0x100

Definition at line 136 of file types.h.

#define OPENNSL_PRIO_SECONDARY   0x2000

Definition at line 147 of file types.h.

#define OPENNSL_PRIO_STAG   0x100

Definition at line 143 of file types.h.

#define OPENNSL_PRIO_YELLOW   0x200

Definition at line 137 of file types.h.

#define OPENNSL_TRUNK_INVALID   ((opennsl_trunk_t) -1)

Definition at line 151 of file types.h.

#define OPENNSL_VLAN_COUNT   (OPENNSL_VLAN_MAX - OPENNSL_VLAN_MIN + 1)

Definition at line 113 of file types.h.

#define OPENNSL_VLAN_DEFAULT   ((opennsl_vlan_t)0x0001)

Definition at line 95 of file types.h.

#define OPENNSL_VLAN_MAX   4095

Definition at line 112 of file types.h.

Referenced by example_open_vlan_per_mc().

#define OPENNSL_VLAN_MIN   0

Definition at line 111 of file types.h.

#define OPENNSL_VLAN_NONE   ((opennsl_vlan_t)0x0000)

Definition at line 94 of file types.h.

Referenced by initial_qos_service_vlan_action_set().

#define OPENNSL_VLAN_VEC_CLR (   vec,
 
)    SHR_BITCLR(vec, n)

Definition at line 119 of file types.h.

#define OPENNSL_VLAN_VEC_GET (   vec,
 
)    SHR_BITGET(vec, n)

Definition at line 117 of file types.h.

#define OPENNSL_VLAN_VEC_SET (   vec,
 
)    SHR_BITSET(vec, n)

Definition at line 118 of file types.h.

#define OPENNSL_VLAN_VEC_ZERO (   vec)
Value:

Definition at line 120 of file types.h.

Typedef Documentation

opennsl_color_t

typedef int opennsl_cos_queue_t

opennsl_cos_queue_t

Definition at line 127 of file types.h.

typedef int opennsl_cos_t

opennsl_cos_t

Definition at line 124 of file types.h.

ETAG structure.

opennsl_ethertype_t

Definition at line 100 of file types.h.

Multicast distribution set.

Definition at line 266 of file types.h.

typedef int opennsl_failover_t

Failover Object.

Definition at line 269 of file types.h.

opennsl_field_stat_e

Flow Logical Field.

typedef int opennsl_gport_t

GPORT (generic port) definitions.

See shared/gport.h for more details.

Definition at line 162 of file types.h.

typedef int opennsl_if_group_t

opennsl_if_group_t

Definition at line 86 of file types.h.

typedef int opennsl_if_t

opennsl_if_t

Definition at line 77 of file types.h.

typedef uint8 opennsl_ip6_t[16]

opennsl_ip6_t

Definition at line 74 of file types.h.

opennsl_ip_t

Definition at line 71 of file types.h.

typedef int opennsl_l4_port_t

opennsl_l4_port_t

Definition at line 83 of file types.h.

typedef uint8 opennsl_mac_t[6]

opennsl_mac_t

Definition at line 68 of file types.h.

typedef int opennsl_module_t

opennsl_module_t

Definition at line 149 of file types.h.

opennsl_mpls_label_t

Definition at line 92 of file types.h.

typedef int opennsl_multicast_t

opennsl_multicast_t

Definition at line 36 of file types.h.

opennsl_pbmp_t

Definition at line 65 of file types.h.

typedef int opennsl_policer_t

opennsl_policer_t

Definition at line 106 of file types.h.

typedef int opennsl_port_t

Set the default tag protocol ID (TPID) for the specified port.

Definition at line 62 of file types.h.

typedef int opennsl_stg_t

opennsl_stg_t

Definition at line 285 of file types.h.

Split Horizon Network Group.

Definition at line 156 of file types.h.

typedef int opennsl_trill_name_t

opennsl_trill_name_t

Definition at line 80 of file types.h.

typedef int opennsl_trunk_t

opennsl_trunk_t

Definition at line 153 of file types.h.

typedef int opennsl_tsn_flowset_t

TSN flow set.

Definition at line 483 of file types.h.

typedef int opennsl_tsn_pri_map_t

TSN priority map id.

Definition at line 386 of file types.h.

SR flow set.

Definition at line 486 of file types.h.

opennsl_tunnel_id_t

Definition at line 109 of file types.h.

Initialize a VLAN tag action set structure.

VLAN Action definitions.

VLAN Pcp Action definitions.

opennsl_vlan_t

Definition at line 97 of file types.h.

VLAN TPID Action definitions.

typedef uint32 opennsl_vlan_vector_t[_SHR_BITDCLSIZE(OPENNSL_VLAN_COUNT)]

opennsl_vlan_vector_t

Definition at line 115 of file types.h.

VNTAG structure.

opennsl_vpn_t

Definition at line 103 of file types.h.

typedef int opennsl_vrf_t

opennsl_vrf_t

Definition at line 89 of file types.h.

Enumeration Type Documentation

opennsl_color_t

Enumerator:
opennslColorGreen 
opennslColorYellow 
opennslColorRed 
opennslColorDropFirst 
opennslColorBlack 
opennslColorPreserve 
opennslColorCount 

Definition at line 288 of file types.h.

opennsl_field_stat_e

Enumerator:
opennslFieldStatBytes 

Byte count of traffic of all colors.

opennslFieldStatPackets 

Packet count of traffic of all colors.

opennslFieldStatDefault 

Default stat mode.

opennslFieldStatGreenBytes 

Byte count of green traffic.

opennslFieldStatGreenPackets 

Packet count of green traffic.

opennslFieldStatYellowBytes 

Byte count of yellow traffic.

opennslFieldStatYellowPackets 

Packet count of yellow traffic.

opennslFieldStatRedBytes 

Byte count of red traffic.

opennslFieldStatRedPackets 

Packet count of red traffic.

opennslFieldStatNotGreenBytes 

Byte count of not green traffic.

opennslFieldStatNotGreenPackets 

Packet count of not green traffic.

opennslFieldStatNotYellowBytes 

Byte count of not yellow traffic.

opennslFieldStatNotYellowPackets 

Packet count of not yellow traffic.

opennslFieldStatNotRedBytes 

Byte count of not red traffic.

opennslFieldStatNotRedPackets 

Packet count of not red traffic.

opennslFieldStatAcceptedBytes 

Byte count of accepted traffic of all colors.

opennslFieldStatAcceptedPackets 

Packet count of accepted traffic of all colors.

opennslFieldStatAcceptedGreenBytes 

Byte count of accepted green traffic.

opennslFieldStatAcceptedGreenPackets 

Packet count of accepted green traffic.

opennslFieldStatAcceptedYellowBytes 

Byte count of accepted yellow traffic.

opennslFieldStatAcceptedYellowPackets 

Packet count of accepted yellow traffic.

opennslFieldStatAcceptedRedBytes 

Byte count of accepted red traffic.

opennslFieldStatAcceptedRedPackets 

Packet count of accepted red traffic.

opennslFieldStatAcceptedNotGreenBytes 

Byte count of accepted not green traffic.

opennslFieldStatAcceptedNotGreenPackets 

Packet count of accepted not green traffic.

opennslFieldStatAcceptedNotYellowBytes 

Byte count of accepted not yellow traffic.

opennslFieldStatAcceptedNotYellowPackets 

Packet count of accepted not yellow traffic.

opennslFieldStatAcceptedNotRedBytes 

Byte count of accepted not red traffic.

opennslFieldStatAcceptedNotRedPackets 

Packet count of accepted not red traffic.

opennslFieldStatDroppedBytes 

Byte count of dropped traffic of all colors.

opennslFieldStatDroppedPackets 

Packet count of dropped traffic of all colors.

opennslFieldStatDroppedGreenBytes 

Byte count of dropped green traffic.

opennslFieldStatDroppedGreenPackets 

Packet count of dropped green traffic.

opennslFieldStatDroppedYellowBytes 

Byte count of dropped yellow traffic.

opennslFieldStatDroppedYellowPackets 

Packet count of dropped yellow traffic.

opennslFieldStatDroppedRedBytes 

Byte count of dropped red traffic.

opennslFieldStatDroppedRedPackets 

Packet count of dropped red traffic.

opennslFieldStatDroppedNotGreenBytes 

Byte count of dropped not green traffic.

opennslFieldStatDroppedNotGreenPackets 

Packet count of dropped not green traffic.

opennslFieldStatDroppedNotYellowBytes 

Byte count of dropped not yellow traffic.

opennslFieldStatDroppedNotYellowPackets 

Packet count of dropped not yellow traffic.

opennslFieldStatDroppedNotRedBytes 

Byte count of dropped not red traffic.

opennslFieldStatDroppedNotRedPackets 

Packet count of dropped not red traffic.

opennslFieldStatOffset0Bytes 

Byte count at configurable offset 0.

opennslFieldStatOffset0Packets 

Packet count at configurable offset 0.

opennslFieldStatOffset1Bytes 

Byte count at configurable offset 1.

opennslFieldStatOffset1Packets 

Packet count at configurable offset.

opennslFieldStatOffset2Bytes 

Byte count at configurable offset 2.

opennslFieldStatOffset2Packets 

Packet count at configurable offset.

opennslFieldStatOffset3Bytes 

Byte count at configurable offset 3.

opennslFieldStatOffset3Packets 

Packet count at configurable offset.

opennslFieldStatOffset4Bytes 

Byte count at configurable offset 4.

opennslFieldStatOffset4Packets 

Packet count at configurable offset.

opennslFieldStatOffset5Bytes 

Byte count at configurable offset 5.

opennslFieldStatOffset5Packets 

Packet count at configurable offset.

opennslFieldStatOffset6Bytes 

Byte count at configurable offset 6.

opennslFieldStatOffset6Packets 

Packet count at configurable offset.

opennslFieldStatOffset7Bytes 

Byte count at configurable offset 7.

opennslFieldStatOffset7Packets 

Packet count at configurable offset.

opennslFieldStatCount 

Always Last.

Not a usable value.

Definition at line 34 of file typesX.h.

Enumerator:
opennsl_enum_reserved 

Reserved value.

Definition at line 388 of file types.h.

VLAN Action definitions.

Enumerator:
opennslVlanActionNone 

Do not modify.

opennslVlanActionAdd 

Add VLAN tag.

opennslVlanActionReplace 

Replace VLAN tag.

opennslVlanActionDelete 

Delete VLAN tag.

opennslVlanActionCopy 

Copy VLAN tag.

opennslVlanActionCompressed 

Set VLAN compress tag.

opennslVlanActionMappedAdd 

Add a new VLAN tag according to Mapped VLAN.

opennslVlanActionMappedReplace 

Replace existing VLAN tag according to Mapped VLAN.

opennslVlanActionOuterAdd 

Add a new VLAN tag with the Outer VLAN tag value.

opennslVlanActionInnerAdd 

Add a new VLAN tag with the Inner VLAN tag value.

Definition at line 367 of file types.h.

VLAN Pcp Action definitions.

Enumerator:
opennslVlanPcpActionNone 

Do not modify.

opennslVlanPcpActionMapped 

Use TC/DP mapped PCP.

opennslVlanPcpActionIngressInnerPcp 

Use incoming packet's CTag PCP.

opennslVlanPcpActionIngressOuterPcp 

Use incoming packet's Stag PCP.

opennslVlanPcpActionPortDefault 

Use port default PCP.

Definition at line 357 of file types.h.

VLAN TPID Action definitions.

Enumerator:
opennslVlanTpidActionNone 

Do not modify.

opennslVlanTpidActionModify 

Set to given value.

opennslVlanTpidActionInner 

Use packet's inner tpid.

opennslVlanTpidActionOuter 

Use packet's outer tpid.

Definition at line 348 of file types.h.

Function Documentation

int opennsl_ip6_mask_create ( opennsl_ip6_t  ip6,
int  len 
)
Parameters
ip6[OUT]
len[IN]
Return values
OPENNSL_E_xxx
opennsl_ip_t opennsl_ip_mask_create ( int  len)
Parameters
len[IN]
Return values
OPENNSL_E_xxx