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::ETH_APPLETALK
- Type:
- Default:
32923
- OpenFlow::ETH_APPLETALK_ARP
- Type:
- Default:
33011
- OpenFlow::ETH_ARP
- Type:
- Default:
2054
- OpenFlow::ETH_EAP_OVER_LAN
- Type:
- Default:
34958
- OpenFlow::ETH_ETHER_FLOW_CONTROL
- Type:
- Default:
34824
- OpenFlow::ETH_IPX
- Type:
- Default:
33080
- OpenFlow::ETH_IPX_OLD
- Type:
- Default:
33079
- OpenFlow::ETH_IPv4
- Type:
- Default:
2048
- OpenFlow::ETH_IPv6
- Type:
- Default:
34525
- OpenFlow::ETH_JUMBO_FRAMES
- Type:
- Default:
34928
- OpenFlow::ETH_MAC_SECURITY
- Type:
- Default:
35045
- OpenFlow::ETH_MPLS_MULTICAST
- Type:
- Default:
34888
- OpenFlow::ETH_MPLS_UNICAST
- Type:
- Default:
34887
- OpenFlow::ETH_PPPOE_DISCOVERY
- Type:
- Default:
34915
- OpenFlow::ETH_PPPOE_SESSION
- Type:
- Default:
34916
- OpenFlow::ETH_PROVIDER_BRIDING
- Type:
- Default:
34984
- OpenFlow::ETH_QINQ
- Type:
- Default:
37120
- OpenFlow::ETH_RARP
- Type:
- Default:
32821
- OpenFlow::ETH_VLAN
- Type:
- Default:
33024
- OpenFlow::ETH_WOL
- Type:
- Default:
2114
- OpenFlow::INVALID_COOKIE
- Type:
- Default:
9223372036854775807
Return value for a cookie from a flow which is not added, modified or deleted from the Zeek openflow framework.
- OpenFlow::IP_CBT
- Type:
- Default:
7
- OpenFlow::IP_EGP
- Type:
- Default:
8
- OpenFlow::IP_ETHERIP
- Type:
- Default:
97
- OpenFlow::IP_FC
- Type:
- Default:
133
- OpenFlow::IP_GGP
- Type:
- Default:
3
- OpenFlow::IP_GRE
- Type:
- Default:
47
- OpenFlow::IP_HOPOPT
- Type:
- Default:
0
- OpenFlow::IP_ICMP
- Type:
- Default:
1
- OpenFlow::IP_IGMP
- Type:
- Default:
2
- OpenFlow::IP_IGP
- Type:
- Default:
9
- OpenFlow::IP_IPIP
- Type:
- Default:
4
- OpenFlow::IP_IPv6
- Type:
- Default:
41
- OpenFlow::IP_ISIS
- Type:
- Default:
124
- OpenFlow::IP_L2TP
- Type:
- Default:
115
- OpenFlow::IP_MPLS
- Type:
- Default:
137
- OpenFlow::IP_MTP
- Type:
- Default:
92
- OpenFlow::IP_OSPF
- Type:
- Default:
89
- OpenFlow::IP_RDP
- Type:
- Default:
27
- OpenFlow::IP_RSVP
- Type:
- Default:
46
- OpenFlow::IP_ST
- Type:
- Default:
5
- OpenFlow::IP_TCP
- Type:
- Default:
6
- OpenFlow::IP_UDP
- Type:
- Default:
17
- OpenFlow::OFPFF_CHECK_OVERLAP
- Type:
- Default:
2
Check for overlapping entries first.
- 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_ALL
- Type:
- Default:
4294967292
All physical ports except input port.
- OpenFlow::OFPP_ANY
- Type:
- Default:
4294967295
Wildcard port used only for flow mod (delete) and flow stats requests.
- OpenFlow::OFPP_CONTROLLER
- Type:
- Default:
4294967293
Send to controller.
- 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 virtual port must be explicitly used in order to send back out of the input port.
- OpenFlow::OFPP_LOCAL
- Type:
- Default:
4294967294
Local openflow “port”.
- OpenFlow::OFPP_NORMAL
- Type:
- Default:
4294967290
Process with normal L2/L3 switching.
- OpenFlow::OFPP_TABLE
- Type:
- Default:
4294967289
Perform actions in flow table. NB: This can only be the destination port for packet-out messages.
- OpenFlow::OFPTT_ALL
- Type:
- Default:
255
- OpenFlow::OFP_NO_BUFFER
- Type:
- Default:
4294967295
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.