base/frameworks/openflow/consts.zeek¶
-
OpenFlow
¶
Constants used by the OpenFlow framework.
- Namespace
OpenFlow
Summary¶
Constants¶
Return value for a cookie from a flow which is not added, modified or deleted from the Zeek openflow framework. |
|
Check for overlapping entries first. |
|
Remark this is for emergency. |
|
Send flow removed message when flow expires or is deleted. |
|
All physical ports except input port. |
|
Wildcard port used only for flow mod (delete) and flow stats requests. |
|
Send to controller. |
|
All physical ports except input port and those disabled by STP. |
|
Send the packet out the input port. |
|
Local openflow “port”. |
|
Process with normal L2/L3 switching. |
|
Perform actions in flow table. |
|
Types¶
Openflow action_type definitions. |
|
Openflow config flag definitions. |
|
Openflow flow_mod_command definitions. |
Detailed Interface¶
Constants¶
-
OpenFlow::INVALID_COOKIE
¶ - Type
- Default
18446744073709551615
Return value for a cookie from a flow which is not added, modified or deleted from the Zeek openflow framework.
-
OpenFlow::OFPFF_EMERG
¶ - Type
- 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
- Default
1
Send flow removed message when flow expires or is deleted.
-
OpenFlow::OFPP_ANY
¶ - Type
- Default
4294967295
Wildcard port used only for flow mod (delete) and flow stats requests.
-
OpenFlow::OFPP_FLOOD
¶ - Type
- Default
4294967291
All physical ports except input port and those disabled by STP.
-
OpenFlow::OFPP_IN_PORT
¶ - Type
- 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_TABLE
¶ - Type
- Default
4294967289
Perform actions in flow table. NB: This can only be the destination port for packet-out messages.
Types¶
-
OpenFlow::ofp_action_type
¶ - Type
-
-
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
-
-
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
-
-
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.