Documentation
¶
Overview ¶
Package flow_types contains generated bindings for API file flow_types.api.
Contents: - 5 enums - 20 structs - 2 unions
Index ¶
- Constants
- Variables
- type FlowAction
- type FlowActionV2
- type FlowEthernet
- type FlowGeneric
- type FlowIP4
- type FlowIP4Gtpc
- type FlowIP4Gtpu
- type FlowIP4IpsecAh
- type FlowIP4IpsecEsp
- type FlowIP4L2tpv3oip
- type FlowIP4NTuple
- type FlowIP4NTupleTagged
- type FlowIP4Vxlan
- type FlowIP6
- type FlowIP6NTuple
- type FlowIP6NTupleTagged
- type FlowIP6Vxlan
- type FlowRule
- type FlowRuleV2
- type FlowType
- type FlowTypeV2
- type FlowUnion
- func FlowUnionEthernet(a FlowEthernet) (u FlowUnion)
- func FlowUnionIP4(a FlowIP4) (u FlowUnion)
- func FlowUnionIP4Gtpc(a FlowIP4Gtpc) (u FlowUnion)
- func FlowUnionIP4Gtpu(a FlowIP4Gtpu) (u FlowUnion)
- func FlowUnionIP4IpsecAh(a FlowIP4IpsecAh) (u FlowUnion)
- func FlowUnionIP4IpsecEsp(a FlowIP4IpsecEsp) (u FlowUnion)
- func FlowUnionIP4L2tpv3oip(a FlowIP4L2tpv3oip) (u FlowUnion)
- func FlowUnionIP4NTuple(a FlowIP4NTuple) (u FlowUnion)
- func FlowUnionIP4NTupleTagged(a FlowIP4NTupleTagged) (u FlowUnion)
- func FlowUnionIP4Vxlan(a FlowIP4Vxlan) (u FlowUnion)
- func FlowUnionIP6(a FlowIP6) (u FlowUnion)
- func FlowUnionIP6NTuple(a FlowIP6NTuple) (u FlowUnion)
- func FlowUnionIP6NTupleTagged(a FlowIP6NTupleTagged) (u FlowUnion)
- func FlowUnionIP6Vxlan(a FlowIP6Vxlan) (u FlowUnion)
- func (u *FlowUnion) GetEthernet() (a FlowEthernet)
- func (u *FlowUnion) GetIP4() (a FlowIP4)
- func (u *FlowUnion) GetIP4Gtpc() (a FlowIP4Gtpc)
- func (u *FlowUnion) GetIP4Gtpu() (a FlowIP4Gtpu)
- func (u *FlowUnion) GetIP4IpsecAh() (a FlowIP4IpsecAh)
- func (u *FlowUnion) GetIP4IpsecEsp() (a FlowIP4IpsecEsp)
- func (u *FlowUnion) GetIP4L2tpv3oip() (a FlowIP4L2tpv3oip)
- func (u *FlowUnion) GetIP4NTuple() (a FlowIP4NTuple)
- func (u *FlowUnion) GetIP4NTupleTagged() (a FlowIP4NTupleTagged)
- func (u *FlowUnion) GetIP4Vxlan() (a FlowIP4Vxlan)
- func (u *FlowUnion) GetIP6() (a FlowIP6)
- func (u *FlowUnion) GetIP6NTuple() (a FlowIP6NTuple)
- func (u *FlowUnion) GetIP6NTupleTagged() (a FlowIP6NTupleTagged)
- func (u *FlowUnion) GetIP6Vxlan() (a FlowIP6Vxlan)
- func (u *FlowUnion) SetEthernet(a FlowEthernet)
- func (u *FlowUnion) SetIP4(a FlowIP4)
- func (u *FlowUnion) SetIP4Gtpc(a FlowIP4Gtpc)
- func (u *FlowUnion) SetIP4Gtpu(a FlowIP4Gtpu)
- func (u *FlowUnion) SetIP4IpsecAh(a FlowIP4IpsecAh)
- func (u *FlowUnion) SetIP4IpsecEsp(a FlowIP4IpsecEsp)
- func (u *FlowUnion) SetIP4L2tpv3oip(a FlowIP4L2tpv3oip)
- func (u *FlowUnion) SetIP4NTuple(a FlowIP4NTuple)
- func (u *FlowUnion) SetIP4NTupleTagged(a FlowIP4NTupleTagged)
- func (u *FlowUnion) SetIP4Vxlan(a FlowIP4Vxlan)
- func (u *FlowUnion) SetIP6(a FlowIP6)
- func (u *FlowUnion) SetIP6NTuple(a FlowIP6NTuple)
- func (u *FlowUnion) SetIP6NTupleTagged(a FlowIP6NTupleTagged)
- func (u *FlowUnion) SetIP6Vxlan(a FlowIP6Vxlan)
- type FlowV2Union
- func FlowV2UnionEthernet(a FlowEthernet) (u FlowV2Union)
- func FlowV2UnionGeneric(a FlowGeneric) (u FlowV2Union)
- func FlowV2UnionIP4(a FlowIP4) (u FlowV2Union)
- func FlowV2UnionIP4Gtpc(a FlowIP4Gtpc) (u FlowV2Union)
- func FlowV2UnionIP4Gtpu(a FlowIP4Gtpu) (u FlowV2Union)
- func FlowV2UnionIP4IpsecAh(a FlowIP4IpsecAh) (u FlowV2Union)
- func FlowV2UnionIP4IpsecEsp(a FlowIP4IpsecEsp) (u FlowV2Union)
- func FlowV2UnionIP4L2tpv3oip(a FlowIP4L2tpv3oip) (u FlowV2Union)
- func FlowV2UnionIP4NTuple(a FlowIP4NTuple) (u FlowV2Union)
- func FlowV2UnionIP4NTupleTagged(a FlowIP4NTupleTagged) (u FlowV2Union)
- func FlowV2UnionIP4Vxlan(a FlowIP4Vxlan) (u FlowV2Union)
- func FlowV2UnionIP6(a FlowIP6) (u FlowV2Union)
- func FlowV2UnionIP6NTuple(a FlowIP6NTuple) (u FlowV2Union)
- func FlowV2UnionIP6NTupleTagged(a FlowIP6NTupleTagged) (u FlowV2Union)
- func FlowV2UnionIP6Vxlan(a FlowIP6Vxlan) (u FlowV2Union)
- func (u *FlowV2Union) GetEthernet() (a FlowEthernet)
- func (u *FlowV2Union) GetGeneric() (a FlowGeneric)
- func (u *FlowV2Union) GetIP4() (a FlowIP4)
- func (u *FlowV2Union) GetIP4Gtpc() (a FlowIP4Gtpc)
- func (u *FlowV2Union) GetIP4Gtpu() (a FlowIP4Gtpu)
- func (u *FlowV2Union) GetIP4IpsecAh() (a FlowIP4IpsecAh)
- func (u *FlowV2Union) GetIP4IpsecEsp() (a FlowIP4IpsecEsp)
- func (u *FlowV2Union) GetIP4L2tpv3oip() (a FlowIP4L2tpv3oip)
- func (u *FlowV2Union) GetIP4NTuple() (a FlowIP4NTuple)
- func (u *FlowV2Union) GetIP4NTupleTagged() (a FlowIP4NTupleTagged)
- func (u *FlowV2Union) GetIP4Vxlan() (a FlowIP4Vxlan)
- func (u *FlowV2Union) GetIP6() (a FlowIP6)
- func (u *FlowV2Union) GetIP6NTuple() (a FlowIP6NTuple)
- func (u *FlowV2Union) GetIP6NTupleTagged() (a FlowIP6NTupleTagged)
- func (u *FlowV2Union) GetIP6Vxlan() (a FlowIP6Vxlan)
- func (u *FlowV2Union) SetEthernet(a FlowEthernet)
- func (u *FlowV2Union) SetGeneric(a FlowGeneric)
- func (u *FlowV2Union) SetIP4(a FlowIP4)
- func (u *FlowV2Union) SetIP4Gtpc(a FlowIP4Gtpc)
- func (u *FlowV2Union) SetIP4Gtpu(a FlowIP4Gtpu)
- func (u *FlowV2Union) SetIP4IpsecAh(a FlowIP4IpsecAh)
- func (u *FlowV2Union) SetIP4IpsecEsp(a FlowIP4IpsecEsp)
- func (u *FlowV2Union) SetIP4L2tpv3oip(a FlowIP4L2tpv3oip)
- func (u *FlowV2Union) SetIP4NTuple(a FlowIP4NTuple)
- func (u *FlowV2Union) SetIP4NTupleTagged(a FlowIP4NTupleTagged)
- func (u *FlowV2Union) SetIP4Vxlan(a FlowIP4Vxlan)
- func (u *FlowV2Union) SetIP6(a FlowIP6)
- func (u *FlowV2Union) SetIP6NTuple(a FlowIP6NTuple)
- func (u *FlowV2Union) SetIP6NTupleTagged(a FlowIP6NTupleTagged)
- func (u *FlowV2Union) SetIP6Vxlan(a FlowIP6Vxlan)
- type GenericPattern
- type IPPortAndMask
- type IPProtAndMask
- type RssFunction
Constants ¶
const ( APIFile = "flow_types" APIVersion = "0.0.4" VersionCrc = 0x5657caac )
Variables ¶
var ( FlowAction_name = map[uint32]string{ 1: "FLOW_ACTION_COUNT", 2: "FLOW_ACTION_MARK", 4: "FLOW_ACTION_BUFFER_ADVANCE", 8: "FLOW_ACTION_REDIRECT_TO_NODE", 16: "FLOW_ACTION_REDIRECT_TO_QUEUE", 64: "FLOW_ACTION_DROP", } FlowAction_value = map[string]uint32{ "FLOW_ACTION_COUNT": 1, "FLOW_ACTION_MARK": 2, "FLOW_ACTION_BUFFER_ADVANCE": 4, "FLOW_ACTION_REDIRECT_TO_NODE": 8, "FLOW_ACTION_REDIRECT_TO_QUEUE": 16, "FLOW_ACTION_DROP": 64, } )
var ( FlowActionV2_name = map[uint32]string{ 1: "FLOW_ACTION_COUNT_V2", 2: "FLOW_ACTION_MARK_V2", 4: "FLOW_ACTION_BUFFER_ADVANCE_V2", 8: "FLOW_ACTION_REDIRECT_TO_NODE_V2", 16: "FLOW_ACTION_REDIRECT_TO_QUEUE_V2", 32: "FLOW_ACTION_RSS_V2", 64: "FLOW_ACTION_DROP_V2", } FlowActionV2_value = map[string]uint32{ "FLOW_ACTION_COUNT_V2": 1, "FLOW_ACTION_MARK_V2": 2, "FLOW_ACTION_BUFFER_ADVANCE_V2": 4, "FLOW_ACTION_REDIRECT_TO_NODE_V2": 8, "FLOW_ACTION_REDIRECT_TO_QUEUE_V2": 16, "FLOW_ACTION_RSS_V2": 32, "FLOW_ACTION_DROP_V2": 64, } )
var ( FlowType_name = map[uint32]string{ 1: "FLOW_TYPE_ETHERNET", 2: "FLOW_TYPE_IP4", 3: "FLOW_TYPE_IP6", 4: "FLOW_TYPE_IP4_L2TPV3OIP", 5: "FLOW_TYPE_IP4_IPSEC_ESP", 6: "FLOW_TYPE_IP4_IPSEC_AH", 7: "FLOW_TYPE_IP4_N_TUPLE", 8: "FLOW_TYPE_IP6_N_TUPLE", 9: "FLOW_TYPE_IP4_N_TUPLE_TAGGED", 10: "FLOW_TYPE_IP6_N_TUPLE_TAGGED", 11: "FLOW_TYPE_IP4_VXLAN", 12: "FLOW_TYPE_IP6_VXLAN", 13: "FLOW_TYPE_IP4_GTPC", 14: "FLOW_TYPE_IP4_GTPU", } FlowType_value = map[string]uint32{ "FLOW_TYPE_ETHERNET": 1, "FLOW_TYPE_IP4": 2, "FLOW_TYPE_IP6": 3, "FLOW_TYPE_IP4_L2TPV3OIP": 4, "FLOW_TYPE_IP4_IPSEC_ESP": 5, "FLOW_TYPE_IP4_IPSEC_AH": 6, "FLOW_TYPE_IP4_N_TUPLE": 7, "FLOW_TYPE_IP6_N_TUPLE": 8, "FLOW_TYPE_IP4_N_TUPLE_TAGGED": 9, "FLOW_TYPE_IP6_N_TUPLE_TAGGED": 10, "FLOW_TYPE_IP4_VXLAN": 11, "FLOW_TYPE_IP6_VXLAN": 12, "FLOW_TYPE_IP4_GTPC": 13, "FLOW_TYPE_IP4_GTPU": 14, } )
var ( FlowTypeV2_name = map[uint32]string{ 1: "FLOW_TYPE_ETHERNET_V2", 2: "FLOW_TYPE_IP4_V2", 3: "FLOW_TYPE_IP6_V2", 4: "FLOW_TYPE_IP4_L2TPV3OIP_V2", 5: "FLOW_TYPE_IP4_IPSEC_ESP_V2", 6: "FLOW_TYPE_IP4_IPSEC_AH_V2", 7: "FLOW_TYPE_IP4_N_TUPLE_V2", 8: "FLOW_TYPE_IP6_N_TUPLE_V2", 9: "FLOW_TYPE_IP4_N_TUPLE_TAGGED_V2", 10: "FLOW_TYPE_IP6_N_TUPLE_TAGGED_V2", 11: "FLOW_TYPE_IP4_VXLAN_V2", 12: "FLOW_TYPE_IP6_VXLAN_V2", 13: "FLOW_TYPE_IP4_GTPC_V2", 14: "FLOW_TYPE_IP4_GTPU_V2", 15: "FLOW_TYPE_GENERIC_V2", } FlowTypeV2_value = map[string]uint32{ "FLOW_TYPE_ETHERNET_V2": 1, "FLOW_TYPE_IP4_V2": 2, "FLOW_TYPE_IP6_V2": 3, "FLOW_TYPE_IP4_L2TPV3OIP_V2": 4, "FLOW_TYPE_IP4_IPSEC_ESP_V2": 5, "FLOW_TYPE_IP4_IPSEC_AH_V2": 6, "FLOW_TYPE_IP4_N_TUPLE_V2": 7, "FLOW_TYPE_IP6_N_TUPLE_V2": 8, "FLOW_TYPE_IP4_N_TUPLE_TAGGED_V2": 9, "FLOW_TYPE_IP6_N_TUPLE_TAGGED_V2": 10, "FLOW_TYPE_IP4_VXLAN_V2": 11, "FLOW_TYPE_IP6_VXLAN_V2": 12, "FLOW_TYPE_IP4_GTPC_V2": 13, "FLOW_TYPE_IP4_GTPU_V2": 14, "FLOW_TYPE_GENERIC_V2": 15, } )
var ( RssFunction_name = map[uint32]string{ 0: "RSS_FUNC_DEFAULT", 1: "RSS_FUNC_TOEPLITZ", 2: "RSS_FUNC_SIMPLE_XOR", 3: "RSS_FUNC_SYMMETRIC_TOEPLITZ", } RssFunction_value = map[string]uint32{ "RSS_FUNC_DEFAULT": 0, "RSS_FUNC_TOEPLITZ": 1, "RSS_FUNC_SIMPLE_XOR": 2, "RSS_FUNC_SYMMETRIC_TOEPLITZ": 3, } )
Functions ¶
This section is empty.
Types ¶
type FlowAction ¶
type FlowAction uint32
FlowAction defines enum 'flow_action'.
const ( FLOW_ACTION_COUNT FlowAction = 1 FLOW_ACTION_MARK FlowAction = 2 FLOW_ACTION_BUFFER_ADVANCE FlowAction = 4 FLOW_ACTION_REDIRECT_TO_NODE FlowAction = 8 FLOW_ACTION_REDIRECT_TO_QUEUE FlowAction = 16 FLOW_ACTION_DROP FlowAction = 64 )
func (FlowAction) String ¶
func (x FlowAction) String() string
type FlowActionV2 ¶
type FlowActionV2 uint32
FlowActionV2 defines enum 'flow_action_v2'.
const ( FLOW_ACTION_COUNT_V2 FlowActionV2 = 1 FLOW_ACTION_MARK_V2 FlowActionV2 = 2 FLOW_ACTION_BUFFER_ADVANCE_V2 FlowActionV2 = 4 FLOW_ACTION_REDIRECT_TO_NODE_V2 FlowActionV2 = 8 FLOW_ACTION_REDIRECT_TO_QUEUE_V2 FlowActionV2 = 16 FLOW_ACTION_RSS_V2 FlowActionV2 = 32 FLOW_ACTION_DROP_V2 FlowActionV2 = 64 )
func (FlowActionV2) String ¶
func (x FlowActionV2) String() string
type FlowEthernet ¶
type FlowEthernet struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ethernet_types.MacAddress `binapi:"mac_address,name=src_addr" json:"src_addr,omitempty"` DstAddr ethernet_types.MacAddress `binapi:"mac_address,name=dst_addr" json:"dst_addr,omitempty"` Type uint16 `binapi:"u16,name=type" json:"type,omitempty"` }
FlowEthernet defines type 'flow_ethernet'.
type FlowGeneric ¶
type FlowGeneric struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` Pattern GenericPattern `binapi:"generic_pattern,name=pattern" json:"pattern,omitempty"` }
FlowGeneric defines type 'flow_generic'.
type FlowIP4 ¶
type FlowIP4 struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` }
FlowIP4 defines type 'flow_ip4'.
type FlowIP4Gtpc ¶
type FlowIP4Gtpc struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` SrcPort IPPortAndMask `binapi:"ip_port_and_mask,name=src_port" json:"src_port,omitempty"` DstPort IPPortAndMask `binapi:"ip_port_and_mask,name=dst_port" json:"dst_port,omitempty"` Teid uint32 `binapi:"u32,name=teid" json:"teid,omitempty"` }
FlowIP4Gtpc defines type 'flow_ip4_gtpc'.
type FlowIP4Gtpu ¶
type FlowIP4Gtpu struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` SrcPort IPPortAndMask `binapi:"ip_port_and_mask,name=src_port" json:"src_port,omitempty"` DstPort IPPortAndMask `binapi:"ip_port_and_mask,name=dst_port" json:"dst_port,omitempty"` Teid uint32 `binapi:"u32,name=teid" json:"teid,omitempty"` }
FlowIP4Gtpu defines type 'flow_ip4_gtpu'.
type FlowIP4IpsecAh ¶
type FlowIP4IpsecAh struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` Spi uint32 `binapi:"u32,name=spi" json:"spi,omitempty"` }
FlowIP4IpsecAh defines type 'flow_ip4_ipsec_ah'.
type FlowIP4IpsecEsp ¶
type FlowIP4IpsecEsp struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` Spi uint32 `binapi:"u32,name=spi" json:"spi,omitempty"` }
FlowIP4IpsecEsp defines type 'flow_ip4_ipsec_esp'.
type FlowIP4L2tpv3oip ¶
type FlowIP4L2tpv3oip struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` SessionID uint32 `binapi:"u32,name=session_id" json:"session_id,omitempty"` }
FlowIP4L2tpv3oip defines type 'flow_ip4_l2tpv3oip'.
type FlowIP4NTuple ¶
type FlowIP4NTuple struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` SrcPort IPPortAndMask `binapi:"ip_port_and_mask,name=src_port" json:"src_port,omitempty"` DstPort IPPortAndMask `binapi:"ip_port_and_mask,name=dst_port" json:"dst_port,omitempty"` }
FlowIP4NTuple defines type 'flow_ip4_n_tuple'.
type FlowIP4NTupleTagged ¶
type FlowIP4NTupleTagged struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` SrcPort IPPortAndMask `binapi:"ip_port_and_mask,name=src_port" json:"src_port,omitempty"` DstPort IPPortAndMask `binapi:"ip_port_and_mask,name=dst_port" json:"dst_port,omitempty"` }
FlowIP4NTupleTagged defines type 'flow_ip4_n_tuple_tagged'.
type FlowIP4Vxlan ¶
type FlowIP4Vxlan struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP4AddressAndMask `binapi:"ip4_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` SrcPort IPPortAndMask `binapi:"ip_port_and_mask,name=src_port" json:"src_port,omitempty"` DstPort IPPortAndMask `binapi:"ip_port_and_mask,name=dst_port" json:"dst_port,omitempty"` Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"` }
FlowIP4Vxlan defines type 'flow_ip4_vxlan'.
type FlowIP6 ¶
type FlowIP6 struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP6AddressAndMask `binapi:"ip6_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP6AddressAndMask `binapi:"ip6_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` }
FlowIP6 defines type 'flow_ip6'.
type FlowIP6NTuple ¶
type FlowIP6NTuple struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP6AddressAndMask `binapi:"ip6_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP6AddressAndMask `binapi:"ip6_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` SrcPort IPPortAndMask `binapi:"ip_port_and_mask,name=src_port" json:"src_port,omitempty"` DstPort IPPortAndMask `binapi:"ip_port_and_mask,name=dst_port" json:"dst_port,omitempty"` }
FlowIP6NTuple defines type 'flow_ip6_n_tuple'.
type FlowIP6NTupleTagged ¶
type FlowIP6NTupleTagged struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP6AddressAndMask `binapi:"ip6_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP6AddressAndMask `binapi:"ip6_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` SrcPort IPPortAndMask `binapi:"ip_port_and_mask,name=src_port" json:"src_port,omitempty"` DstPort IPPortAndMask `binapi:"ip_port_and_mask,name=dst_port" json:"dst_port,omitempty"` }
FlowIP6NTupleTagged defines type 'flow_ip6_n_tuple_tagged'.
type FlowIP6Vxlan ¶
type FlowIP6Vxlan struct { Foo int32 `binapi:"i32,name=foo" json:"foo,omitempty"` SrcAddr ip_types.IP6AddressAndMask `binapi:"ip6_address_and_mask,name=src_addr" json:"src_addr,omitempty"` DstAddr ip_types.IP6AddressAndMask `binapi:"ip6_address_and_mask,name=dst_addr" json:"dst_addr,omitempty"` Protocol IPProtAndMask `binapi:"ip_prot_and_mask,name=protocol" json:"protocol,omitempty"` SrcPort IPPortAndMask `binapi:"ip_port_and_mask,name=src_port" json:"src_port,omitempty"` DstPort IPPortAndMask `binapi:"ip_port_and_mask,name=dst_port" json:"dst_port,omitempty"` Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"` }
FlowIP6Vxlan defines type 'flow_ip6_vxlan'.
type FlowRule ¶
type FlowRule struct { Type FlowType `binapi:"flow_type,name=type" json:"type,omitempty"` Index uint32 `binapi:"u32,name=index" json:"index,omitempty"` Actions FlowAction `binapi:"flow_action,name=actions" json:"actions,omitempty"` MarkFlowID uint32 `binapi:"u32,name=mark_flow_id" json:"mark_flow_id,omitempty"` RedirectNodeIndex uint32 `binapi:"u32,name=redirect_node_index" json:"redirect_node_index,omitempty"` RedirectDeviceInputNextIndex uint32 `binapi:"u32,name=redirect_device_input_next_index" json:"redirect_device_input_next_index,omitempty"` RedirectQueue uint32 `binapi:"u32,name=redirect_queue" json:"redirect_queue,omitempty"` BufferAdvance int32 `binapi:"i32,name=buffer_advance" json:"buffer_advance,omitempty"` Flow FlowUnion `binapi:"flow,name=flow" json:"flow,omitempty"` }
FlowRule defines type 'flow_rule'.
type FlowRuleV2 ¶
type FlowRuleV2 struct { Type FlowTypeV2 `binapi:"flow_type_v2,name=type" json:"type,omitempty"` Index uint32 `binapi:"u32,name=index" json:"index,omitempty"` Actions FlowActionV2 `binapi:"flow_action_v2,name=actions" json:"actions,omitempty"` MarkFlowID uint32 `binapi:"u32,name=mark_flow_id" json:"mark_flow_id,omitempty"` RedirectNodeIndex uint32 `binapi:"u32,name=redirect_node_index" json:"redirect_node_index,omitempty"` RedirectDeviceInputNextIndex uint32 `binapi:"u32,name=redirect_device_input_next_index" json:"redirect_device_input_next_index,omitempty"` RedirectQueue uint32 `binapi:"u32,name=redirect_queue" json:"redirect_queue,omitempty"` QueueIndex uint32 `binapi:"u32,name=queue_index" json:"queue_index,omitempty"` QueueNum uint32 `binapi:"u32,name=queue_num" json:"queue_num,omitempty"` BufferAdvance int32 `binapi:"i32,name=buffer_advance" json:"buffer_advance,omitempty"` RssTypes uint64 `binapi:"u64,name=rss_types" json:"rss_types,omitempty"` RssFun RssFunction `binapi:"rss_function,name=rss_fun" json:"rss_fun,omitempty"` Flow FlowV2Union `binapi:"flow_v2,name=flow" json:"flow,omitempty"` }
FlowRuleV2 defines type 'flow_rule_v2'.
type FlowType ¶
type FlowType uint32
FlowType defines enum 'flow_type'.
const ( FLOW_TYPE_ETHERNET FlowType = 1 FLOW_TYPE_IP4 FlowType = 2 FLOW_TYPE_IP6 FlowType = 3 FLOW_TYPE_IP4_L2TPV3OIP FlowType = 4 FLOW_TYPE_IP4_IPSEC_ESP FlowType = 5 FLOW_TYPE_IP4_IPSEC_AH FlowType = 6 FLOW_TYPE_IP4_N_TUPLE FlowType = 7 FLOW_TYPE_IP6_N_TUPLE FlowType = 8 FLOW_TYPE_IP4_N_TUPLE_TAGGED FlowType = 9 FLOW_TYPE_IP6_N_TUPLE_TAGGED FlowType = 10 FLOW_TYPE_IP4_VXLAN FlowType = 11 FLOW_TYPE_IP6_VXLAN FlowType = 12 FLOW_TYPE_IP4_GTPC FlowType = 13 FLOW_TYPE_IP4_GTPU FlowType = 14 )
type FlowTypeV2 ¶
type FlowTypeV2 uint32
FlowTypeV2 defines enum 'flow_type_v2'.
const ( FLOW_TYPE_ETHERNET_V2 FlowTypeV2 = 1 FLOW_TYPE_IP4_V2 FlowTypeV2 = 2 FLOW_TYPE_IP6_V2 FlowTypeV2 = 3 FLOW_TYPE_IP4_L2TPV3OIP_V2 FlowTypeV2 = 4 FLOW_TYPE_IP4_IPSEC_ESP_V2 FlowTypeV2 = 5 FLOW_TYPE_IP4_IPSEC_AH_V2 FlowTypeV2 = 6 FLOW_TYPE_IP4_N_TUPLE_V2 FlowTypeV2 = 7 FLOW_TYPE_IP6_N_TUPLE_V2 FlowTypeV2 = 8 FLOW_TYPE_IP4_N_TUPLE_TAGGED_V2 FlowTypeV2 = 9 FLOW_TYPE_IP6_N_TUPLE_TAGGED_V2 FlowTypeV2 = 10 FLOW_TYPE_IP4_VXLAN_V2 FlowTypeV2 = 11 FLOW_TYPE_IP6_VXLAN_V2 FlowTypeV2 = 12 FLOW_TYPE_IP4_GTPC_V2 FlowTypeV2 = 13 FLOW_TYPE_IP4_GTPU_V2 FlowTypeV2 = 14 FLOW_TYPE_GENERIC_V2 FlowTypeV2 = 15 )
func (FlowTypeV2) String ¶
func (x FlowTypeV2) String() string
type FlowUnion ¶
type FlowUnion struct { // FlowUnion can be one of: // - Ethernet *FlowEthernet // - IP4 *FlowIP4 // - IP6 *FlowIP6 // - IP4L2tpv3oip *FlowIP4L2tpv3oip // - IP4IpsecEsp *FlowIP4IpsecEsp // - IP4IpsecAh *FlowIP4IpsecAh // - IP4NTuple *FlowIP4NTuple // - IP6NTuple *FlowIP6NTuple // - IP4NTupleTagged *FlowIP4NTupleTagged // - IP6NTupleTagged *FlowIP6NTupleTagged // - IP4Vxlan *FlowIP4Vxlan // - IP6Vxlan *FlowIP6Vxlan // - IP4Gtpc *FlowIP4Gtpc // - IP4Gtpu *FlowIP4Gtpu XXX_UnionData [82]byte }
FlowUnion defines union 'flow'.
func FlowUnionEthernet ¶
func FlowUnionEthernet(a FlowEthernet) (u FlowUnion)
func FlowUnionIP4 ¶
func FlowUnionIP4Gtpc ¶
func FlowUnionIP4Gtpc(a FlowIP4Gtpc) (u FlowUnion)
func FlowUnionIP4Gtpu ¶
func FlowUnionIP4Gtpu(a FlowIP4Gtpu) (u FlowUnion)
func FlowUnionIP4IpsecAh ¶
func FlowUnionIP4IpsecAh(a FlowIP4IpsecAh) (u FlowUnion)
func FlowUnionIP4IpsecEsp ¶
func FlowUnionIP4IpsecEsp(a FlowIP4IpsecEsp) (u FlowUnion)
func FlowUnionIP4L2tpv3oip ¶
func FlowUnionIP4L2tpv3oip(a FlowIP4L2tpv3oip) (u FlowUnion)
func FlowUnionIP4NTuple ¶
func FlowUnionIP4NTuple(a FlowIP4NTuple) (u FlowUnion)
func FlowUnionIP4NTupleTagged ¶
func FlowUnionIP4NTupleTagged(a FlowIP4NTupleTagged) (u FlowUnion)
func FlowUnionIP4Vxlan ¶
func FlowUnionIP4Vxlan(a FlowIP4Vxlan) (u FlowUnion)
func FlowUnionIP6 ¶
func FlowUnionIP6NTuple ¶
func FlowUnionIP6NTuple(a FlowIP6NTuple) (u FlowUnion)
func FlowUnionIP6NTupleTagged ¶
func FlowUnionIP6NTupleTagged(a FlowIP6NTupleTagged) (u FlowUnion)
func FlowUnionIP6Vxlan ¶
func FlowUnionIP6Vxlan(a FlowIP6Vxlan) (u FlowUnion)
func (*FlowUnion) GetEthernet ¶
func (u *FlowUnion) GetEthernet() (a FlowEthernet)
func (*FlowUnion) GetIP4Gtpc ¶
func (u *FlowUnion) GetIP4Gtpc() (a FlowIP4Gtpc)
func (*FlowUnion) GetIP4Gtpu ¶
func (u *FlowUnion) GetIP4Gtpu() (a FlowIP4Gtpu)
func (*FlowUnion) GetIP4IpsecAh ¶
func (u *FlowUnion) GetIP4IpsecAh() (a FlowIP4IpsecAh)
func (*FlowUnion) GetIP4IpsecEsp ¶
func (u *FlowUnion) GetIP4IpsecEsp() (a FlowIP4IpsecEsp)
func (*FlowUnion) GetIP4L2tpv3oip ¶
func (u *FlowUnion) GetIP4L2tpv3oip() (a FlowIP4L2tpv3oip)
func (*FlowUnion) GetIP4NTuple ¶
func (u *FlowUnion) GetIP4NTuple() (a FlowIP4NTuple)
func (*FlowUnion) GetIP4NTupleTagged ¶
func (u *FlowUnion) GetIP4NTupleTagged() (a FlowIP4NTupleTagged)
func (*FlowUnion) GetIP4Vxlan ¶
func (u *FlowUnion) GetIP4Vxlan() (a FlowIP4Vxlan)
func (*FlowUnion) GetIP6NTuple ¶
func (u *FlowUnion) GetIP6NTuple() (a FlowIP6NTuple)
func (*FlowUnion) GetIP6NTupleTagged ¶
func (u *FlowUnion) GetIP6NTupleTagged() (a FlowIP6NTupleTagged)
func (*FlowUnion) GetIP6Vxlan ¶
func (u *FlowUnion) GetIP6Vxlan() (a FlowIP6Vxlan)
func (*FlowUnion) SetEthernet ¶
func (u *FlowUnion) SetEthernet(a FlowEthernet)
func (*FlowUnion) SetIP4Gtpc ¶
func (u *FlowUnion) SetIP4Gtpc(a FlowIP4Gtpc)
func (*FlowUnion) SetIP4Gtpu ¶
func (u *FlowUnion) SetIP4Gtpu(a FlowIP4Gtpu)
func (*FlowUnion) SetIP4IpsecAh ¶
func (u *FlowUnion) SetIP4IpsecAh(a FlowIP4IpsecAh)
func (*FlowUnion) SetIP4IpsecEsp ¶
func (u *FlowUnion) SetIP4IpsecEsp(a FlowIP4IpsecEsp)
func (*FlowUnion) SetIP4L2tpv3oip ¶
func (u *FlowUnion) SetIP4L2tpv3oip(a FlowIP4L2tpv3oip)
func (*FlowUnion) SetIP4NTuple ¶
func (u *FlowUnion) SetIP4NTuple(a FlowIP4NTuple)
func (*FlowUnion) SetIP4NTupleTagged ¶
func (u *FlowUnion) SetIP4NTupleTagged(a FlowIP4NTupleTagged)
func (*FlowUnion) SetIP4Vxlan ¶
func (u *FlowUnion) SetIP4Vxlan(a FlowIP4Vxlan)
func (*FlowUnion) SetIP6NTuple ¶
func (u *FlowUnion) SetIP6NTuple(a FlowIP6NTuple)
func (*FlowUnion) SetIP6NTupleTagged ¶
func (u *FlowUnion) SetIP6NTupleTagged(a FlowIP6NTupleTagged)
func (*FlowUnion) SetIP6Vxlan ¶
func (u *FlowUnion) SetIP6Vxlan(a FlowIP6Vxlan)
type FlowV2Union ¶
type FlowV2Union struct { // FlowV2Union can be one of: // - Ethernet *FlowEthernet // - IP4 *FlowIP4 // - IP6 *FlowIP6 // - IP4L2tpv3oip *FlowIP4L2tpv3oip // - IP4IpsecEsp *FlowIP4IpsecEsp // - IP4IpsecAh *FlowIP4IpsecAh // - IP4NTuple *FlowIP4NTuple // - IP6NTuple *FlowIP6NTuple // - IP4NTupleTagged *FlowIP4NTupleTagged // - IP6NTupleTagged *FlowIP6NTupleTagged // - IP4Vxlan *FlowIP4Vxlan // - IP6Vxlan *FlowIP6Vxlan // - IP4Gtpc *FlowIP4Gtpc // - IP4Gtpu *FlowIP4Gtpu // - Generic *FlowGeneric XXX_UnionData [2052]byte }
FlowV2Union defines union 'flow_v2'.
func FlowV2UnionEthernet ¶
func FlowV2UnionEthernet(a FlowEthernet) (u FlowV2Union)
func FlowV2UnionGeneric ¶
func FlowV2UnionGeneric(a FlowGeneric) (u FlowV2Union)
func FlowV2UnionIP4 ¶
func FlowV2UnionIP4(a FlowIP4) (u FlowV2Union)
func FlowV2UnionIP4Gtpc ¶
func FlowV2UnionIP4Gtpc(a FlowIP4Gtpc) (u FlowV2Union)
func FlowV2UnionIP4Gtpu ¶
func FlowV2UnionIP4Gtpu(a FlowIP4Gtpu) (u FlowV2Union)
func FlowV2UnionIP4IpsecAh ¶
func FlowV2UnionIP4IpsecAh(a FlowIP4IpsecAh) (u FlowV2Union)
func FlowV2UnionIP4IpsecEsp ¶
func FlowV2UnionIP4IpsecEsp(a FlowIP4IpsecEsp) (u FlowV2Union)
func FlowV2UnionIP4L2tpv3oip ¶
func FlowV2UnionIP4L2tpv3oip(a FlowIP4L2tpv3oip) (u FlowV2Union)
func FlowV2UnionIP4NTuple ¶
func FlowV2UnionIP4NTuple(a FlowIP4NTuple) (u FlowV2Union)
func FlowV2UnionIP4NTupleTagged ¶
func FlowV2UnionIP4NTupleTagged(a FlowIP4NTupleTagged) (u FlowV2Union)
func FlowV2UnionIP4Vxlan ¶
func FlowV2UnionIP4Vxlan(a FlowIP4Vxlan) (u FlowV2Union)
func FlowV2UnionIP6 ¶
func FlowV2UnionIP6(a FlowIP6) (u FlowV2Union)
func FlowV2UnionIP6NTuple ¶
func FlowV2UnionIP6NTuple(a FlowIP6NTuple) (u FlowV2Union)
func FlowV2UnionIP6NTupleTagged ¶
func FlowV2UnionIP6NTupleTagged(a FlowIP6NTupleTagged) (u FlowV2Union)
func FlowV2UnionIP6Vxlan ¶
func FlowV2UnionIP6Vxlan(a FlowIP6Vxlan) (u FlowV2Union)
func (*FlowV2Union) GetEthernet ¶
func (u *FlowV2Union) GetEthernet() (a FlowEthernet)
func (*FlowV2Union) GetGeneric ¶
func (u *FlowV2Union) GetGeneric() (a FlowGeneric)
func (*FlowV2Union) GetIP4 ¶
func (u *FlowV2Union) GetIP4() (a FlowIP4)
func (*FlowV2Union) GetIP4Gtpc ¶
func (u *FlowV2Union) GetIP4Gtpc() (a FlowIP4Gtpc)
func (*FlowV2Union) GetIP4Gtpu ¶
func (u *FlowV2Union) GetIP4Gtpu() (a FlowIP4Gtpu)
func (*FlowV2Union) GetIP4IpsecAh ¶
func (u *FlowV2Union) GetIP4IpsecAh() (a FlowIP4IpsecAh)
func (*FlowV2Union) GetIP4IpsecEsp ¶
func (u *FlowV2Union) GetIP4IpsecEsp() (a FlowIP4IpsecEsp)
func (*FlowV2Union) GetIP4L2tpv3oip ¶
func (u *FlowV2Union) GetIP4L2tpv3oip() (a FlowIP4L2tpv3oip)
func (*FlowV2Union) GetIP4NTuple ¶
func (u *FlowV2Union) GetIP4NTuple() (a FlowIP4NTuple)
func (*FlowV2Union) GetIP4NTupleTagged ¶
func (u *FlowV2Union) GetIP4NTupleTagged() (a FlowIP4NTupleTagged)
func (*FlowV2Union) GetIP4Vxlan ¶
func (u *FlowV2Union) GetIP4Vxlan() (a FlowIP4Vxlan)
func (*FlowV2Union) GetIP6 ¶
func (u *FlowV2Union) GetIP6() (a FlowIP6)
func (*FlowV2Union) GetIP6NTuple ¶
func (u *FlowV2Union) GetIP6NTuple() (a FlowIP6NTuple)
func (*FlowV2Union) GetIP6NTupleTagged ¶
func (u *FlowV2Union) GetIP6NTupleTagged() (a FlowIP6NTupleTagged)
func (*FlowV2Union) GetIP6Vxlan ¶
func (u *FlowV2Union) GetIP6Vxlan() (a FlowIP6Vxlan)
func (*FlowV2Union) SetEthernet ¶
func (u *FlowV2Union) SetEthernet(a FlowEthernet)
func (*FlowV2Union) SetGeneric ¶
func (u *FlowV2Union) SetGeneric(a FlowGeneric)
func (*FlowV2Union) SetIP4 ¶
func (u *FlowV2Union) SetIP4(a FlowIP4)
func (*FlowV2Union) SetIP4Gtpc ¶
func (u *FlowV2Union) SetIP4Gtpc(a FlowIP4Gtpc)
func (*FlowV2Union) SetIP4Gtpu ¶
func (u *FlowV2Union) SetIP4Gtpu(a FlowIP4Gtpu)
func (*FlowV2Union) SetIP4IpsecAh ¶
func (u *FlowV2Union) SetIP4IpsecAh(a FlowIP4IpsecAh)
func (*FlowV2Union) SetIP4IpsecEsp ¶
func (u *FlowV2Union) SetIP4IpsecEsp(a FlowIP4IpsecEsp)
func (*FlowV2Union) SetIP4L2tpv3oip ¶
func (u *FlowV2Union) SetIP4L2tpv3oip(a FlowIP4L2tpv3oip)
func (*FlowV2Union) SetIP4NTuple ¶
func (u *FlowV2Union) SetIP4NTuple(a FlowIP4NTuple)
func (*FlowV2Union) SetIP4NTupleTagged ¶
func (u *FlowV2Union) SetIP4NTupleTagged(a FlowIP4NTupleTagged)
func (*FlowV2Union) SetIP4Vxlan ¶
func (u *FlowV2Union) SetIP4Vxlan(a FlowIP4Vxlan)
func (*FlowV2Union) SetIP6 ¶
func (u *FlowV2Union) SetIP6(a FlowIP6)
func (*FlowV2Union) SetIP6NTuple ¶
func (u *FlowV2Union) SetIP6NTuple(a FlowIP6NTuple)
func (*FlowV2Union) SetIP6NTupleTagged ¶
func (u *FlowV2Union) SetIP6NTupleTagged(a FlowIP6NTupleTagged)
func (*FlowV2Union) SetIP6Vxlan ¶
func (u *FlowV2Union) SetIP6Vxlan(a FlowIP6Vxlan)
type GenericPattern ¶
type GenericPattern struct { Spec []byte `binapi:"u8[1024],name=spec" json:"spec,omitempty"` Mask []byte `binapi:"u8[1024],name=mask" json:"mask,omitempty"` }
GenericPattern defines type 'generic_pattern'.
type IPPortAndMask ¶
type IPPortAndMask struct { Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` Mask uint16 `binapi:"u16,name=mask" json:"mask,omitempty"` }
IPPortAndMask defines type 'ip_port_and_mask'.
type IPProtAndMask ¶
type IPProtAndMask struct { Prot ip_types.IPProto `binapi:"ip_proto,name=prot" json:"prot,omitempty"` Mask uint8 `binapi:"u8,name=mask" json:"mask,omitempty"` }
IPProtAndMask defines type 'ip_prot_and_mask'.
type RssFunction ¶
type RssFunction uint32
RssFunction defines enum 'rss_function'.
const ( RSS_FUNC_DEFAULT RssFunction = 0 RSS_FUNC_TOEPLITZ RssFunction = 1 RSS_FUNC_SIMPLE_XOR RssFunction = 2 RSS_FUNC_SYMMETRIC_TOEPLITZ RssFunction = 3 )
func (RssFunction) String ¶
func (x RssFunction) String() string