OpenFlow Data Plane Abstraction (OF-DPA) API Guide and Reference Manual
Data Fields
ofdpaPolicyAclFlowMatch_s Struct Reference

ACL Flow Table Match. More...

#include <ofdpa_datatypes.h>

Data Fields

in_addr_t destIp4
 Destination v4 IP stored in host byte order.
 
in_addr_t destIp4Mask
 Destination v4 IP mask stored in host byte order.
 
struct in6_addr destIp6
 Destination v4 IP.
 
struct in6_addr destIp6Mask
 Destination v4 IP Mask.
 
uint32_t destL4Port
 Destination L4 Port.
 
uint32_t destL4PortMask
 Mask.
 
ofdpaMacAddr_t destMac
 Destination MAC.
 
ofdpaMacAddr_t destMacMask
 Destination MAC Mask.
 
uint16_t dscp
 DSCP.
 
uint16_t dscpMask
 DSCP Mask.
 
uint16_t ecn
 ECN bits of IP header.
 
uint16_t ecnMask
 ECN Mask.
 
uint16_t etherType
 
etherType dictates what other fields are eligible for matching;

if etherType == 0x86dd, only IPv6 L3 fields are matched

 
uint16_t etherTypeMask
 
uint8_t icmpCode
 ICMP Code.
 
uint8_t icmpCodeMask
 Mask.
 
uint8_t icmpType
 ICMP Type.
 
uint8_t icmpTypeMask
 Mask.
 
uint32_t inPort
 OpenFlow Ingress Port number.
 
uint32_t inPortMask
 Field maskable only.
 
uint16_t ipProto
 IP protocol.
 
uint16_t ipProtoMask
 IP protocol Mask.
 
uint32_t ipv4ArpSpa
 Source IPv4 address in the ARP payload.
 
uint32_t ipv4ArpSpaMask
 Mask.
 
uint32_t ipv6FlowLabel
 IPv6 Flow label.
 
uint32_t ipv6FlowLabelMask
 Mask.
 
uint32_t mplsL2Port
 MPLS L2 Port number.
 
uint32_t mplsL2PortMask
 MPLS L2 Port number mask.
 
in_addr_t sourceIp4
 Source v4 IP stored in host byte order.
 
in_addr_t sourceIp4Mask
 Source v4 IP mask stored in host byte order.
 
struct in6_addr sourceIp6
 Source v6 IP.
 
struct in6_addr sourceIp6Mask
 Source v6 IP Mask.
 
uint32_t srcL4Port
 Source L4 Port.
 
uint32_t srcL4PortMask
 Mask.
 
ofdpaMacAddr_t srcMac
 Source MAC.
 
ofdpaMacAddr_t srcMacMask
 Source MAC Mask.
 
uint32_t tunnelId
 Tenant Identifier.
 
uint32_t tunnelIdMask
 
uint8_t vlanDei
 VLAN DEI.
 
uint8_t vlanDeiMask
 VLAN DEI Mask.
 
uint16_t vlanId
 VLAN ID.
 
uint16_t vlanIdMask
 VLAN ID Mask.
 
uint16_t vlanPcp
 VLAN Priority Code Point.
 
uint16_t vlanPcpMask
 VLAN PCP Mask.
 
uint16_t vrf
 Virtual Routing and Forwarding.
 
uint16_t vrfMask
 VRF Mask.
 

Detailed Description

ACL Flow Table Match.

Definition at line 1268 of file ofdpa_datatypes.h.

Field Documentation

uint32_t ofdpaPolicyAclFlowMatch_s::destL4Port

Destination L4 Port.

Only used for TCP, UDP, or SCTP

Definition at line 1383 of file ofdpa_datatypes.h.

uint16_t ofdpaPolicyAclFlowMatch_s::ecn

ECN bits of IP header.

Part of the IPv4 ToS field or the IPv6 Trac Class field.

Definition at line 1371 of file ofdpa_datatypes.h.

uint8_t ofdpaPolicyAclFlowMatch_s::icmpType

ICMP Type.

Only used if IP_PROTO is 1

Definition at line 1389 of file ofdpa_datatypes.h.

uint16_t ofdpaPolicyAclFlowMatch_s::ipProto

IP protocol.

Only used if etherType == 0x0800

Definition at line 1359 of file ofdpa_datatypes.h.

uint32_t ofdpaPolicyAclFlowMatch_s::ipv4ArpSpa

Source IPv4 address in the ARP payload.

Only used if etherType == 0x0806

Definition at line 1353 of file ofdpa_datatypes.h.

uint32_t ofdpaPolicyAclFlowMatch_s::ipv6FlowLabel

IPv6 Flow label.

Only used if etherType == 0x86dd

Definition at line 1401 of file ofdpa_datatypes.h.

uint32_t ofdpaPolicyAclFlowMatch_s::srcL4Port

Source L4 Port.

Only used for TCP, UDP, or SCTP

Definition at line 1377 of file ofdpa_datatypes.h.

uint8_t ofdpaPolicyAclFlowMatch_s::vlanDei

VLAN DEI.

Will be zero if packet did not have a VLAN tag. 1 bit used for VLAN DEI

Definition at line 1313 of file ofdpa_datatypes.h.

uint16_t ofdpaPolicyAclFlowMatch_s::vlanPcp

VLAN Priority Code Point.

3 bits used for VLAN PCP

Definition at line 1306 of file ofdpa_datatypes.h.


The documentation for this struct was generated from the following file: