base/frameworks/openflow/consts.bro

OpenFlow

Constants used by the OpenFlow framework.

Namespace:OpenFlow
Source File:/scripts/base/frameworks/openflow/consts.bro

Summary

Constants

OpenFlow::ETH_APPLETALK: count  
OpenFlow::ETH_APPLETALK_ARP: count  
OpenFlow::ETH_ARP: count  
OpenFlow::ETH_EAP_OVER_LAN: count  
OpenFlow::ETH_ETHER_FLOW_CONTROL: count  
OpenFlow::ETH_IPX: count  
OpenFlow::ETH_IPX_OLD: count  
OpenFlow::ETH_IPv4: count  
OpenFlow::ETH_IPv6: count  
OpenFlow::ETH_JUMBO_FRAMES: count  
OpenFlow::ETH_MAC_SECURITY: count  
OpenFlow::ETH_MPLS_MULTICAST: count  
OpenFlow::ETH_MPLS_UNICAST: count  
OpenFlow::ETH_PPPOE_DISCOVERY: count  
OpenFlow::ETH_PPPOE_SESSION: count  
OpenFlow::ETH_PROVIDER_BRIDING: count  
OpenFlow::ETH_QINQ: count  
OpenFlow::ETH_RARP: count  
OpenFlow::ETH_VLAN: count  
OpenFlow::ETH_WOL: count  
OpenFlow::INVALID_COOKIE: count Return value for a cookie from a flow which is not added, modified or deleted from the bro openflow framework.
OpenFlow::IP_CBT: count  
OpenFlow::IP_EGP: count  
OpenFlow::IP_ETHERIP: count  
OpenFlow::IP_FC: count  
OpenFlow::IP_GGP: count  
OpenFlow::IP_GRE: count  
OpenFlow::IP_HOPOPT: count  
OpenFlow::IP_ICMP: count  
OpenFlow::IP_IGMP: count  
OpenFlow::IP_IGP: count  
OpenFlow::IP_IPIP: count  
OpenFlow::IP_IPv6: count  
OpenFlow::IP_ISIS: count  
OpenFlow::IP_L2TP: count  
OpenFlow::IP_MPLS: count  
OpenFlow::IP_MTP: count  
OpenFlow::IP_OSPF: count  
OpenFlow::IP_RDP: count  
OpenFlow::IP_RSVP: count  
OpenFlow::IP_ST: count  
OpenFlow::IP_TCP: count  
OpenFlow::IP_UDP: count  
OpenFlow::OFPFF_CHECK_OVERLAP: count Check for overlapping entries first.
OpenFlow::OFPFF_EMERG: count Remark this is for emergency.
OpenFlow::OFPFF_SEND_FLOW_REM: count Send flow removed message when flow expires or is deleted.
OpenFlow::OFPP_ALL: count All physical ports except input port.
OpenFlow::OFPP_ANY: count Wildcard port used only for flow mod (delete) and flow stats requests.
OpenFlow::OFPP_CONTROLLER: count Send to controller.
OpenFlow::OFPP_FLOOD: count All physical ports except input port and those disabled by STP.
OpenFlow::OFPP_IN_PORT: count Send the packet out the input port.
OpenFlow::OFPP_LOCAL: count Local openflow “port”.
OpenFlow::OFPP_NORMAL: count Process with normal L2/L3 switching.
OpenFlow::OFPP_TABLE: count Perform actions in flow table.
OpenFlow::OFPTT_ALL: count  
OpenFlow::OFP_NO_BUFFER: count  

Types

OpenFlow::ofp_action_type: enum Openflow action_type definitions.
OpenFlow::ofp_config_flags: enum Openflow config flag definitions.
OpenFlow::ofp_flow_mod_command: enum Openflow flow_mod_command definitions.

Detailed Interface

Constants

OpenFlow::ETH_APPLETALK
Type:count
Default:32923
OpenFlow::ETH_APPLETALK_ARP
Type:count
Default:33011
OpenFlow::ETH_ARP
Type:count
Default:2054
OpenFlow::ETH_EAP_OVER_LAN
Type:count
Default:34958
OpenFlow::ETH_ETHER_FLOW_CONTROL
Type:count
Default:34824
OpenFlow::ETH_IPX
Type:count
Default:33080
OpenFlow::ETH_IPX_OLD
Type:count
Default:33079
OpenFlow::ETH_IPv4
Type:count
Default:2048
OpenFlow::ETH_IPv6
Type:count
Default:34525
OpenFlow::ETH_JUMBO_FRAMES
Type:count
Default:34928
OpenFlow::ETH_MAC_SECURITY
Type:count
Default:35045
OpenFlow::ETH_MPLS_MULTICAST
Type:count
Default:34888
OpenFlow::ETH_MPLS_UNICAST
Type:count
Default:34887
OpenFlow::ETH_PPPOE_DISCOVERY
Type:count
Default:34915
OpenFlow::ETH_PPPOE_SESSION
Type:count
Default:34916
OpenFlow::ETH_PROVIDER_BRIDING
Type:count
Default:34984
OpenFlow::ETH_QINQ
Type:count
Default:37120
OpenFlow::ETH_RARP
Type:count
Default:32821
OpenFlow::ETH_VLAN
Type:count
Default:33024
OpenFlow::ETH_WOL
Type:count
Default:2114
Type:count
Default:18446744073709551615

Return value for a cookie from a flow which is not added, modified or deleted from the bro openflow framework.

OpenFlow::IP_CBT
Type:count
Default:7
OpenFlow::IP_EGP
Type:count
Default:8
OpenFlow::IP_ETHERIP
Type:count
Default:97
OpenFlow::IP_FC
Type:count
Default:133
OpenFlow::IP_GGP
Type:count
Default:3
OpenFlow::IP_GRE
Type:count
Default:47
OpenFlow::IP_HOPOPT
Type:count
Default:0
OpenFlow::IP_ICMP
Type:count
Default:1
OpenFlow::IP_IGMP
Type:count
Default:2
OpenFlow::IP_IGP
Type:count
Default:9
OpenFlow::IP_IPIP
Type:count
Default:4
OpenFlow::IP_IPv6
Type:count
Default:41
OpenFlow::IP_ISIS
Type:count
Default:124
OpenFlow::IP_L2TP
Type:count
Default:115
OpenFlow::IP_MPLS
Type:count
Default:137
OpenFlow::IP_MTP
Type:count
Default:92
OpenFlow::IP_OSPF
Type:count
Default:89
OpenFlow::IP_RDP
Type:count
Default:27
OpenFlow::IP_RSVP
Type:count
Default:46
OpenFlow::IP_ST
Type:count
Default:5
OpenFlow::IP_TCP
Type:count
Default:6
OpenFlow::IP_UDP
Type:count
Default:17
OpenFlow::OFPFF_CHECK_OVERLAP
Type:count
Default:2

Check for overlapping entries first.

OpenFlow::OFPFF_EMERG
Type:count
Default:4

Remark this is for emergency. Flows added with this are only used when the controller is disconnected.

OpenFlow::OFPFF_SEND_FLOW_REM
Type:count
Default:1

Send flow removed message when flow expires or is deleted.

OpenFlow::OFPP_ALL
Type:count
Default:4294967292

All physical ports except input port.

OpenFlow::OFPP_ANY
Type:count
Default:4294967295

Wildcard port used only for flow mod (delete) and flow stats requests.

OpenFlow::OFPP_CONTROLLER
Type:count
Default:4294967293

Send to controller.

OpenFlow::OFPP_FLOOD
Type:count
Default:4294967291

All physical ports except input port and those disabled by STP.

OpenFlow::OFPP_IN_PORT
Type:count
Default:4294967288

Send the packet out the input port. This virual port must be explicitly used in order to send back out of the input port.

OpenFlow::OFPP_LOCAL
Type:count
Default:4294967294

Local openflow “port”.

OpenFlow::OFPP_NORMAL
Type:count
Default:4294967290

Process with normal L2/L3 switching.

OpenFlow::OFPP_TABLE
Type:count
Default:4294967289

Perform actions in flow table. NB: This can only be the destination port for packet-out messages.

OpenFlow::OFPTT_ALL
Type:count
Default:255
OpenFlow::OFP_NO_BUFFER
Type:count
Default:4294967295

Types

OpenFlow::ofp_action_type
Type:

enum

OpenFlow::OFPAT_OUTPUT

Output to switch port.

OpenFlow::OFPAT_SET_VLAN_VID

Set the 802.1q VLAN id.

OpenFlow::OFPAT_SET_VLAN_PCP

Set the 802.1q priority.

OpenFlow::OFPAT_STRIP_VLAN

Strip the 802.1q header.

OpenFlow::OFPAT_SET_DL_SRC

Ethernet source address.

OpenFlow::OFPAT_SET_DL_DST

Ethernet destination address.

OpenFlow::OFPAT_SET_NW_SRC

IP source address.

OpenFlow::OFPAT_SET_NW_DST

IP destination address.

OpenFlow::OFPAT_SET_NW_TOS

IP ToS (DSCP field, 6 bits).

OpenFlow::OFPAT_SET_TP_SRC

TCP/UDP source port.

OpenFlow::OFPAT_SET_TP_DST

TCP/UDP destination port.

OpenFlow::OFPAT_ENQUEUE

Output to queue.

OpenFlow::OFPAT_VENDOR

Vendor specific.

Openflow action_type definitions.

The openflow action type defines what actions openflow can take to modify a packet

OpenFlow::ofp_config_flags
Type:

enum

OpenFlow::OFPC_FRAG_NORMAL

No special handling for fragments.

OpenFlow::OFPC_FRAG_DROP

Drop fragments.

OpenFlow::OFPC_FRAG_REASM

Reassemble (only if OFPC_IP_REASM set).

OpenFlow::OFPC_FRAG_MASK

Openflow config flag definitions.

TODO: describe

OpenFlow::ofp_flow_mod_command
Type:

enum

OpenFlow::OFPFC_ADD

New flow.

OpenFlow::OFPFC_MODIFY

Modify all matching flows.

OpenFlow::OFPFC_MODIFY_STRICT

Modify entry strictly matching wildcards.

OpenFlow::OFPFC_DELETE

Delete all matching flows.

OpenFlow::OFPFC_DELETE_STRICT

Strictly matching wildcards and priority.

Openflow flow_mod_command definitions.

The openflow flow_mod_command describes of what kind an action is.


Copyright 2016, The Bro Project. Last updated on December 19, 2018. Created using Sphinx 1.8.2.